:root {
    /* Updated Colors for the new theme */
    --bg-color-top: #f4f1ed;
    --bg-color-bottom: #f1ebe2;
    --text-dark: #1a1a1a;
    --text-light: #595959;
    --font-main: "Manrope", sans-serif;
    --modal-bg: #1c1c1c;
    --modal-input-bg: #333333;
    --modal-text: #ffffff;
    --modal-text-light: #a0a0a0;

    /* New variables for theme switching */
    --theme-accent: #000000; /* Default theme color */
    --theme-bg: #ffffff;
}

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

/* --- LENIS SMOOTH SCROLL STYLES --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(
        ellipse at bottom,
        var(--bg-color-bottom) 0%,
        var(--bg-color-top) 70%
    );
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

/* --- VIEW CURSOR --- */
.view-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform, opacity;
}

/* --- TOP FIXED BAR --- */
.top-bar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    z-index: 100;
    pointer-events: none;
}

.location-widget,
.email-widget,
.time-widget {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    pointer-events: all;
}

.email-widget {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
}

/* --- MAIN CONTENT --- */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15vh 2rem 20vh;
    text-align: center;
    gap: 8vh;
    max-width: 800px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero-section {
    margin-bottom: 0;
}

.hero-intro-text {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-align: left;
    display: inline-block;
}

.hero-name-wrapper {
    margin-bottom: 2rem;
}

.hero-name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.hero-profile-pic {
    width: 55px;
    height: 80px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 1rem;
}

.hero-bio {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-dark);
    text-align: left;
    max-width: 480px;
    margin: 0;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.1);
}

/* --- PROJECT CARDS --- */
.projects-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Replaces margin-bottom on project-item */
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: none; /* Hide default cursor */
    transition:
        opacity 0.4s ease,
        filter 0.4s ease;
}

.project-item {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    /* Opacity is now handled by GSAP for the animation */
    opacity: 0;
    visibility: hidden; /* Helps prevent interaction before animation */
}

/* New hover effect for blurring non-active projects */
.projects-wrapper.is-hovered .project-link {
    opacity: 0.5;
    filter: blur(2px);
}

.projects-wrapper.is-hovered .project-link:hover {
    opacity: 1;
    filter: blur(0);
}

.project-visual {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-link:hover .project-visual {
    transform: scale(1.03);
}

.project-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: left;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    text-align: left;
    line-height: 1.6;
}

/* --- EXPERIENCE SECTION --- */
.experience-section {
    width: 100%;
    max-width: 550px;
    text-align: left;
}
.section-title {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.25rem;
}
.experience-item:first-of-type {
    border-top: 1px solid #e0e0e0;
}
.experience-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}
.arrow {
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* --- BOTTOM FLOATING ELEMENTS --- */
.floating-elements-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: all;
}

.project-nav {
    background: #4a4a4a;
    padding: 14px 28px;
    border-radius: 25px;
    display: flex;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.project-nav:hover {
    transform: scale(1.05);
}

.project-nav a {
    text-decoration: none;
    color: #8a9dff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-nav a:hover {
    color: #ffffff;
}
.project-nav a.active {
    color: #ffffff;
}

/* --- TECH STACK SCROLLER --- */
.tech-scroller {
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
}

.scroller-inner:hover .tech-list {
    animation-play-state: paused;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
    animation: scroll 40s linear infinite;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 60px;
}

.tech-list img {
    height: 35px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tech-list span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-list li:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.tech-list li:hover span {
    opacity: 1;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* --- GET IN TOUCH SECTION --- */
.get-in-touch-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

.get-in-touch-description {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
    background-color: #e0e0e0;
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* --- ANIMATIONS --- */

/* REMOVED .fade-in-element as it is now handled by GSAP (JavaScript) */

/* HERO WELCOME ANIMATION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered delays for the hero elements */
.hero-intro-text.animate-on-load {
    animation-delay: 0.2s;
}
.hero-name-wrapper.animate-on-load {
    animation-delay: 0.4s;
}
.hero-bio.animate-on-load {
    animation-delay: 0.6s;
}
.cta-button.animate-on-load {
    animation-delay: 0.8s;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .content-container {
        padding-top: 10vh;
        gap: 8vh;
    }
    .hero-name {
        font-size: 3.5rem;
    }
    .hero-bio {
        font-size: 1rem;
    }
    .floating-elements-container {
        display: none;
    }
    .tech-list {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tech-list[aria-hidden="true"] {
        display: none;
    }
    .tech-list span {
        opacity: 1;
    }
    /* Hide the custom cursor on mobile as there's no hover */
    .view-cursor {
        display: none;
    }
}
