* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* CSS Variables & Reset */
:root {
    --primary-color: linear-gradient(135deg, #d86a48 0%, #ec3030 100%);
    --text-color: #ffffff;
    --bg-color: #0c0c0c;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.6s;
    --ease-curve: cubic-bezier(0.25, 1, 0.5, 1);
}

body {

    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----------------------- Animated mandala background starts here ----------------------- */
.mandala-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    overflow: hidden;
}

.mandala {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mandala-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, transparent 10%, #fff 10.5%, #fff 11%, transparent 11.5%);
    background-size: 100px 100px;
}

.mandala-pattern:nth-child(2) {
    transform: rotate(30deg);
}

.mandala-pattern:nth-child(3) {
    transform: rotate(60deg);
}

/* ----------------------- Animated mandala background ends here ----------------------- */


/* ----------------------- Floating particles starts here ----------------------- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff9a56;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ----------------------- Floating particles ends here ----------------------- */


/* ----------------------- Header section starts here ----------------------- */
header {
    text-align: center;
    padding: 60px 20px 30px;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ac6240 0%, #eb5744 50%, #da5353 75%, #be5e6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
    text-shadow: 0 0 30px rgba(255, 154, 86, 0.452);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto 40px;
}


/* ----------------------- Header section ends here ----------------------- */


/* ----------------------- Main section starts here ----------------------- */

/* --- Main Layout --- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding-top: 80px; */
    position: relative;
    margin-bottom: 50px;
}

/* --- Slider Container --- */

.slider-wrapper {
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 20px;
    border-radius: 20px;
    box-shadow: -10px 25px 50px -12px rgba(87, 66, 60, 0.5);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

/* --- Slider Track & Slides --- */

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}


/* --- Slide Content (Caption) --- */
.slide-content {
    width: 50%;
    height: 100%;
    padding: 3rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(17, 17, 17, 0.7);
    /* glass effect */
    backdrop-filter: blur(10px);

    transform: translateX(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.slide.active .slide-content {
    transform: translateX(0);
    opacity: 1;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInContent 0.6s ease 0.1s forwards;
}

.slide.active .slide-title {
    transform: translateY(0);
    opacity: 1;
}

.slide-desc {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0;
    color: rgb(201, 199, 199);
    transform: translateX(-30px);
    animation: slideInContent 0.6s ease 0.2s forwards;
}

.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
}

.slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    /* background: #000;       */
    /* fill empty space */
}

.slide.active img {
    animation: cinematicZoom 6s ease-in-out forwards;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1.3) translateX(-5%) translateY(-5%);
    }

    50% {
        transform: scale(1.15) translateX(2%) translateY(2%);
    }

    100% {
        transform: scale(1) translateX(0%) translateY(0%);
    }
}


/* ------------ Project Features ------------- */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInContent 0.6s ease 0.3s forwards;
}

/* ------------ Feature Tag ------------- */
.feature-tag {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #252525;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, #ff6a4d, #ff4b2b);
    color: white;
    transform: translateY(-3px);
}

.feature-tag i {
    color: #ff6b35;
    transition: color 0.3s ease;
}

.feature-tag:hover i {
    color: white;
}

/* ------------ Project Link ------------- */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* background: linear-gradient(135deg, #ff6b35, #ff1744); */
    background: linear-gradient(135deg, #d86a48 0%, #ec3030 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    align-self: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInContent 0.6s ease 0.4s forwards;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes slideInContent {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Pagination Dots --- */
.thumbnail-container {
    position: absolute;
    left: 90px;
    bottom: 20px;

    display: flex;
    flex-direction: row;
    gap: 10px;

    transform: translateY(-50%);

    z-index: 10;
}

.thumbnail {
    width: 70px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #d35833;
    opacity: 1;
    transform: scale(1.1);
}


/* --- Progress Bar (Auto-play indicator) --- */
.progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
}

/* Animation for progress bar */
.animating-progress {
    animation: progress linear forwards;
}

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}


@media (max-width: 768px) {

    .slider-wrapper {
        /* aspect-ratio: auto; */
        aspect-ratio: 2/2;
        height: auto;
        border-radius: 12px;
    }

    .slide {
        flex-direction: column;
    }

    .slide img {
        width: 100%;
        height: 65vh;
        object-fit: contain;
        background: #000;
    }

    /* 🔥 THUMBNAILS ABOVE CONTENT */
    .thumbnail-container {
        position: static;
        transform: none;
        justify-content: center;
        margin: 10px 0;
    }

    .thumbnail {
        width: 60px;
        height: 40px;
    }

    /* 🔥 CONTENT BELOW THUMBNAILS */
    .slide-content {
        width: 100%;
        padding: 1.2rem;
        text-align: center;
    }

    .slide-title {
        font-size: 1.6rem;
        /* margin-bottom: 10px; */
    }

    .slide-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 🔥 FEATURE TAGS CENTER */
    .project-features {
        justify-content: center;
        /* margin-bottom: 15px; */
    }

    /* 🔥 BUTTON CENTER */
    .project-link {
        align-self: center;
    }
}


/* ----------------------- Main section ends here ----------------------- */