:root {
    /* Colors - Light Theme */
    --bg-color: #ffffff;
    --surface-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #000000;
    /* Black accent for high contrast */
    --script-color: #e5e5e5;
    /* Faint gray for background script */
    --border-color: #d2d2d7;

    /* Fonts */
    --font-display: 'Space Grotesk', sans-serif;
    --font-script: 'Cursive', sans-serif;
    /* Placeholder, will try to match script style */
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 4vw;
    --grid-gap: 2px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Hover State for Cursor */
a:hover~.cursor-outline,
button:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.1);
    mix-blend-mode: difference;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    /* mix-blend-mode: difference; Removed for visibility on light theme */
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    /* Extra bold */
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    /* Bold for visibility */
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.download-resume-btn {
    border: 1px solid var(--text-primary);
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
    border-radius: 50px;
    /* Rounded pill shape */
    display: flex;
    align-items: center;
}

.download-resume-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

/* ===================================
   Hero Section
   =================================== */
.hero-scroll-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    padding: 0 var(--container-padding);
    position: relative;
    background-color: var(--bg-color);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* The faint script text behind */
.greeting-script {
    display: block !important;
    /* Force show */
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-65%, -20%) rotate(-5deg);
    font-family: 'Brush Script MT', cursive;
    /* Fallback script font */
    font-size: 15rem;
    color: var(--script-color);
    z-index: -1;
    white-space: nowrap;
    opacity: 0.6;
    pointer-events: none;
}

.greeting-main {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    100% {
        transform: rotate(0.0deg)
    }
}

.name-intro {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text-primary);
    /* Same as main text now */
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.role-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    /* "Opera Singer" style */
}

/* Hide bio and image initially to match the "Clean Hero" look */
.bio,
.profile-image {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex !important;
    justify-content: center;
    margin-top: 4rem;
}

.scroll-dot {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-dot::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.hero-fixed {
    position: static;
    background: none;
    width: 100%;
}

.bounce-arrow,
#hero-end {
    display: none;
}

/* ===================================
   Work Section (Bento Grid)
   =================================== */
.featured-projects-section {
    background-color: var(--bg-color);
    padding: 6rem var(--container-padding);
}

.container-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.featured-project {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0;
    margin-bottom: 0;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.featured-project:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.project-content {
    display: flex;
    flex-direction: column-reverse;
    height: 100%;
}

/* Hero Background Layer */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Behind text */
    opacity: 0;
    /* Hidden initially, revealed by JS */
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Slight zoom for effect */
    transition: transform 0.1s linear;
    /* Smooth movement */
}

.hero-bg-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay to keep text readable */
}

.project-preview {
    display: block;
    /* Added because it's now an anchor tag */
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    aspect-ratio: 16/9;
    position: relative;
    background-color: var(--surface-color);
}

.project-preview img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s;
}

.featured-project:hover .project-preview img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex: 1;
}

.project-meta {
    margin-bottom: 2rem;
}

.meta-tag {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.project-link {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    font-family: var(--font-display);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
}

/* ===================================
   About & Experience
   =================================== */
.about-section,
.work-section {
    padding: 6rem var(--container-padding);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-section {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.work-item:hover {
    border-color: var(--accent-color);
}

.work-header h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.work-company {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.work-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   Contact
   =================================== */
.contact-section {
    padding: 6rem var(--container-padding);
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.contact-item {
    background: var(--bg-color);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.contact-item a {
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .container-wide {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        /* Simplify for demo, normally would add mobile menu */
    }
}

/* Utility */
.download-icon {
    display: none;
}