:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #ff3c00;
    --secondary-bg: #f5f5f5;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --font-family: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --about-bg-color: #fcf9f2;
    --vw: 1vw;
    /* Fallback */

    /* Projects Section Variables */
    /* Light Theme Global -> Projects Section is Dark */
    --projects-bg: #050505;
    --projects-text-main: #ffffff;

    --projects-rope-color: #ffffff;

    /* Title: BG Opposite of Projects BG (Light), Text Same as Projects BG (Dark) */
    --projects-title-bg: #ffffff;
    --projects-title-text: #050505;

    /* Gradient Text (Coming Soon): Visible on Dark BG (Light to Grey) */
    --projects-text-gradient-start: #ffffff;
    --projects-text-gradient-end: #888888;

    /* Card Variables - Dark for Light Theme (Inverted) */
    --card-bg: rgba(20, 20, 20, 0.95);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-text-main: #ffffff;
    --card-text-sub: #aaaaaa;
    --card-header-bg: rgba(255, 255, 255, 0.05);
    --card-icon-color: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.5);

    /* Contact Section Variables - Light Theme */
    /* Contact Section Variables - Light Theme (Inverted: Dark Content) */
    --contact-bg: #000000;
    --contact-text: #ffffff;
    --contact-input-bg: #00000f;
    --contact-input-border: #2a2a3a;
    --contact-label-color: #6a6a8a;
    --contact-focus-border: #ffffff;
    --contact-focus-shadow: rgba(255, 255, 255, 0.3);
}

body.dark-theme {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --secondary-bg: #1a1a1a;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --about-bg-color: #1a1a1a;

    /* Projects Section Variables - Dark Theme */
    /* Dark Theme Global -> Projects Section is Light */
    --projects-bg: #f5f5f5;
    --projects-text-main: #1a1a1a;

    --projects-rope-color: #1a1a1a;

    /* Title: BG Opposite of Projects BG (Dark), Text Same as Projects BG (Light) */
    --projects-title-bg: #1a1a1a;
    --projects-title-text: #f5f5f5;

    /* Gradient Text (Coming Soon): Visible on Light BG (Dark to Grey) */
    --projects-text-gradient-start: #1a1a1a;
    --projects-text-gradient-end: #666666;

    /* Card Variables - Light for Dark Theme (Inverted) */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.1);
    --card-text-main: #1a1a1a;
    --card-text-sub: #666666;
    --card-header-bg: rgba(0, 0, 0, 0.05);
    --card-icon-color: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.1);

    /* Contact Section Variables - Dark Theme */
    /* Contact Section Variables - Dark Theme (Inverted: Light Content) */
    --contact-bg: #f5f5f5;
    --contact-text: #1a1a1a;
    --contact-input-bg: #ffffff;
    --contact-input-border: #d0d0d0;
    --contact-label-color: #666666;
    --contact-focus-border: #1a1a1a;
    --contact-focus-shadow: rgba(26, 26, 26, 0.2);
}

img#img1 {
    height: 88.6%;
}

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

html {
    scroll-behavior: smooth;
}

.about-section,
.projects-section,
.skills-section,
.contact-section {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Navbar - Rounded Floating Design */
.navbar {
    position: fixed;
    top: 20px;
    left: 2.5%;
    width: calc(var(--vw, 1vw) * 95);

    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--vw, 1vw) * 2);
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border-radius: 9999px;
    border: 1px solid rgba(128, 128, 128, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.nav-left .logo,
.nav-center a {
    color: var(--text-color);
}

.logo-wrapper {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid rgba(128, 128, 128, 1);
    padding: 6px 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
}

.logo-wrapper:hover {
    background: rgba(128, 128, 128, 0.1);
}

.nav-left .logo {
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-center a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-speed);
    opacity: 0.8;
}

.nav-center a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    position: fixed;
    top: 100px;
    left: 0; /* Align with navbar container bounds */
    width: 100%; /* Matches navbar width precisely */
    height: auto;
    padding: 3rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;

    z-index: 999;
    border-radius: 30px;
    border: 1px solid rgba(128, 128, 128, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);

    /* Animation */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-dropdown .mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-family);
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
}

