:root {
    /* Futuristic Cyberpunk Variables */
    --primary-neon: #00ffff;
    --secondary-neon: #ff00ff;
    --accent-neon: #00ff00;
    --warning-neon: #ffff00;
    --danger-neon: #ff0040;
    
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(0, 0, 0, 0.8);
    --bg-card-hover: rgba(0, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-accent: #00ffff;
    --text-glow: #00ffff;
    
    --border-neon: #00ffff;
    --border-subtle: rgba(0, 255, 255, 0.3);
    
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.8);
    
    --gradient-primary: linear-gradient(135deg, #00ffff, #ff00ff);
    --gradient-secondary: linear-gradient(135deg, #ff00ff, #00ff00);
    --gradient-bg: linear-gradient(135deg, #0a0a0a, #1a0a1a, #0a1a1a);
    
    /* Animation Variables */
    --animation-speed: 0.3s;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Variables */
        --bg-color: #212529;
        --text-color: #f8f9fa;
        --nav-bg-color-1: rgba(33, 37, 41, 0.9);
        --nav-text-color-1: #e9ecef;
        --nav-hover-color-1: #58a6ff;
        --nav-border-color-1: #495057;

        --nav-bg-color-2: #e9ecef;
        --nav-text-color-2: #212529;
        --nav-hover-bg-2: #ced4da;
        --nav-hover-text-2: #000000;

        --content-page-bg: rgba(52, 58, 64, 0.95);
        --content-page-text: #e9ecef;
        --content-page-heading: #dee2e6;

        --footer-bg: rgba(10, 10, 10, 0.9);
        --footer-text: #ccc;

        --scroll-section-bg: rgba(255, 255, 255, 0.15);
        --scroll-section-text: #fff;
    }

    /* Dark mode specific index background text */
    body#index-page {
        color: var(--scroll-section-text);
    }

}

/* Basic Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    line-height: 1.6;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    transition: all var(--animation-speed) var(--animation-smooth);
    padding-top: 80px;
    overflow-x: hidden;
    position: relative;
}

/* Futuristic Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Animated Grid Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Futuristic Scroll Sections */
.scroll-section {
    min-height: 100vh;
    padding: 80px 60px;
    margin: 60px auto;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(100px) rotateX(10deg);
    transition: all 1s var(--animation-smooth);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.scroll-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.scroll-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.scroll-section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-neon);
}

.scroll-section h2 {
    color: var(--text-accent);
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--text-glow);
    position: relative;
}

.scroll-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: var(--gradient-primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.scroll-section p {
    color: var(--text-primary);
    font-size: 1.2em;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--text-accent);
    font-weight: 700;
    text-shadow: 0 0 10px var(--text-glow);
    position: relative;
}

.highlight-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
    transition: all var(--animation-speed) var(--animation-smooth);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

/* Ensure nav-menu shows on desktop */
header nav ul.nav-menu {
    display: flex;
}

header nav ul li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--animation-speed) var(--animation-smooth);
    display: block;
    position: relative;
    overflow: hidden;
}

header nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--animation-speed) var(--animation-smooth);
    z-index: -1;
}

header nav ul li a:hover {
    color: var(--text-primary);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

header nav ul li a:hover::before {
    left: 0;
}

/* Active navigation link */
header nav ul li a.active {
    color: var(--text-primary);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-neon);
    background: rgba(0, 255, 255, 0.1);
}

header nav ul li a.active::before {
    left: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-neon);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 0 5px var(--primary-neon);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Futuristic Easter Egg Button */
#easter-egg-button {
    position: relative;
    padding: 12px 20px;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    transition: all var(--animation-speed) var(--animation-bounce);
    overflow: hidden;
    z-index: 1001;
    margin-left: 20px;
}

#easter-egg-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#easter-egg-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px var(--primary-neon);
}

#easter-egg-button:hover::before {
    left: 100%;
}


main {
    /* Reset padding, individual pages handle it */
    padding-top: 0;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    animation: neon-pulse 3s ease-in-out infinite alternate;
}

footer p {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Futuristic Content Page Styling */
.content-page {
    padding: 60px 40px;
    margin: 60px auto;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-primary);
    max-width: 900px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.content-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.content-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-neon);
}

.content-page h1 {
    margin-bottom: 30px;
    color: var(--text-accent);
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px var(--text-glow);
    position: relative;
}

.content-page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

/* Futuristic Profile Image */
.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 30px auto;
    display: block;
    border: 4px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px var(--primary-neon);
}

/* Futuristic Feature Items */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--animation-speed) var(--animation-smooth);
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-glow);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item h3 {
    color: var(--text-accent);
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--text-glow);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Side-by-side Layout */
.side-by-side {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.side-by-side .content {
    flex: 1;
}

.side-by-side .icon {
    font-size: 4em;
    color: var(--text-accent);
    text-shadow: 0 0 20px var(--text-glow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix body padding on mobile */
    body {
        padding-top: 80px;
    }
    
    /* Ensure main content is visible */
    main {
        padding-top: 0;
        min-height: calc(100vh - 80px);
    }
    
    .side-by-side {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-section {
        padding: 40px 30px;
        margin-top: 20px;
    }
    
    .content-page {
        padding: 40px 20px;
        margin-top: 20px;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: flex !important;
        order: -1; /* Move to the left */
    }
    
    header nav {
        position: relative;
        justify-content: flex-start;
    }
    
    /* Hide desktop nav items on mobile - always hidden unless active */
    header nav ul.nav-menu {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid var(--border-subtle);
        gap: 0;
        z-index: 999;
        margin: 0;
    }
    
    /* Show nav menu when active */
    header nav ul.nav-menu.active {
        display: flex !important;
        max-height: 600px;
        padding: 20px 0;
    }
    
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
        text-align: left;
        border-radius: 0;
        border-left: 3px solid transparent;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu li a.active {
        border-left-color: var(--border-neon);
        background: rgba(0, 255, 255, 0.15);
        color: var(--text-primary);
        box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    }
    
    .nav-menu li a.active::after {
        content: '▶';
        float: right;
        color: var(--primary-neon);
        font-size: 10px;
        margin-left: 10px;
    }
    
    .nav-menu li a:hover {
        background: rgba(0, 255, 255, 0.1);
        border-left-color: var(--border-neon);
        transform: translateX(5px);
    }
    
    .nav-menu li a::before {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    main {
        min-height: calc(100vh - 70px);
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .nav-menu li a {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .scroll-section {
        padding: 30px 20px;
        margin-top: 10px;
    }
    
    .content-page {
        padding: 30px 15px;
        margin-top: 10px;
    }
} 