:root {
    --bg-body: #f5f5f7;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --accent: #0071e3;
    --nav-glass-green: rgba(34, 197, 94, 0.15); /* Tailwind Green-500 low opacity */
    --nav-border-green: rgba(34, 197, 94, 0.3);
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #000000;
        --text-main: #f5f5f7;
        --text-secondary: #86868b;
        --card-bg: rgba(28, 28, 30, 0.8);
        --accent: #2997ff;
        --nav-glass-green: rgba(34, 197, 94, 0.1);
    }
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}


/* Navigation Wrapper */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    z-index: 1000;
    pointer-events: none;
}

/* Sidebar Navigation (Enhanced Green Glass) */
.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    margin: 30px;
    pointer-events: auto;
    
    /* Enhanced Glass Effect */
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    box-shadow: 
        0 12px 48px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

/* Navigation indicator line */
nav::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(34, 197, 94, 0.2) 20%, 
        rgba(34, 197, 94, 0.2) 80%, 
        transparent 100%);
    border-radius: 2px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 12px 20px 12px 32px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Hover glow effect */
nav a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::after {
    opacity: 1;
}

nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Active indicator dot */
nav a::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a.active {
    color: #166534;
    background: rgba(34, 197, 94, 0.15);
    font-weight: 600;
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

nav a.active::before {
    background-color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

nav a.active::after {
    opacity: 0.5;
}

/* Main Content Wrapper (Centered) */
.content-wrapper {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content blocks */
    padding: 0 40px 0 200px; /* Left padding for nav space */
    min-height: 100vh;
}

/* Sections */
section {
    padding: 120px 0;
    width: 100%;
    max-width: 900px; /* Limit width for readability */
    margin-bottom: 40px;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.2s;
    cursor: default;
}

.skill-item:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #166534;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center text in Hero */
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, #0071e3 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

p.lead {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(128,128,128, 0.1);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin: 0;
}

.card-meta {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(128,128,128, 0.1);
    margin-top: 80px;
    width: 100%;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .nav-wrapper {
        height: auto;
    }

    .nav-container {
        width: 100%;
        height: 60px;
        margin: 0;
        padding: 0 20px;
        flex-direction: row;
        justify-content: center;
        border-radius: 0;
        border-bottom: 1px solid var(--nav-border-green);
    }

    nav {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }

    nav::before {
        display: none;
    }

    nav a {
        font-size: 0.95rem;
        padding: 8px 16px;
    }

    nav a:hover, nav a.active {
        transform: none;
    }

    .content-wrapper {
        padding: 80px 20px 0 20px;
    }

    section {
        padding: 40px 0;
    }

    h1 { font-size: 3rem; }
    .hero { min-height: 80vh; }
}




