/* Reset and Base Styles */
:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #333;
    --secondary-text: #888;
    --neon-blue: #00f3ff;
    --neon-blue-glow: rgba(0, 243, 255, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 2rem;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #111 0%, transparent 50%),
                      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-attachment: scroll, fixed, fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 1;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue-glow);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg,
.logo img {
    color: var(--neon-blue);
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px var(--neon-blue-glow));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--secondary-text);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 102;
    padding: 0.5rem;
}

.mobile-menu-btn .close-icon {
    display: none;
}

.nav.open .mobile-menu-btn .menu-icon {
    display: none;
}

.nav.open .mobile-menu-btn .close-icon {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Header offset */
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 500px;
    font-weight: 300;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    font-weight: 400;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--neon-blue);
    margin-top: 12px;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* About Section */
.about {
    padding: 6rem var(--spacing-unit);
}

.about-content p {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    max-width: 900px;
    font-weight: 300;
}

/* Work Section */
.work {
    padding: 6rem var(--spacing-unit);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover .project-icon {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue-glow);
    background: rgba(0, 243, 255, 0.05);
}

.project-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--secondary-text);
    transition: all 0.3s ease;
}

.project-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 4rem var(--spacing-unit);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.5;
    box-shadow: 0 0 15px var(--neon-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.contact-link {
    color: var(--text-color);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .logo {
        z-index: 102;
        position: relative;
        white-space: nowrap;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 101;
        margin: 0;
        padding: 0;
    }

    .nav.open .nav-links {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav.open .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animations for menu items */
    .nav.open .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav.open .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav.open .nav-links li:nth-child(3) { transition-delay: 0.3s; }

    .nav-links a {
        font-size: 2rem;
        font-weight: 300;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-grid {
        gap: 3rem;
    }
}

