/* ===== 1. Root Variables & Global Styles ===== */
:root {
    --bg-color: #bebba9;      /* Sage Green from logo */
    --primary-color: #CE9D70; /* Mustard Gold from logo */
    --text-color: #F8F8F8;    /* Off-white for readability */
    --dark-accent: #303B31;   /* A darker sage for depth */
    --light-accent: #87A471;
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
scrollbar-width: thin;
    /* Sets thumb to gold, track to dark */
    scrollbar-color: var(--primary-color) var(--dark-accent);
}

/* For Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 8px;
    background: var(--dark-accent); /* Makes the base track dark */
}

::-webkit-scrollbar-track {
    background: var(--dark-accent); /* Makes the track area dark */
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* Your gold color */
    border-radius: 10px;
    /* We can remove the border now as it has a dark track */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #E0B94E; 
    opacity: 0.8;
}


body {
    font-family: var(--font-family);
    background-color: var(--dark-accent);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 2. Header & Navigation ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
    background: linear-gradient(180deg, rgba(74, 84, 76, 1), rgba(74, 84, 76, 0));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-logo img {
    height: 45px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-button {
    background-color: var(--primary-color);
    color: var(--dark-accent);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--text-color);
    color: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* NEW: Make links & buttons show a 'pointer' for our custom cursor */
a, .nav-button, .cta-button {
    cursor: none; /* Inherits from html */
}


/* ===== 3. Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    padding-top: 80px; 
}

.hero-content {
    max-width: 70%;
    margin-left: 1; 
    margin-right: auto;
}

.hero h1 {
    text-transform: capitalize;
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0; /* Start hidden */
    animation: 
        fadeInUp 1s ease-out 0.5s forwards, /* Intro animation */
        subtleGlow 4s ease-in-out 1.5s infinite; /* Loop (starts after intro) */
}

.hero p {
    text-align: justify;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 900px;
    opacity: 0; /* Start hidden */
    animation: 
        fadeInUp 1s ease-out 0.8s forwards, /* Staggered intro */
        Glow 4s ease-in-out 1.8s infinite; /* Staggered loop */
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--dark-accent);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin-right: 20px;
    margin-bottom: 20px;
}


.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero .hero-buttons {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 1s ease-out 1.1s forwards; /* Staggered intro */
}

/* NEW: Wrapper for the buttons */
.hero-buttons {
    display: flex;
    gap: 1rem; /* Adds spacing between buttons */
}

/* NEW: Style for the secondary button (starts transparent) */
.cta-button-secondary {
    background-color: transparent;
    color: var(--bg-color); /* Gold text */
    border: 2px solid var(--bg-color);
}

/* NEW: Flipped hover animation (goes to solid) */
.cta-button-secondary:hover {
    background-color: var(--bg-color);
    color: var(--dark-accent); /* Dark text */
}

/* ===== 4. Content Sections ===== */
.content-section {
    padding: 6.6rem 0;
    position: relative;
    background-color: transparent; /* Default dark background */
    overflow: hidden;
}

.bg-light {
    background-color: var(--bg-color); /* Light sage */
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color); /* Gold title on dark bg */
}

.bg-light h2 {
    color: var(--dark-accent);
}

.bg-light p {
    color: var(--dark-accent);
}


/** Service Carousel Section**/
.meta-column h4 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.meta-column ul {
    list-style: none;
}

.meta-column ul li {
    position: relative;
    color: var(--);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Custom Gold Bullet */
.meta-column ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.service-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 4rem 0;
    opacity: 0.3;
}

/* Adjusting the CTA button specifically for these blocks */
.meta-column .cta-button {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Carousel Styles --- */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track-container {
    overflow:hidden; /* Hides the other slides */
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Professional "snap" feel */
}

.service-slide {
    min-width: 100%; /* Shows one slide at a time */
    padding: 0 15px;
    display: flex;
}

/* Reuse your detail block styles but adjusted for carousel */
.service-detail-block {
    background: rgba(255, 253, 233, 0.2);
    border: 5px solid rgba(206 157 112, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    
    /* Uniformity Magic */
    width: 100%;
    min-height: 5px; /* Adjust this value if your text is longer/shorter */
    display: flex;
    flex-direction: column;
}

.service-intro {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.4;

    margin-bottom: 2rem;
    /* This pushes the meta-grid to the bottom of the card */
    flex-grow: 1; 
}

.service-main-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-main-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-meta-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensures the bottom of the grid is always at the bottom of the card */
    margin-top: auto; 
}

/* Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* Progress Dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(217, 180, 74, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* --- How It Works Steps (Existing) --- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}


.step span {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.step h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--bg-color);
}

/* --- About Us Section (New) --- */
#about-us {
    padding: 5.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr .8fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--text-color); 
    max-width: 600px;
}

