:root {
    /* Light Theme */
    --bg-light: #ffffff;
    --text-light: #2d3436;
    --primary-light: #6b5ce6;    /* Deep Purple */
    --secondary-light: #3b82f6;  /* Electric Blue */
    --card-light: #f8fafc;
    
    /* Dark Theme */
    --bg-dark: #1a1a1a;
    --text-dark: #e2e8f0;
    --primary-dark: #a78bfa;     /* Lighter Purple */
    --secondary-dark: #60a5fa;   /* Lighter Blue */
    --card-dark: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6b5ce6 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 25%,
        transparent 75%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 60px 60px;
    animation: moveBackground 15s linear infinite;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
}

.title-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.subtitle-wrapper {
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

.animated-bar {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: scaleX(0);
    transform-origin: left;
    animation: expandWidth 1s ease forwards 0.5s;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

/* Dark mode adjustment */
.dark-mode .hero {
    background: linear-gradient(135deg, #7c3aed 0%, #60a5fa 100%);
}

/* Mobile fixes for hero section */
@media screen and (max-width: 480px) {
    .hero {
        height: 30vh; /* Shorter height for mobile */
        min-height: 200px; /* Ensure minimum height */
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}