/* Variables */
:root {
    --bg-color: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { font-family: var(--font-main); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
.highlight { color: var(--accent); }
.highlight-text { 
    background: linear-gradient(90deg, #3b82f6, #06b6d4); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { 
    padding: 20px 0; 
    border-bottom: 1px solid #334155;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* Language Switcher */
.lang-switch button {
    background: none; 
    border: none; 
    color: var(--text-muted); 
    cursor: pointer; 
    font-family: var(--font-mono); 
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}
.lang-switch button:hover { color: var(--accent); }
.lang-switch button.active { color: var(--accent); font-weight: bold; }
.lang-switch .divider { margin: 0 5px; color: var(--text-muted); }

/* Buttons */
.btn { 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 1rem;
    border: none;
    transition: all 0.3s;
}
.btn-primary { 
    background-color: var(--accent); 
    color: white; 
    border: 1px solid var(--accent); 
}
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--text-muted); 
    color: var(--text-main); 
    margin-left: 10px; 
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Hero Section */
.hero { 
    padding: 150px 0 100px; 
    margin-top: 60px;
}
.hero-sub { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    max-width: 600px; 
    margin-bottom: 2rem; 
}
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Sections General */
.section { padding: 80px 0; }
.bg-darker { background-color: #0b1120; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* About */
.about p { color: var(--text-muted); margin-bottom: 1rem; }
.about p strong { color: var(--text-main); }
.features-list { margin-top: 2rem; }
.features-list li { 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.1rem; 
}
.profile-card { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #334155; 
}
.profile-card h3 { margin-bottom: 0.5rem; }
.profile-card .role { 
    color: var(--text-muted); 
    margin-bottom: 20px; 
    font-family: var(--font-mono); 
    font-size: 0.9rem; 
}
.social-links a { 
    display: block; 
    margin-bottom: 10px; 
    color: var(--accent); 
    font-family: var(--font-mono); 
}
.social-links a:hover { color: var(--accent-hover); }

/* Stack */
.stack-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
}
.stack-item { 
    border-top: 2px solid var(--accent); 
    padding-top: 15px; 
}
.stack-item h3 { font-size: 1.2rem; margin-bottom: 5px; }
.stack-item p { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.9rem; }

/* Services Card */
.card { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    transition: transform 0.2s;
    border: 1px solid #334155;
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-top: 10px; }

/* Contact */
.contact-box { 
    background: var(--bg-card); 
    display: inline-block; 
    padding: 30px 50px; 
    border-radius: 12px; 
    margin-top: 30px; 
    border: 1px solid #334155; 
}
.contact-desc { color: var(--text-muted); font-size: 1.2rem; }
.contact-box p { margin-bottom: 0.5rem; }
.contact-box a { color: var(--accent); }
.contact-box a:hover { color: var(--accent-hover); }

/* Footer */
footer { 
    padding: 40px 0; 
    text-align: center; 
    border-top: 1px solid #334155; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

/* Language Visibility Logic */
html[lang="en"] .lang-sl { display: none !important; }
html[lang="sl"] .lang-en { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .btn { display: block; margin: 10px 0; width: 100%; text-align: center; justify-content: center; }
    .btn-outline { margin-left: 0; }
    .hero { padding: 120px 0 60px; }
    .nav-right { gap: 10px; }
    .contact-box { padding: 20px 30px; }
}