.mobile-dropdown .mobile-link:active {
    transform: scale(0.95);
    color: var(--accent-color);
}

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

@media (max-width: 900px) {

    .nav-center,
    .nav-right .button-container .button {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
        width: 30px;
        height: 20px;
    }

    .mobile-toggle span {
        height: 2px;
    }

    /* Correct active animations for hamburger */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navbar {
        width: 90vw;
        left: 5vw;
        padding: 0 5vw;
    }

    .logo-wrapper {
        padding: 6px 18px;
    }

    .nav-left .logo {
        font-size: 1.1rem;
    }

    .button-container {
        gap: 0.8rem; /* Closer grouping for theme and hamburger */
    }

    .themeToggle {
        width: 24px;
        height: 24px;
        margin-left: 0; /* Remove desktop margin on mobile */
    }

    /* Mobile Dropdown Socials Styles */
    .mobile-dropdown-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .mobile-dropdown-socials .button {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 36px !important;
        height: 36px !important;
        background-color: var(--text-color);
        border: 1px solid var(--text-color);
        color: var(--bg-color);
    }

    .mobile-dropdown-socials .button:hover {
        transform: rotate(360deg);
        background-color: transparent;
        color: var(--text-color);
    }

    .mobile-dropdown-socials .button .btn-svg {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor;
    }
}

/* Social Buttons and Theme Toggle */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

.button {
    cursor: pointer;
    text-decoration: none;
    color: var(--bg-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--text-color);
    border: 1px solid var(--text-color);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
    transform: rotate(360deg);
    transform-origin: center center;
    background-color: transparent;
    color: var(--text-color);
}

.button:hover .btn-svg {
    filter: none;
    fill: var(--text-color);
}

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

/* Theme Toggle Styles */
.themeToggle {
    color: var(--text-color);
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 0.5rem;
}

.st-sunMoonThemeToggleBtn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-sunMoonThemeToggleBtn .themeToggleInput {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    z-index: 2;
}

.st-sunMoonThemeToggleBtn svg {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    transform: rotate(40deg);
}

.st-sunMoonThemeToggleBtn svg .sunMoon {
    transform-origin: center center;
    transition: inherit;
    transform: scale(1);
}

.st-sunMoonThemeToggleBtn svg .sunRay {
    transform-origin: center center;
    transform: scale(0);
}

.st-sunMoonThemeToggleBtn svg mask>circle {
    transition: transform 0.64s cubic-bezier(0.41, 0.64, 0.32, 1.575);
    transform: translate(0px, 0px);
}

