:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-darker: #020202;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Brand Colors */
    --color-blue: #3b82f6;
    --color-blue-glow: rgba(59, 130, 246, 0.5);
    
    --color-orange: #f97316;
    --color-orange-glow: rgba(249, 115, 22, 0.5);
    
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.5);

    --color-red: #ef4444;
    --color-red-glow: rgba(239, 68, 68, 0.5);

    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Typography Utilities */
.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.hover-red:hover { color: var(--color-red) !important; text-shadow: 0 0 8px var(--color-red); }

/* Language Switch Toggle */
.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.ios-toggle {
    display: none;
}

.ios-toggle-label {
    position: relative;
    display: block;
    width: 70px;
    height: 34px;
    background-color: #1e293b;
    border-radius: 34px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.ios-toggle-label span {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    z-index: 1;
    user-select: none;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", emoji, sans-serif;
}

.ios-toggle-label .emoji-de {
    left: 2px;
}

.ios-toggle-label .emoji-en {
    right: 2px;
}

.ios-toggle-label .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 30px;
    background-color: #334155;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.ios-toggle:checked + .ios-toggle-label .slider {
    transform: translateX(34px);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--text-muted);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s ease;
}

/* Sections */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.glitch-title {
    font-size: 5vw;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: relative;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Project Sections */
.project-section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.project-section:nth-child(even) {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02), transparent);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6rem;
    align-items: center;
}

.section-container.reverse {
    direction: rtl;
}

.section-container.reverse > * {
    direction: ltr;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); border: 1px solid var(--color-blue); }
.badge-orange { background: rgba(249, 115, 22, 0.1); color: var(--color-orange); border: 1px solid var(--color-orange); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--color-green); border: 1px solid var(--color-green); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: var(--color-red); border: 1px solid var(--color-red); }

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

.project-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-blue { background: var(--color-blue); color: white; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); }
.btn-blue:hover { background: #2563eb; transform: translateY(-2px); }
.btn-outline-blue { background: transparent; border: 1px solid var(--color-blue); color: var(--color-blue); }
.btn-outline-blue:hover { background: rgba(59, 130, 246, 0.1); }

.btn-orange { background: var(--color-orange); color: white; box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3); }
.btn-orange:hover { background: #ea580c; transform: translateY(-2px); }
.btn-outline-orange { background: transparent; border: 1px solid var(--color-orange); color: var(--color-orange); }
.btn-outline-orange:hover { background: rgba(249, 115, 22, 0.1); }

.btn-green { background: var(--color-green); color: white; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); }
.btn-green:hover { background: #059669; transform: translateY(-2px); }

.btn-red { background: var(--color-red); color: white; box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
.btn-red:hover { background: #dc2626; transform: translateY(-2px); }
.btn-outline-red { background: transparent; border: 1px solid var(--color-red); color: var(--color-red); }
.btn-outline-red:hover { background: rgba(239, 68, 68, 0.1); }

/* Glass Panels / Visuals */
.glass-panel {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    max-width: 100%;
    width: 100%;
}

.panel-blue::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 60%); opacity: 0.1; pointer-events:none; }
.panel-orange::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 60%); opacity: 0.1; pointer-events:none; }
.panel-green::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, var(--color-green-glow) 0%, transparent 60%); opacity: 0.1; pointer-events:none; }
.panel-red::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 60%); opacity: 0.1; pointer-events:none; }

.panel-header {
    background: rgba(0,0,0,0.4);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background: #475569;
}
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #10b981; }

.panel-title {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.panel-body {
    padding: 2rem;
    min-height: 300px;
}

.log-line {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* Lemuecraft Specifics */
.bullet-list {
    list-style: none;
    margin-bottom: 2rem;
}
.bullet-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.bullet-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: bold;
}

.server-ip-box {
    background: rgba(0,0,0,0.5);
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
}
.server-ip-box span { color: var(--text-muted); }
.server-ip-box strong { color: var(--color-orange); }

.isometric-cube {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    min-height: 400px;
}

.cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(45deg);
    margin-bottom: 3rem;
    animation: rotateCube 10s linear infinite;
}

@keyframes rotateCube {
    0% { transform: rotateX(-30deg) rotateY(0deg); }
    100% { transform: rotateX(-30deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(249, 115, 22, 0.4);
    border: 2px solid var(--color-orange);
    box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.5);
}

.face.top { transform: rotateX(90deg) translateZ(50px); }
.face.left { transform: rotateY(-90deg) translateZ(50px); }
.face.right { transform: rotateY(0deg) translateZ(50px); }

.cube-text {
    color: var(--color-orange);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Zulu DNS Specifics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.stat-box {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-mockup {
    min-height: 400px;
    max-width: 100%;
}

.dashboard-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.dash-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.dash-row.split .dash-card {
    flex: 1;
}

.dash-card {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.w-full { width: 100%; }

.chart-bar {
    height: 12px;
    background: var(--color-green);
    border-radius: 6px;
    margin-bottom: 12px;
    opacity: 0.8;
}
.chart-bar.w-80 { width: 80%; }
.chart-bar.w-60 { width: 60%; }
.chart-bar.w-90 { width: 90%; }
.chart-bar.w-40 { width: 40%; }
.chart-bar.w-70 { width: 70%; margin-bottom: 0;}

.dash-text {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.dash-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem;
    background: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}
.footer-logo span { color: var(--text-muted); font-weight: 300; }

.footer-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 4rem;
        padding: 0 1.5rem;
    }
    
    .section-container.reverse {
        direction: ltr;
    }
    
    .project-visual {
        order: 2;
    }
    
    .project-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .bullet-list {
        text-align: left;
    }
    
    .glitch-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .stats-grid, .feature-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .feature-item {
        text-align: center;
    }
    
    .glitch-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .dash-row {
        flex-direction: column;
    }
    
    .dashboard-body {
        padding: 1rem 0.5rem;
    }
    
    .dashboard-mockup {
        min-height: auto;
    }

    .project-section {
        padding: 4rem 1rem;
    }

    .section-container {
        padding: 0 0.5rem;
    }

    .dash-card {
        padding: 1rem;
    }

    .panel-header {
        padding: 0.8rem 1rem;
    }
}