.image-placeholder {
    width: 100%;
    height: 600px;
    background-color: var(--bg-color);
    border-radius: 10px;
    border: 2px dashed var(--primary-color);
    opacity: 0.5;
}

/* --- Why Choose Us Section (New) --- */
.about-list {
    list-style: none;
    
    /* Change from a list to a 2x2 grid */
    display: grid;
    grid-template-columns: repeat(2, 2fr); /* Two equal columns */
    gap: 2rem; /* Space between the cards */
    
    /* Remove old centering styles */
    max-width: none; 
}

.about-list h1{
    font-size: 2rem;
    line-height: 2.2rem;
    color: #fff;
}

.about-list li {
    /* Style each item as a "card" */
    background-color: var(--dark-accent); /* Dark card on the light bg */
    color: var(--text-color); /* Light text on the dark card */
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    
    /* This is the accent "pop" */
    border-top: 4px solid var(--primary-color); 
    
    /* This is for the interactivity */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Override old list styles */
    font-size: 1.1rem;
    font-weight: 300;
    border-bottom: none; 
}

/* This is the interactive "pop" on hover */
.about-list li:hover {
    transform: translateY(-8px); /* Lifts the card */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Adds a soft shadow */
}

/* This rule is no longer needed */
/* .about-list li:last-child { ... } */

/* --- Testimonials Section (New) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--dark-accent);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--bg-color);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-color); 
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-card blockquote::before {
    content: '“';
    position: absolute;
    left: -0.25rem;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
    display: block;
    text-align: right;
}


/* --- Final CTA Section (Existing) --- */
.cta-section {
    text-align: center;
    background-color: var(--bg-color);
}



.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--l);
}

.cta-section p span {
color: var(--dark-accent);
font-weight: 600;
font-size: 20px;
}

/* ===== 5. NEW ANIMATION STYLES ===== */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Deep background */
    filter: blur(40px); /* Smooths out the "blobs" into a mesh */
}

/* NEW: Add a "Grain" texture for a professional print-like finish */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle noise texture */
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* --- Cursor Glow --- */
#cursor-glow {
    position: fixed;
    z-index: 9999; /* Sits on top of ALL content */
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    
    
    /* This is critical! */
    pointer-events: none; 
    
    /* Centers the div on the cursor position */
    transform: translate(-50%, -50%); 
    
    opacity: 0.5;
    filter: blur(5px); /* Creates the soft glow */
    transition: transform 0.1s ease-out; /* Smooths the follow */
}

/* --- REMOVED OLD ANIMATION --- */
/* .abstract-shape and @keyframes morph are gone */


/* Class for JS fade-in */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
/* NEW: Keyframes for Hero Intro */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NEW: Keyframes for Hero Text Loop */
@keyframes subtleGlow {
    0%, 100% {
        /* Uses your --text-color with low opacity */
        text-shadow: 0 0 5px rgba(248, 248, 248, 0.2); 
    }
    50% {
        text-shadow: 0 0 15px rgba(248, 248, 248, 0.5);
    }
}


/* ===== 6. Footer (Compact) ===== */
footer {
    padding: 1.5rem 0;
    text-align: center;
    background-color: var(--dark-accent);
    border-top: 5px solid var(--primary-color);
    position: relative; /* Ensures it sits above canvas */
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem; 
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem; 
    opacity: 0.7;
}
.footer-logo img {
    height: 60px; 
    width: auto;  
    margin-right: 0.1rem;
}

.footer-social i {
    font-size: 1rem;
}

.footer-links a, .footer-social a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 0.2rem;
    font-weight: 300;
    font-size: 0.7rem;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.75rem; 
    opacity: 0.4;
}


/* ===== 7. Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .service-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        grid-row: 1; 
    }

    .footer-content {
        display: flex;
        flex-direction:column;
        align-items: center;
        gap: 1rem; 
}

    /* Hides the custom cursor on mobile (they don't have cursors) */
    html {
        cursor: auto;
    }
    #cursor-glow {
        display: none;
    }
}