.st-sunMoonThemeToggleBtn svg .sunRay2 {
    animation-delay: 0.05s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay3 {
    animation-delay: 0.1s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay4 {
    animation-delay: 0.17s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay5 {
    animation-delay: 0.25s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay6 {
    animation-delay: 0.29s !important;
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg {
    transform: rotate(90deg);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg mask>circle {
    transform: translate(16px, -3px);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg .sunMoon {
    transform: scale(0.55);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg .sunRay {
    animation: showRay1832 0.4s ease 0s 1 forwards;
}

@keyframes showRay1832 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.main-container {
    position: relative;
    width: calc(var(--vw, 1vw) * 100);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.section {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-section {
    left: 0;
    width: 50%;
    z-index: 2;
    background-color: var(--bg-color);
    will-change: width, height, transform;
    transform: translateZ(0);
}

.right-section {
    right: 0;
    width: 50%;
    z-index: 2;
    background-color: var(--bg-color);
    will-change: width, height, transform;
    transform: translateZ(0);
}

.content-wrapper {
    position: absolute;
    width: calc(var(--vw, 1vw) * 100);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Position contents relative to the whole screen */
.left-section .content-wrapper {
    left: 0;
}

.right-section .content-wrapper {
    right: 0;
}

/* Natural DOM stacking order used: footer-text before content-wrapper in HTML */
.image-container {
    position: absolute;
    width: calc(var(--vw, 1vw) * 100);
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Align to bottom for face effect */
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    height: 90%;
    width: auto;
    object-fit: contain;
    /* mix-blend-mode removal for better clarity if images are clean */
}

.header-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--vw, 1vw) * 100);
    display: flex;
    flex-direction: column;
    padding: 0 calc(var(--vw, 1vw) * 10);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, font-size;
    transform: translateZ(0) translateY(-50%);
}

.left-text {
    align-items: flex-start;
    text-align: left;
}

.right-text {
    align-items: flex-end;
    text-align: right;
}

/* Custom Cursor */
.cursor {

    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.main-container:hover~.cursor {
    opacity: 1;
}

/* Enhancing typography */
h1 {
    font-size: clamp(2.5rem, calc(var(--vw, 1vw) * 7), 5rem);
    /* Reduced from 3.5rem / 10vw */
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    color: #1a1a1a;
    text-transform: lowercase;
    font-family: "Pixelify Sans", sans-serif;
}

.student_text {
    font-family: "Yuji Boku", sans-serif;
    font-weight: 900;
}

p {
    font-size: clamp(0.85rem, calc(var(--vw, 1vw) * 1.25), 1rem);
    /* Reduced from 0.9rem / 1.5vw */
    line-height: 1.5;
    color: #888;

    font-weight: 300;
    text-align: center;
}

.left-text h1 {
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.right-text h1 {
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: initial;
}

/* Add a subtle vertical line between sections on desktop */
.left-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Split line — real element for GSAP animation on mobile */
.split-line {
    display: none;
    /* hidden on desktop */
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--text-color) 20%, var(--text-color) 80%, transparent 100%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 20;
    transform: translateY(-50%);
}

/* ===== MOBILE HERO LAYOUT (< 1000px) ===== */
@media (max-width: 999px) {

    /* Stack sections vertically, full width, 50vh each */
    .main-container {
        flex-direction: column;
    }

    .section {
        width: 100% !important;

        left: auto !important;
        right: auto !important;
        position: absolute !important;
    }

    .left-section {

        bottom: auto !important;
    }

    .right-section {

        bottom: auto !important;
    }

    /* Show and position the real split-line element */
    .split-line {
        display: block;
    }

    /* Remove the ::after pseudo divider on mobile — real element takes over */
    .left-section::after {
        display: none;
    }

    /* Images span full viewport height so they overlap perfectly across the split */
    .image-container {
        width: 100%;
        height: 100vh;
    }

    #img1,
    #img2 {

        height: 70vh !important;
        width: auto !important;
    }

    .content-wrapper {
        width: 100%;
    }

    .left-section .content-wrapper {
        left: auto;
    }

    .right-section .content-wrapper {
        right: auto;
    }

    /* Text sits vertically centered. DOM order puts it behind the image. */
    .header-text {


        padding: 0 calc(var(--vw, 1vw) * 8);
        pointer-events: none;
        align-items: center;
        /* center both left and right text on mobile */
        text-align: center;
    }

    .left-text,
    .right-text {
        align-items: center;
        text-align: center;
    }

    /* Hide custom cursor on touch devices */
    .cursor {
        display: none;
    }
}

/* Infinite Loop Scroller */
.scroller-wrapper {
    width: calc(var(--vw, 1vw) * 100);
    overflow: hidden;
    padding: 1.25rem 0;
    display: flex;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    transition: background-color var(--transition-speed);
}

/* Light theme -> Dark background */
body.light-theme .scroller-wrapper {
    background-color: #1a1a1a;
}

/* Dark theme -> Light background */
body.dark-theme .scroller-wrapper {
    background-color: #f5f5f5;
}

.scroller-inner {
    display: flex;
    gap: 4rem;
    padding-right: 4rem;
    /* Match gap for seamless loop */
}

.animate-loop-scroll {
    animation: loop-scroll 40s linear infinite;
}

@keyframes loop-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.scroller-inner img {
    height: 2.5rem;
    width: auto;
    max-width: none;
    transition: filter var(--transition-speed);
}

/* Make images visible on dark backgrounds in light theme */
body.light-theme .scroller-inner img {
    filter: invert(1);
}



/* Redesigned About Section */
.about-section {
    padding: 3rem 5rem;
    background: var(--about-bg-color);
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-color);
    overflow: hidden;
    transition: background var(--transition-speed);
}

.about-header-main h2 {
    font-size: clamp(2.5rem, calc(var(--vw, 1vw) * 5), 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 5rem;
    font-family: "Bungee Inline", "Static", sans-serif;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.about-grid-new {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

.info-block p {
    font-size: clamp(0.9rem, calc(var(--vw, 1vw) * 1.5), 1.1rem);
    line-height: 1.6;
    margin-top: 0.5rem;
    max-width: 100%;
    opacity: 1;
    text-align: left;
}

.info-block h6,
.stat-block h6 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 1;

}

.about-image-frame {
    align-items: center;
    text-align: center;
}

.arch-container {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 999px 999px 20px 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 0 0;

}

.brand-footer {
    font-size: 0.8rem;
    margin-top: 1.5rem;
    opacity: 0.6;
}

.about-stats-new {
    text-align: right;
    align-items: flex-end;
}

.stat-block h4 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0.2rem;
    opacity: 0.6;
}

/* Stars Decoration */
.about-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 40px;
    opacity: 0.8;
}

.star-left {
    top: 20%;
    left: 30%;
}

.star-right {
    top: 30%;
    right: 30%;
}

.about-footer-text {
    margin-top: 6rem;
    font-size: 0.85rem;
    opacity: 0.5;
    display: flex;
    justify-content: flex-start;
}

/* Download Button Stylings */
.download-btn {
    --main-focus: var(--accent-color);
    --font-color: var(--text-color);
    --bg-color-sub: rgba(128, 128, 128, 0.1);
    --bg-color: var(--nav-bg);
    --main-color: var(--text-color);
    position: relative;
    width: 80%;
    max-width: 100%;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;

    transition: all 0.3s;
}

.download-btn .button__icon,
.download-btn .button__text {
    transition: all 0.3s;
}

.download-btn .button__text {
    width: 80%;

    color: var(--font-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: none;
    text-align: center;
    transition: all 0.3s;
}

.download-btn .button__icon {
    position: absolute;
    right: 0;
    height: 100%;
    width: 20%;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.download-btn .svg {
    width: 24px;
    fill: var(--bg-color);
}

.download-btn:hover {
    background: var(--bg-color);
}

.download-btn:hover .button__text {
    opacity: 0;
}

.download-btn:hover .button__icon {
    width: 100%;
}

.download-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px var(--main-color);
}

@media (max-width: 768px) {
    .download-btn {
        width: 100%;
    }

    .download-btn .button__icon {
        width: 25%;
    }
}

@media (max-width: 1024px) {
    .about-stars {
        display: none;
    }

    .about-section {
        padding: 3rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-grid-new {
        grid-template-columns: 1fr;
        gap: 4rem;
        width: 100%;
        justify-content: center;
        justify-items: center;
        margin: 0;
    }

    .about-col {
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .info-block,
    .stat-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .info-block p {
        text-align: center;
        margin: 0 auto;
    }

    .about-stats-new {
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .about-footer-text {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.projects-header h2 {
    font-size: clamp(2.5rem, calc(var(--vw, 1vw) * 5), 4.5rem);
    font-weight: 500;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-align: center;
}

.card-swap-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-swap-container {
    position: relative;
    width: 300px;
    /* Default width */
    height: 400px;
    /* Default height */
    transform-style: preserve-3d;
}

.card {
    position: absolute;

    width: 300px;
    height: 400px;
    background: var(--bg-color);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Animation props */
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card p {
    font-size: clamp(0.85rem, calc(var(--vw, 1vw) * 1.3), 1rem);
    color: #666;
}

/* Skills Section */
/* Skills Section - Pinned and Animated */
.skills-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--about-bg-color);
    /* Match main bg or use dark/light specific */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.skills-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.skills-title {

    font-size: clamp(2.5rem, calc(var(--vw, 1vw) * 5), 4.5rem);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color);
    /* Visible initially */
    z-index: 20;
    font-family: "Saira Stencil One", sans-serif;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    margin-bottom: 4rem;
}

.skills-visuals {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center Skill */
.center-skill {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #333, #000);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 0;
    /* Hidden initially */
}

/* Theme adjustments for center skill */
body.light-theme .center-skill {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.center-icon {
    font-size: 3rem;
    color: #fff;
}

body.light-theme .center-icon {
    color: #333;
}

/* Side Skills */
.side-skills {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.skill-item {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #333, #000);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #fff;
    border: none;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);

    /* Position will be handled by CSS vars for distribution, but animation by GSAP */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Base center */
}

body.light-theme .skill-item {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #333;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Using specific positioning for random scattered look */

/* Left Layout - Damru (Hourglass) Shape */
.left-skill-item:nth-child(1) {
    top: 0%;
    left: 10%;
    transform: translate(-50%, -50%);
}

.left-skill-item:nth-child(2) {
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.left-skill-item:nth-child(3) {
    top: 95%;
    left: 35%;
    transform: translate(-50%, -50%);
}

.left-skill-item:nth-child(4) {
    top: 95%;
    left: 10%;
    transform: translate(-50%, -50%);
}

.left-skill-item:nth-child(5) {
    top: 72%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.left-skill-item:nth-child(6) {
    top: 0%;
    left: 35%;
    transform: translate(-50%, -50%);
}

/* Right Layout - Damru (Hourglass) Shape */
.right-skill-item:nth-child(1) {
    top: 0%;
    left: 90%;
    transform: translate(-50%, -50%);
}

.right-skill-item:nth-child(2) {
    top: 25%;
    left: 70%;
    transform: translate(-50%, -50%);
}

.right-skill-item:nth-child(3) {
    top: 95%;
    left: 90%;
    transform: translate(-50%, -50%);
}

.right-skill-item:nth-child(4) {
    top: 95%;
    left: 65%;
    transform: translate(-50%, -50%);
}

.right-skill-item:nth-child(5) {
    top: 0%;
    left: 65%;
    transform: translate(-50%, -50%);
}

.right-skill-item:nth-child(6) {
    top: 72%;
    left: 70%;
    transform: translate(-50%, -50%);
}

/* Desktop-only position corrections for CSS, React, Node.js, Pandas */
@media (min-width: 769px) {

    /* CSS (left nth-child 2) — move to inner column */
    .left-skill-item:nth-child(2) {
        left: 22%;
    }

    /* React (left nth-child 5) — move to inner column */
    .left-skill-item:nth-child(5) {
        left: 22%;
    }

    /* Node.js (right nth-child 2) — move to inner column */
    .right-skill-item:nth-child(2) {
        left: 78%;
    }

    /* Pandas (right nth-child 6) — move to inner column */
    .right-skill-item:nth-child(6) {
        left: 78%;
    }
}

/* Mobile size reduction */
@media (max-width: 768px) {
    .skill-item {
        width: 75px !important;
        height: 75px !important;
        font-size: 2.2rem !important;
        border-radius: 12px !important;
    }

    .skill-name {
        font-size: 10px !important;
        bottom: -30px !important;
    }

    .center-skill .skill-icon {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Hover effects */
.skill-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    z-index: 15;
}

.skill-name {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0;
    /* Hidden initially */
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.light-theme .skill-name {
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Skills Glitch Effect */
.skill-char {
    display: inline-block;
    position: relative;
    transition: color 0.05s ease;
}

.skill-char.block {
    background: var(--text-color);
    color: var(--bg-color) !important;
    padding: 0 1px;
    border-radius: 2px;
}

.skill-char.box {
    box-shadow: inset 0 0 0 1px var(--text-color);
    color: var(--text-color);
}

@keyframes glitch-shake {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0);
    }
}

.skill-char[data-glitching="true"] {
    animation: glitch-shake 0.1s infinite;
    opacity: 0.9;
}




.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 768px) {
    .card-swap-container {
        transform: scale(0.8);
    }
}

/* --- Projects Section Redesign --- */

.projects-section {
    position: relative;
    width: calc(var(--vw, 1vw) * 100);
    height: 100vh;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    /* Vertically center content */
    background: var(--projects-bg);
    /* Deep dark for contrast */
    color: var(--projects-text-main);
}

.projects-text-content {
    margin-left: calc(var(--vw, 1vw) * 15);
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.projects-text-content h2 {
    font-size: clamp(2.5rem, calc(var(--vw, 1vw) * 4), 4rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--projects-text-gradient-start), var(--projects-text-gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-text-content p {
    font-size: clamp(1rem, calc(var(--vw, 1vw) * 1.8), 1.25rem);
    color: var(--projects-text-main);
    text-align: left;
}

.card-swap-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Allow interaction with cards only */
}

.card-swap-container {
    position: absolute;
    /* 
       Anchor Point Calculation:
       Card Size: 60vw width, 60vh height.
       Target: 10% overflow right (-6vw edge), 10% overflow bottom (-6vh edge).
       Center of Card relative to screen right/bottom:
       Right Edge = 100vw. Card Right = 106vw. Card Center X = 106 - 30 = 76vw from LEFT.
       So Right = 100 - 76 = 24vw.
       Bottom Edge = 100vh. Card Bottom = 106vh. Card Center Y = 106 - 30 = 76vh from TOP.
       So Bottom = 100 - 76 = 24vh.
    */
    right: calc(var(--vw, 1vw) * 24);
    bottom: 24vh;
    width: 0px;
    height: 0px;
    z-index: 5;
    pointer-events: auto;
}

.card {
    position: absolute;
    width: calc(var(--vw, 1vw) * 60);
    height: 60vh;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 50px -12px var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;

    /* Ensure hardware acceleration */
    will-change: transform;
    transform-style: preserve-3d;
}

.card-header {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid var(--card-border);
    background: var(--card-header-bg);
}

.card-header i {
    font-size: 14px;
    color: var(--card-icon-color);
    opacity: 0.7;
}

.card-header span {
    font-size: 14px;
    font-weight: 500;
    color: var(--card-text-main);
    letter-spacing: 0.5px;
}

.card-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(100, 100, 255, 0.1), transparent 70%);
    overflow: hidden;
    cursor: pointer; /* visual indicator for click-to-maximize */
}

.card-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    filter: brightness(0.95);
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none !important; /* Forces all pointer actions to skip this */
}

/* YouTube iframe specific styles */
.card-yt-frame {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none !important; /* keeps card hover working and blocks touches */
}

/* Click blocker overlay that intercepts and blocks touches/clicks from reaching the YouTube iframe */
.card-iframe-click-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* sits on top of all card-body contents */
    background: rgba(0, 0, 0, 0.005); /* Non-zero opacity forces iOS Safari to render a solid interactive layer, blocking touch-through bugs! */
    pointer-events: auto !important;
}

.card-thumb {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.card:hover .card-video {
    opacity: 1;
}

.card:hover .card-thumb {
    opacity: 0;
}

.card:hover .card-project-img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.card-play-icon {
    display: none !important; /* completely hidden as requested */
}

/* Project description overlay */
.card-desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.card-desc-overlay p {
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.card:hover .card-desc-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Enhancing dark mode for skills */
.skills-section {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Fix Visibility & Positioning --- */

.card-swap-wrapper {
    /* Ensure it is on top of other section elements if needed */
    z-index: 20;
}

.card-swap-container {
    /* Reset any conflicting transforms */
    transform: none !important;
    transform-origin: center center !important;

    /* Ensure visible */
    width: 1px !important;
    height: 1px !important;
    border: none;
    background: transparent;

    /* Force high index */
    z-index: 20;
}

.card {
    /* Boost contrast against dark bg */
    /* Boost contrast against dark bg */
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 60px var(--card-shadow);
    background: var(--card-bg);
    /* Slightly lighter than section */

    /* Ensure opacity */
    opacity: 1;
}

/* Ensure text doesn't overlap weirdly */
.projects-text-content {
    z-index: 30;
}

/* --- Center Project Text Content in Flex --- */

.projects-section {
    justify-content: flex-start;
    /* Ensure left alignment flow */
}

/* Ensure centering on desktop */
@media (min-width: 769px) {
    .projects-text-content {
        margin-left: calc(var(--vw, 1vw) * 10);
        /* Keep some offset from edge */
        flex: 1;
        /* Allow it to take space */
        max-width: 40%;
        /* Don't overlap card area */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center Vertically in its container */
    }
}

/* --- FINAL LAYOUT REFINE: Vertical Stack with Wrapper --- */

.projects-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: calc(var(--vw, 1vw) * 100) !important;
    min-height: 115vh !important;
    /* Extra height to prevent overlap */
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

/* 1. Animation Area (Top) */
.projects-animation-container {
    position: relative !important;
    width: 100%;
    height: 45vh;
    /* Reserved space for huge text */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align text to bottom of this area */
    padding-bottom: 2rem;
    z-index: 10;
    pointer-events: none;
}

/* 2. Content Wrapper (Bottom) */
.projects-content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1;
    /* Take remaining height */
    position: relative;
    padding-top: 5vh;
}

/* Text Content (Left) */
.projects-text-content {
    flex: 0 0 45% !important;
    height: 100%;
    margin: 0 !important;
    padding-left: calc(var(--vw, 1vw) * 10);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top of content area */
    padding-top: 5vh;
    position: absolute !important;
    /* Keep absolute for cross-fade overlap */
    top: 5vh;
    /* Relative to wrapper */
    left: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.project-detail-1 {
    opacity: 1;
}

/* Cards Wrapper (Right) */
.card-swap-wrapper {
    flex: 1 !important;
    height: 100%;
    position: relative !important;
    width: auto !important;
    margin: 0 !important;
    pointer-events: auto;
}

/* Anchor Point for Cards */
.card-swap-container {
    position: absolute !important;
    right: calc(var(--vw, 1vw) * 10) !important;
    top: 10vh !important;
    /* Push down from top of content wrapper */
    width: 1px !important;
    height: 1px !important;
    transform: none !important;
    z-index: 20;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .projects-text-content {
        position: absolute !important;
        width: 100% !important;
        left: 0;
        top: 0;
        padding: 2rem;
        text-align: center;
        align-items: center;
        justify-content: flex-start;
        height: auto;
    }

    /* Make wrapper relative to hold absolute text items */
    .projects-content-wrapper {
        height: 100vh;
        /* Increased height to prevent text and card overlap on mobile */
    }

    .card-swap-container {
        right: 50% !important;
        top: 65% !important;
        /* Pushed cards down further to make room for text */
    }
}

/* ===== ANIMATED PROJECTS TEXT WITH ROPES ===== */

/* SVG container for ropes */
.rope-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Rope styling */
.rope {
    stroke: var(--about-bg-color);
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    opacity: 0.9;
    z-index: 1;
    transition: stroke var(--transition-speed);
}

.projects-text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.animated-projects-text {
    font-size: clamp(60px, calc(var(--vw, 1vw) * 5), 150px);
    font-weight: 900;
    background-color: var(--about-bg-color);
    padding: 1rem 3rem;
    border-bottom-right-radius: 5rem;
    border-bottom-left-radius: 5rem;
    padding-bottom: 0rem;
    color: var(--projects-title-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    font-family: "Limelight", sans-serif;
    /* Initial state - positioned above viewport with rotation */
    transform: translateY(-200vh) rotate(8deg);
    opacity: 1;
    z-index: 99;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Responsive adjustments for ropes */
@media (max-width: 768px) {
    .rope {
        stroke-width: 2;
    }

    .animated-projects-text {
        font-size: clamp(40px, calc(var(--vw, 1vw) * 10), 100px);
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    height: 90vh;
    margin-bottom: 0vh;
    background-color: var(--contact-bg);
    color: var(--contact-text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 calc(var(--vw, 1vw) * 5);
    z-index: 20;
    width: 95%;
    border-radius: 3rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.hand-container {
    height: 0px;
    width: 450px;
    max-width: 100%;
    z-index: 30;
    pointer-events: none;
}

.hand-image {

    position: relative;
    top: 20vh;
    width: 100%;

    display: block;
    /* We'll use JS to set the initial Y position */
}

.contact-content {

    position: relative;
    z-index: 30;
    /* Above the hand */
    display: flex;
    width: 90%;
    align-items: start;
    justify-content: space-between;
    margin-top: 8rem;
}

.contact-left {
    width: 35%;
}

.contact-heading {
    font-family: var(--font-family);
    font-size: clamp(4rem, calc(var(--vw, 1vw) * 8.5), 10rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--contact-text);
    opacity: 0;
    letter-spacing: -3px;
    margin: 0;
    text-align: center;
    transition: color var(--transition-speed);
}

.contact-right {
    width: 55%;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}


/* Nebula Input Styles */
.nebula-input {
    position: relative;
    width: 100%;
    /* Changed from 250px to 100% */
    margin: 0;
    /* Removed margin to let gap handle spacing */
}

.nebula-input .input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--contact-input-border);
    background: var(--contact-input-bg);
    color: var(--contact-text);
    font-size: 16px;
    outline: none;
    border-radius: 8px;
    transition: all 0.4s ease-out;
    font-family: inherit;
}

.nebula-input .user-label {
    position: absolute;
    left: 15px;
    top: 15px;
    pointer-events: none;
    color: var(--contact-label-color);
    transition: all 0.4s ease-out;
    background: var(--contact-input-bg);
    padding: 0 5px;
}

.nebula-input .input:focus {
    border-color: var(--contact-focus-border);
    box-shadow:
        0 5px 8px var(--contact-focus-shadow),
        0 10px 20px calc(var(--contact-focus-shadow) * 0.67),
        0 15px 40px calc(var(--contact-focus-shadow) * 0.5),
        0 20px 60px calc(var(--contact-focus-shadow) * 0.33);
}

.nebula-input .input:focus~.user-label,
.nebula-input .input:valid~.user-label {
    transform: translateY(-25px);
    font-size: 12px;
    color: var(--contact-focus-border);
    left: 10px;
}

/* Specific fix for textarea processing 'valid' state might differ if empty. 
   Input required + valid works. Textarea required + valid works. */

.nebula-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    top: 50%;
    left: 10px;
    filter: blur(0.8px);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

.nebula-input .input:focus~.nebula-particle {
    animation: nebula-float 2s forwards ease-out;
}

@keyframes nebula-float {
    0% {
        transform: translate(0, -50%) scale(0.8);
        opacity: 0;
        background: var(--contact-focus-border);
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: translate(calc(var(--x) * 140px), calc(var(--y) * 35px)) scale(1.1);
        opacity: 0;
        background: var(--contact-focus-border);
    }
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--contact-text);
    border: 1px solid var(--contact-input-border);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
}

.submit-btn:hover {
    background: var(--contact-text);
    color: var(--contact-bg);
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--contact-focus-shadow);
}

.contact-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    height: auto;
    padding-top: 15vh;
    padding-bottom: 15vh;
    flex-direction: column;
}

@media (max-width: 900px) {
    .contact-section {
        height: auto;
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        /* Center everything on mobile */
        text-align: center;
        gap: 2rem;
        padding-top: 100px;
        /* Space for hand */
    }

    .contact-left {
        justify-content: center;
        width: 100%;
    }

    .contact-heading {
        text-align: center;
        font-size: 5rem;
    }

    .contact-right {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        max-width: 400px;
    }

    .hand-container {
        width: 300px;
    }

    .submit-btn {
        align-self: center;
        /* Center button on mobile */
    }
}

/* Fullscreen Immersive Video Modal */
.fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999; /* Higher than navbar and everything else */
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fullscreen-video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-video-container {
    position: relative;
    width: 85vw;
    height: 85vh;
    max-width: 1200px;
    max-height: 675px; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 60, 0, 0.25), 0 0 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fullscreen-video-overlay.active .fullscreen-video-container {
    transform: scale(1);
}

.fullscreen-video-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-overlay-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1000000;
}

.close-overlay-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .fullscreen-video-container {
        width: 95vw;
        height: auto;
        aspect-ratio: 16/9;
        border-radius: 12px;
    }
    .close-overlay-btn {
        top: 20px;
        right: 25px;
        font-size: 2.8rem;
    }
}