:root {
    --accent: #c68e4e;
    --dark: #1a1a1a;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #fff;
    font-family: 'Lato', sans-serif;
}

a { text-decoration: none !important; }





/* Section 2 Starts */
.works {
    padding: 60px 5%;
    background-image: url('../public/bgg1.png');
    background-position: center;
    background-size: cover;
    object-fit: cover;
}

/* Header */
.works-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    margin-left: 5rem;
}

.works-header .line {
    width: 6px;
    height: 50px;
    background: #c68e4e;
}

.works-header .sub {
    font-size: 14px;
    color: #777;
}

.works-header h2 {
    font-size: 28px;
    color: #c68e4e;
}

/* Slider */
.works-container {
    position: relative;
    margin-left: 10rem;
    padding: 50px;
}

.works-wrapper {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Card */
.work-card {
    width: 220px;
    height: 360px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.work-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.work-overlay h3{
    margin-bottom: .3rem;
}
.work-overlay p{
    margin-bottom: .3rem;
}
/* Arrows */
.work-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    z-index: 2;
}

.work-arrow.left { left: -20px; }
.work-arrow.right { right: -20px; }

.work-card img {
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay {
    transition: all 0.4s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.work-card:hover .work-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.work-overlay h3,
.work-overlay p,
.work-overlay span {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.work-card:hover .work-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.work-card:hover .work-overlay p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.work-card:hover .work-overlay span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.work-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Default state (BEFORE HOVER) */
.work-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

.work-overlay p,
.work-overlay span {
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth transition */
.work-overlay h3,
.work-overlay p,
.work-overlay span {
    transition: all 0.4s ease;
}

/* =========================
   Scroll Reveal Animation
========================= */

/* Initial hidden state */
.works {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

/* When visible */
.works.show {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: stagger cards animation */
.work-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.work-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Section 2 Ends */


/* Section 3 Starts */
/* =========================
   WHY SECTION
========================= */

.why {
    position: relative;
    background: #ffffff;
    margin-bottom: 2rem;
}

/* Background */
.why-bg {
    position: relative;
    background-image: url(../public/fdfvse.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 0; /* important */
}

/* Overlay */
.why-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Text above overlay */
.why-content {
    position: relative;
    z-index: 2;
}

/* 🔥 IMPORTANT: Keep cards OUTSIDE overlay */
.why-cards {
    position: relative;
    z-index: 3;
}


/* Content */
.why-content {
    position: relative;
    margin-bottom: 3rem;
}

.why-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #ffffff;
}

.why-content p {
    color: #ffffffb6;
}

/* Cards */
.why-cards {
    width: 85%;
    margin: -95px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Individual Card */
.why-card {
    padding: 40px 25px;
    text-align: center;
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
}

.why-card:last-child {
    border-right: none;
}

.why-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.img{
    width: 50px;
}
.img1{
    width: 70px;
}
.why-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.why-card p {
    font-size: 14px;
    color: #666;
}

/* Hover */
.why-card:hover {
    transform: translateY(-10px);
    background: #fafafa;
}
/* =========================
   SCROLL REVEAL
========================= */

/* Section initial */
.why-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* Cards initial */
.why-card {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s ease;
}

/* When visible */
.why.show .why-content {
    opacity: 1;
    transform: translateY(0);
}

.why.show .why-card {
    opacity: 1;
    transform: translateY(0);
}
/* Section 3 Ends */



/* Section 4 Starts */
/* =========================
   SERVICES SECTION
========================= */

.services {
    padding: 80px 5%;
    background: #ffffff;
}

.services-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Left Content */
.services-content .tag {
    color: #c68e4e;
    font-weight: 600;
    margin-bottom: 10px;
}

.services-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.services-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #444;
}

.services-content .desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* List */
.services-list {
    margin: 20px 0;
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 8px;
    color: #444;
    position: relative;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #c68e4e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #a8743c;
}

/* Image */
.services-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.4s;
}

.services-image img:hover {
    transform: scale(1.05);
}
/* =========================
   SERVICES SCROLL REVEAL
========================= */

/* Initial state */
.services-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.services-image {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

/* When visible */
.services.show .services-content {
    opacity: 1;
    transform: translateX(0);
}

.services.show .services-image {
    opacity: 1;
    transform: translateX(0);
}

/* Section 4 Ends */

.reviews-slider {
    width: 80%;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 40px;
    padding: 20px 0;
    
}
.reviews{
    margin-bottom: 50px;
}
.reviews-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.reviews .review-card {
    min-width: calc(33.33% - 20px); /* Show 3 cards on desktop */
    margin: 0 10px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    opacity: 1; /* Override reveal if slider is active */
    transform: none;
}

/* Dots Navigation Styling */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #c68e4e;
    width: 20px; /* Slight expansion for active state */
}
/* --- Scroll Reveal Initial State --- */
.reviews {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reviews.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered effect for cards */
.reviews .review-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reviews.reveal-visible .review-card {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   TRUST SECTION
========================= */
.trust-section {
    padding: 100px 5%;
    background-color: #fffaf5; /* Very light gold tint */
}

.trust-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-content .tag {
    color: #c68e4e;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.trust-content h2 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.trust-content .desc {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item i {
    color: #c68e4e;
    font-size: 20px;
}

.stat-item span {
    font-size: 15px;
    color: #333;
}

.enquiry-btn-large {
    display: inline-block;
    padding: 15px 35px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s ease;
}

.enquiry-btn-large:hover {
    background: #c68e4e;
    transform: translateY(-3px);
}

/* Right Side Badge Styling */
.trust-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.experience-badge {
    width: 250px;
    height: 250px;
    border: 2px solid #c68e4e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    position: relative;
}

.experience-badge .years {
    font-size: 64px;
    font-weight: 900;
    color: #c68e4e;
    font-family: 'Playfair Display', serif;
}

.experience-badge .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    font-weight: 700;
}

/* --- Scroll Reveal States --- */
.trust-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.trust-visual {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease;
}

.trust-section.reveal-visible .trust-content {
    opacity: 1;
    transform: translateX(0);
}

.trust-section.reveal-visible .trust-visual {
    opacity: 1;
    transform: scale(1);
}
/* --- Trust Section Reveal Initial State --- */
.trust-section {
    overflow: hidden; /* Prevents scrollbars during animation */
}

.trust-content {
    opacity: 0;
    transform: translateX(-80px); /* Slide in from left */
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trust-visual {
    opacity: 0;
    transform: translateX(80px) scale(0.8); /* Slide in from right and grow */
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reveal Visible State --- */
.trust-section.reveal-visible .trust-content {
    opacity: 1;
    transform: translateX(0);
}

.trust-section.reveal-visible .trust-visual {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Optional: Stagger the checkmarks inside the content */
.stat-item {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.trust-section.reveal-visible .stat-item {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .trust-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .trust-stats {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .stat-item {
        justify-content: center;
    }
    
}


/* =========================
   INFINITE LOGO SLIDER
========================= */
.logo-slider-section {
    padding: 60px 0;
    background-color: #fff;
    background-image: url('../public/pattern-bg.png'); /* Add your zig-zag pattern here */
    background-size: 400px;
    overflow: hidden;
}

.logo-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.logo-track {
    display: flex;
    width: calc(250px * 15); /* Width of logo * total items (original + clones) */
    animation: scrollLogos 40s linear infinite;
}

.logo-item {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.logo-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    
    opacity: 1;
    transition: 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation Keyframes */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); } /* Slide through the first 10 logos */
}

/* Pause on Hover */
.logo-slider-container:hover .logo-track {
    animation-play-state: paused;
}
/* Logo Slider Layout */
.logo-slider-section {
    padding: 80px 5%;
    background-color: #ffffff;
    background-image: url('../public/pattern-bg.png'); /* Pattern from your image */
    overflow: hidden;
}

.logo-slider-section .works-header {
    margin-bottom: 50px;
}

/* Scroll Reveal Initial States */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-item.show-item {
    opacity: 1;
    transform: translateY(0);
}

/* Infinite Animation */
.logo-track {
    display: flex;
    width: calc(250px * 15);
    animation: scrollLogos 30s linear infinite;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); }
}



/* =========================
   FINAL CTA SECTION
========================= */
.final-cta {
    position: relative;
    padding: 120px 5%;
    background: #1a1a1a; /* Fallback color */
    background-image: url('../public/interior.png'); /* Using your interior image as a background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    text-align: center;
    color: #fff;
    height: 30rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay to make text readable */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
    
}

.cta-content h2 {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cta-btn.primary {
    background: #c68e4e;
    color: #fff;
}

.cta-btn.secondary {
    background: #fff;
    color: #1a1a1a;
}

.cta-btn.whatsapp {
    background: #c68e4e;
    color: #fff;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Scroll Reveal States */
.final-cta .reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.final-cta.reveal-visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .cta-content h2 { font-size: 32px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-btn { width: 80%; justify-content: center; }
}

/* --- Final CTA Scroll Reveal --- */
.final-cta .cta-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.6, 0.35, 1);
}

/* Initial state for buttons to allow staggering */
.cta-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Visible State */
.final-cta.reveal-visible .cta-content {
    opacity: 1;
    transform: translateY(0);
}

/* Individual button visibility handled by JS timeout or CSS delay */
.final-cta.reveal-visible .cta-btn {
    opacity: 1;
    transform: translateY(0);
}


@media screen and (max-width: 768px) {
    

    /* Section 1 Starts */
     .hero {
        height: 100vh;
        background-attachment: scroll; /* ✅ fix mobile parallax issue */
    }

    .hero-content {
        left: 50%;
        width: 90%;
        text-align: center;
    }

    .hero-txt {
        font-size: 2rem;
        line-height: 1.3;
        width: 90%;
        margin: 0 auto;
        margin-bottom: 1rem;
    }

    .hero-subtit {
        font-size: 0.9rem;
    }

    .hero-desc {
        font-size: 0.8rem;
        width: 70%;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .btn.dark,
    .btn.gold {
        width: 80%;
        text-align: center;
    }

    .hero-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 20px;
    }
    /* Section 1 Ends */

    /* Section 2 Starts */
    .works {
        padding: 40px 20px;
    }

    .works-header {
        margin-left: 2rem;
        flex-direction: row;
        gap: 10px;
    }

    .works-header h2 {
        font-size: 22px;
    }

    .works-container {
        margin-left: 0;
        padding: 20px 0;
    }

    .works-wrapper {
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .work-card {
        width: 180px;
        height: 300px;
        scroll-snap-align: start;
    }

    .work-arrow {
        display: none; /* Hide arrows for swipe */
    }
    /* Section 2 Ends */

    /* Section 3 Starts */

    .why-bg {
        height: 220px;
        padding: 15px;
    }

    .why-content h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .why-content p {
        font-size: 13px;
    }

    .why-cards {
        width: 80%;
        grid-template-columns: 1fr;
        margin: -60px auto 0;
        border-radius: 8px;
    }

    .why-card {
        padding: 25px 15px;
        border-bottom: 1px solid #eee;
    }

    .why-card:last-child {
        border-bottom: none;
    }

    .why-card h3 {
        font-size: 16px;
    }

    .why-card p {
        font-size: 13px;
    }

    .img {
        width: 40px;
    }

    .img1 {
        width: 55px;
    }
    /* Section 3 Ends */

     /* Section 4 starts */
     .services-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-content h2 {
        font-size: 26px;
    }

    .services-content h3 {
        font-size: 18px;
    }
    /* Section 4 Ends */

    .test-card {
        min-width: 250px;
    }



    .reviews .review-card { min-width: calc(100% - 20px); }
    .services-image{order: -1;}
}







/* --- Core Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Use 'background-color' as a fallback while image loads */
    background-color: #1a1a1a; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.8s ease-in-out;
}

/* Clearer Overlay using a gradient for better text contrast */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.7)
    );
}

/* --- Slider Wrapper --- */
.hero-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide1 {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Content Layout --- */
.hero-content {
    position: relative;
    z-index: 5; /* Ensures content is ABOVE the dark overlay */
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

.hero-layout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

/* --- Center Section --- */
.center-focus {
    text-align: center;
    flex: 0 0 550px; /* Increased slightly for better text breathing room */
}

.round-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 2px solid #c89b5e;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.round-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-txt {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    /* Crucial for readability on busy images */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8); 
}

.hero-subtit {
    font-size: 1.2rem;
    font-weight: 500;
    color: #c89b5e;
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Side Card Gallery --- */
.side-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    width: 180px;
    height: 130px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1); /* Glass effect placeholder */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ANIMATION LOGIC --- */
/* Initial state */
.round-logo, .hero-txt, .hero-subtit, .hero-buttons, .left-cards, .right-cards {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.round-logo, .hero-txt, .hero-subtit, .hero-buttons { transform: translateY(30px); }
.left-cards { transform: translateX(-50px); }
.right-cards { transform: translateX(50px); }

/* Active states */
.hero-slide1.active .round-logo,
.hero-slide1.active .hero-txt,
.hero-slide1.active .hero-subtit,
.hero-slide1.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide1.active .left-cards,
.hero-slide1.active .right-cards {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delays */
.hero-slide1.active .round-logo { transition-delay: 0.2s; }
.hero-slide1.active .hero-txt { transition-delay: 0.4s; }
.hero-slide1.active .hero-subtit { transition-delay: 0.5s; }
.hero-slide1.active .hero-buttons { transition-delay: 0.6s; }
.hero-slide1.active .left-cards, 
.hero-slide1.active .right-cards { transition-delay: 0.8s; }

/* --- Buttons & Navigation --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn.dark {
    background: #c89b5e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 155, 94, 0.3);
}

.btn.dark:hover {
    background: #b0854d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 155, 94, 0.5);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15; /* Higher than content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.hero-arrow:hover {
    background: #c89b5e;
    border-color: #c89b5e;
}

.hero-arrow.left { left: 30px; }
.hero-arrow.right { right: 30px; }

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .side-cards { display: none; } /* Hide clutter on small screens */
    .hero-layout-container { flex-direction: column; }
    .center-focus { flex: 0 0 auto; width: 100%; }
    .hero-txt { font-size: 2.8rem; }
}











@media (max-width: 768px) {
    .hero{height: auto; padding-top: 7rem;}
    /* 1. Reset the slide to a standard stacking container */
    .hero-slide1 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 40px; /* Space for fixed header and bottom padding */
        overflow-y: visible;
    }

    /* 2. Remove absolute centering that causes overlapping */
    .hero-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        z-index: 10;
    }

    .hero-layout-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* 3. SET THE ORDER: Logo -> Text/Button -> Images */
    
    .round-logo {
        order: 1; /* First */
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }

    .center-focus {
        order: 2; /* Second */
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .side-cards {
        order: 3; /* Third (Below Button) */
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 340px;
        gap: 15px;
    }

    /* 4. Card Styling */
    .card {
        width: 100% !important;
        height: 150px !important;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }

    /* Gradient overlay for cards */
    .card::after {
        content: "VIEW PROJECT";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, #c89c5eb1, transparent);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 15px;
        color: #fff;
        font-weight: bold;
        font-size: 0.8rem;
    }

    /* 5. Typography Fixes */
    .hero-txt { font-size: 2rem; margin-bottom: 10px; }
    .hero-subtit { font-size: 0.9rem; margin-bottom: 20px; }
    .btn { width: 100%; max-width: 250px; }

    /* 6. Navigation Arrows - Keep them accessible at bottom */
    .hero-arrow {
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
        z-index: 100;
        width: 45px;
        height: 45px;
    }
    .hero-arrow.left { left: 20px; }
    .hero-arrow.right { right: 20px; }

    /* Animation trigger */
    .hero-slide1.active .card {
        opacity: 1;
        transform: translateY(0);
    }
}