/* ========================================
   SLIDER COMPONENT STYLES
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #fff;
    overflow-x: hidden;
}

/* ========================================
   PROJECT SLIDER SECTION STYLES
   ======================================== */
:root {
    --projects-camera-perspective: 1200px;
    --projects-camera-rotate-x: 0deg;
    --projects-camera-rotate-y: 0deg;
    --projects-camera-rotate-z: 0deg;
    --projects-camera-scale: 1;

    /* Background SVG Position & Scale Controls */
    --projects-bg-svg-x: 50%;
    --projects-bg-svg-y: 110%;
    --projects-bg-svg-scale-x: 0.7;
    --projects-bg-svg-scale-y: 0.7;

    /* Clip Path SVG Position & Scale Controls */
    --projects-clip-svg-x: 50%;
    --projects-clip-svg-y: 80%;
    --projects-clip-svg-scale: 2;

    /* ================================
       Simple Slider SVG Background Controls (Desktop)
       ================================
       Controls the large background SVG that appears behind cards
       --simple-svg-scale: Size multiplier (1.5 = 150% of base size)
       --simple-svg-x: Horizontal position (0% = left, 50% = center, 100% = right)
       --simple-svg-y: Vertical position (0% = top, 50% = center, 100% = bottom)
       --simple-svg-opacity: Base opacity (0 to 1, gets modified by JS based on card position)
    */
    --simple-svg-scale: 1.5;
    --simple-svg-x: 35%;
    --simple-svg-y: 100%;
    --simple-svg-opacity: 1;

    /* Note: Simple slider cards use the same clip path as projects slider
       Controlled by --projects-clip-svg-x/y/scale above */
}

@media (max-width: 768px) {
    :root {
        --projects-camera-scale: 0.9;

        /* ================================
           Simple Slider SVG Background Controls (Mobile)
           ================================
           Mobile overrides for background SVG positioning
        */
        --simple-svg-scale: 0.8;
        --simple-svg-x: 50%;
        --simple-svg-y: 100%;

        /* Note: Simple slider cards use the same clip path as projects slider
           Controlled by --projects-clip-svg-x/y/scale above */
    }
}

.projects-clip-svg {
    position: absolute;
    width: 0;
    height: 0;
}

.projects-slider-section {
    height: 70vh;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.projects-header-area {
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.projects-cards-area {
    height: 60%;
    position: relative;
    perspective: var(--projects-camera-perspective);
    display: flex;
    align-items: center;
    padding-bottom: 2rem;
}

.projects-nav-area {
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 15;
}

.projects-camera-view {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: scale(var(--projects-camera-scale)) rotateX(var(--projects-camera-rotate-x)) rotateY(var(--projects-camera-rotate-y)) rotateZ(var(--projects-camera-rotate-z));
    transition: transform 0.5s ease;
    position: relative;
    pointer-events: none;
    z-index: 10;
}

.projects-slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    pointer-events: none;
}

.projects-card-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    padding-left: calc(50vw - 180px);
    padding-right: calc(50vw - 180px);
    will-change: transform;
    transform-style: preserve-3d;
    pointer-events: none;
}

.projects-project-card {
    flex-shrink: 0;
    width: 360px;
    aspect-ratio: 4 / 5;
    transform: translateZ(10px);
    transition: transform 0.5s ease-out, border-color 0.3s ease;
    will-change: transform;
    isolation: isolate;
    border: 1px solid #2a2a2a;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

@media (min-width: 769px) {
    .projects-project-card {
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
    }
}

.projects-project-tag {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: white;
}

.projects-image-wrapper {
    clip-path: inset(0% 0% 0% 0%);
    transition: clip-path 0.7s cubic-bezier(0.86, 0, 0.07, 1);
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    z-index: 10;
}

.projects-project-card:hover .projects-image-wrapper {
    clip-path: url(#projects-infinity-clip);
}

.projects-project-image {
    transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-project-card:hover .projects-project-image {
    transform: scale(1.1);
}

.projects-card-gradient-bg {
    opacity: 0;
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    z-index: 0;
    transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.projects-project-card:hover .projects-card-gradient-bg {
    opacity: 1;
}

.projects-darken-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
}

.projects-card-inner-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1), transparent);
    border-radius: 1.5rem 1.5rem 0 0;
    pointer-events: none;
    z-index: 11;
}

.projects-card-inner-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1), transparent);
    border-radius: 0 0 1.5rem 1.5rem;
    pointer-events: none;
    z-index: 11;
}

.projects-project-card:hover .projects-darken-overlay {
    opacity: 1;
}

.projects-project-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.projects-project-card:hover .projects-project-description {
    opacity: 1;
    max-height: 10.5rem;
}

.projects-project-card:hover .projects-card-top-content {
    transform: translateY(-10px);
    transition: transform 0.5s ease-out;
}

.projects-project-card:hover .projects-read-more-icon {
    opacity: 1;
    transform: translateX(0);
}

.projects-background-svg-container {
    position: fixed;
    top: var(--projects-bg-svg-y);
    left: var(--projects-bg-svg-x);
    transform: translate(-50%, -50%) scaleX(var(--projects-bg-svg-scale-x)) scaleY(var(--projects-bg-svg-scale-y));
    width: 127.5vh;
    height: auto;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.projects-background-svg-container svg {
    width: 100%;
    height: 100%;
}

#projects-background-path {
    fill: rgba(255, 255, 255, 0.03);
    transition: fill 0.5s ease-in-out;
}

.projects-gradient-top {
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    height: calc(50% + 12rem);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
    z-index: 1;
}

.projects-gradient-bottom {
    position: absolute;
    bottom: -16.67%;
    left: 0;
    right: 0;
    height: calc(16.67% + 12rem);
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
    z-index: 1;
}

