:root {
    /* --- DARK THEME (DEFAULT) --- */
    --bg-deep: #050505;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8; /* Sky Blue */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- LIGHT THEME OVERRIDES --- */
[data-theme="light"] {
    --bg-deep: #f8fafc; /* Clean White/Grey */
    --bg-panel: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #0284c7; /* Darker Blue */
    --accent-glow: rgba(2, 132, 199, 0.2);
    --gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- STARFIELD --- */
#starfield {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

/* --- NAV & TOGGLES --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; padding: 1.2rem 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(128,128,128,0.1);
    transition: background 0.5s;
}

[data-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%;
}

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 3rem; /* Razmak med menijem in gumbi */
}

.nav-logo { height: 40px; vertical-align: middle; }

/* Navigacijske povezave */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Razmak med posameznimi linki */
}

.nav-links a {
    color: var(--text-main); 
    text-decoration: none;
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover { color: var(--accent); }

/* Animirana črta pod linkom */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Toggle Buttons (Jezik/Tema) */
.toggle-btn {
    background: transparent;
    border: 1px solid rgba(128,128,128,0.3);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO --- */
.hero { height: 100vh; display: flex; align-items: center; position: relative; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, var(--bg-deep));
    z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }

h1 {
    font-family: var(--font-heading); font-size: 4rem;
    line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px;
}
h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-main); }
p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tag-line {
    display: inline-block; padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem; letter-spacing: 1px;
}

/* --- BUTTONS & CARDS --- */
.btn-primary, .btn-secondary, .btn-large {
    display: inline-block; padding: 1rem 2rem; border-radius: 6px;
    text-decoration: none; font-weight: 600; margin-right: 1rem; margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-secondary { border: 1px solid rgba(128,128,128,0.3); color: var(--text-main); backdrop-filter: blur(5px); }
.btn-large { font-size: 1.3rem; color: var(--accent); border: 1px solid var(--accent); background: transparent; }

/* POPRAVEK: Odstranjen !important color, da se Contact ne obarva enako kot Downloads */
.btn-contact { 
    border: 1px solid var(--accent); 
    padding: 0.5rem 1.5rem; 
    border-radius: 6px; 
    text-decoration: none; 
}

.btn-primary:hover, .btn-large:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-secondary:hover { background: rgba(128,128,128,0.1); }

/* Fix za Light Mode gumbe */
[data-theme="light"] .btn-secondary {
    border-color: rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.6);
    color: #0f172a;
}

/* Kartice */
.stat-card, .feature-card, .project-card {
    background: var(--bg-panel);
    border: 1px solid rgba(128,128,128,0.1);
    padding: 2rem; border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Glow Hover Effect */
.glow-hover { transition: all 0.3s; position: relative; }
.glow-hover:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent) !important;
    transform: translateY(-5px);
    z-index: 10; cursor: pointer;
}

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.section-dark { background: var(--bg-panel); }
.section-black { background: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.features-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }

.section-tag { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 1rem; font-size: 0.85rem; }

/* Projects */
.project-image {
    height: 200px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-heading); letter-spacing: 2px; font-weight: 700;
    border-radius: 12px; margin-bottom: 1rem;
}
.project-info h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.tech-tags span {
    font-size: 0.75rem; background: var(--accent-glow); color: var(--text-main);
    padding: 4px 10px; border-radius: 20px; margin-right: 5px; font-weight: 600;
}

/* Footer */
footer { padding: 4rem 0; text-align: center; border-top: 1px solid rgba(128,128,128,0.1); color: var(--text-muted); }
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 0.8s forwards; }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }


/* --- MOBILE MENU & RESPONSIVE --- */
/* Gumb je privzeto skrit na desktopu */
.mobile-toggle { display: none; }

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { text-align: center; padding-top: 60px; }
    .nav-content { padding: 0 1rem; }
    
    /* SKRIT MENI (Slide-in) */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        right: -100%; /* Skrit desno */
        height: 100vh;
        width: 75%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 2.5rem;
        align-items: center;
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    
    /* Odstrani črto spodaj na mobilnem meniju */
    .nav-links a::after { display: none; }

    /* Ko je meni aktiven */
    .nav-links.active {
        right: 0;
    }

    /* Povečava pisave v meniju */
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* GUMB ZA MENI (Hamburger) */
    .mobile-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        height: 25px;
        position: relative;
    }
    
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }
    
    .mobile-toggle span:nth-child(1) { top: 0; }
    .mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-toggle span:nth-child(3) { bottom: 0; }
    
    /* ANIMACIJA V 'X' */
    .mobile-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
}

/* --- APP DETAILS PAGE --- */
.app-header {
    padding-top: 150px;
    padding-bottom: 50px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    text-align: center;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
    background: #1a1a1a;
    aspect-ratio: 9/16; /* Format za mobilne telefone */
    overflow: hidden;
}

.screenshot:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.tech-specs {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-val { color: var(--text-main); font-weight: 600; }