/* Variables */
:root {
    --bg-color: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --border: #27272a;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 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;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3 { font-family: var(--font-main); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.highlight { color: var(--accent); }
.text-center { text-align: center; }

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

/* Navbar */
.navbar {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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.3rem; cursor: pointer; }
.nav-right { display: flex; align-items: center; gap: 16px; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: all 0.2s;
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 24px;
}
.btn-ghost:hover { color: var(--text-main); }

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    margin-top: 56px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections General */
.section { padding: 80px 0; }
.section-header { margin-bottom: 48px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* Cards */
.card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}
.card-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.card-tags span {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Stack */
.stack { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.stack-item { }
.stack-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.stack-techs { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: border-color 0.2s;
}
.tech-pill:hover { border-color: var(--accent); }

/* About */
.about p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.about p strong { color: var(--text-main); }

.features-list { margin-top: 2rem; }
.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}
.features-list .check {
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 16px;
}
.profile-card h3 { margin-bottom: 4px; }
.profile-card .role {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}
.link-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Contact */
.contact { border-top: 1px solid var(--border); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-left h2 { margin-bottom: 16px; }
.contact-left p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

.contact-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.contact-value {
    font-size: 1rem;
    color: var(--text-main);
}
a.contact-value:hover { color: var(--accent); }
.company-info { line-height: 1.8; }
.company-info .small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .btn { display: flex; justify-content: center; width: 100%; }
    .cta-group { flex-direction: column; }
    .nav-right { gap: 10px; }
}