.projects-card-content {
    position: relative;
    z-index: 20;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.projects-card-top-content {
    flex: 1;
    min-height: 0;
    transition: transform 0.5s ease-out;
}

.projects-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.projects-project-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.projects-project-year {
    color: #9ca3af;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
}

.projects-project-description-wrapper {
    margin-top: 1rem;
    padding-right: 1rem;
}

.projects-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.projects-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    min-height: fit-content;
}

.projects-read-more-icon {
    opacity: 0;
    transform: translateX(10px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    z-index: 1;
    transition: background-color 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.projects-read-more-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation Dots */
.projects-nav-dots {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.projects-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.projects-nav-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.projects-nav-dot.active {
    background-color: #000000;
    width: 32px;
    border-radius: 5px;
}

/* ========================================
   SIMPLE SLIDER SECTION
   ======================================== */
.simple-slider-section {
    height: 100vh;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* SVG Background - 100% of section with CSS controls */
.simple-svg-background {
    position: absolute;
    top: var(--simple-svg-y);
    left: var(--simple-svg-x);
    transform: translate(-50%, -50%) scale(var(--simple-svg-scale));
    width: 60vh;
    height: calc(60vh * 1.795);
    z-index: 0;
    opacity: var(--simple-svg-opacity);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.simple-svg-background svg {
    width: 100%;
    height: 100%;
}

/* Static colors now applied inline to paths - no need for dynamic fill */
/* .simple-svg-background svg path#simple-bg-path {
    fill: url(#simple-gradient-1);
    transition: fill 0.5s ease;
} */

/* Top white gradient - fades SVG only */
.simple-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom white gradient - fades SVG only */
.simple-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Header Area - 15% */
.simple-header-area {
    min-height: 20%;
    display: flex;
    align-items: flex-start;
    gap: 5%;
    padding: 5%;
    padding-bottom: 3%;
    position: relative;
    z-index: 3;
}

.simple-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simple-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bfc932;
    margin: 0;
}

.simple-h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0b3d2e;
    margin: 0;
}

.simple-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.simple-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.simple-description .underline-text {
    text-decoration: underline;
    text-decoration-color: #bfc932;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Cards Area - 80% */
.simple-cards-area {
    height: 65%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow-x: scroll;
    overflow-y: visible;
    padding: 2rem 0 3rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.simple-cards-area::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.simple-cards-track {
    display: flex;
    gap: 30px;
    padding: 0 calc(50% - 180px);
}

/* Card styling with size-based active/inactive states */
.simple-cards-track .projects-project-card {
    flex-shrink: 0;
    width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.5s ease;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: scale(0.85);
}

/* Active card - centered and bigger */
.simple-cards-track .projects-project-card.active {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.simple-cards-track .projects-project-card.active:hover {
    transform: scale(1.02);
}

/* Navigation Area - 5% */
.simple-nav-area {
    height: 10%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 3;
    padding-top: 1rem;
}

.simple-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.simple-nav-dot.active {
    background-color: #000;
    border-color: #000;
    width: 28px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.simple-nav-dot:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* Laptops with limited vertical space - scale down cards */
@media (min-width: 769px) and (max-height: 900px) {
    .simple-cards-track .projects-project-card {
        width: 300px;
        transform: scale(0.8);
    }

    .simple-cards-track .projects-project-card.active {
        transform: scale(0.95);
    }

    .simple-cards-area {
        padding: 1.5rem 0 1.5rem 0;
    }
}

/* Extra short laptops - even smaller cards */
@media (min-width: 769px) and (max-height: 800px) {
    .simple-cards-track .projects-project-card {
        width: 280px;
        transform: scale(0.75);
    }

    .simple-cards-track .projects-project-card.active {
        transform: scale(0.88);
    }

    .simple-header-area {
        min-height: 10%;
        padding: 1.5% 5% 0.5% 5%;
    }

    .simple-h2 {
        font-size: 2rem;
    }

    .simple-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .simple-cards-area {
        height: 80%;
        padding: 1rem 0 1rem 0;
    }

    .simple-nav-area {
        height: 8%;
        padding-top: 0.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .simple-header-area {
        flex-direction: column;
        gap: 40px;
        padding-bottom: 8%;
        min-height: 25%;
    }

    .simple-h2 {
        font-size: 2rem;
    }

    .simple-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .simple-cards-track {
        padding: 0 calc(50% - 150px);
        gap: 0px;
    }

    .simple-cards-track .projects-project-card {
        width: 300px;
    }

    .simple-cards-track .projects-project-card.active {
        box-shadow: none;
    }
}

/* Small height mobile screens - prevent overlap */
@media (max-width: 768px) and (max-height: 700px) {
    .simple-header-area {
        min-height: auto;
        gap: 15px;
        padding: 3% 5%;
        padding-bottom: 2%;
    }

    .simple-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .simple-h2 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .simple-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        /* Limit description height and add ellipsis if too long */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .simple-cards-area {
        height: 70%;
        padding: 1rem 0 2rem 0;
    }

    .simple-nav-area {
        height: 8%;
        padding-top: 0.5rem;
    }
}

/* Extra small height screens - more aggressive adjustments */
@media (max-width: 768px) and (max-height: 600px) {
    .simple-header-area {
        gap: 10px;
        padding: 2% 5%;
    }

    .simple-subtitle {
        font-size: 0.8rem;
    }

    .simple-h2 {
        font-size: 1.25rem;
    }

    .simple-description {
        font-size: 0.8rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .simple-cards-area {
        height: 75%;
        padding: 0.5rem 0 1.5rem 0;
    }

    .simple-cards-track .projects-project-card {
        width: 260px;
    }
}
