/* Base Styles */
:root {
    --primary-color: #711666;
    --text-color: #FFFFFF; /* Used for hero text and initially for some base elements */
    --button-primary-bg: #5B2C6F;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: #FFFFFF;
    --button-secondary-text: #5B2C6F;

    /* Colors for the cards section */
    --card-bg-color: #877C8B; 
    --card-text-color: #F0F0F0; 
    --card-hover-shadow: rgba(0, 0, 0, 0.2);
    --learn-more-button-bg: #D9D9D9; 
    --learn-more-button-text: #333333; 
}

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

html, body {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

body {
    background-color: #ffffff; /* General background color for the page */
    font-family: 'Poppins', sans-serif;
    color: var(--text-color); /* Default text color, overridden in sections like cards */
    overflow-x: hidden; /* Prevents horizontal scroll */
    position: relative; /* Useful for absolute positioning children */
}

/* Utility Class for Mobile Menu Overlay (used by Navbar's JS, but defined here for main body) */
body.mobile-menu-open {
    overflow: hidden; /* Prevents background scrolling when mobile menu is open */
}

/* --- Hero Banner Styles --- */

/* Main wrapper for the hero section: spans full width, fixed height */
.hero-containerservice {
    background-size: cover;
    background-repeat: no-repeat; 
    margin-top: 10px;
    width: 100%;
    height: 832px;
    position: relative;
    overflow: hidden;
    background-color: #333333;
    /* REMOVED: justify-content and align-items here, as content will be absolutely positioned */
}

.banner-slides {
    background-size: cover;
    background-repeat: no-repeat; 
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat; 
}

.banner-slide.active {
    opacity: 1;
}

/* Add your banner images here - Path relative to style.css */
.banner-slide:nth-child(1) {
    background-image: url('../images/servicebanner.png');
}

/* Inner wrapper for hero content: applies max-width and padding */
.hero-content-inner-wrapper {
    /* MODIFIED: Absolute positioning for bottom-right alignment */
    position: absolute;
    bottom: 80px; /* Distance from the bottom edge */
    right: 80px;  /* Distance from the right edge */
    max-width: 100%; /* Limit the width of the content block */
    z-index: 50;
    padding: 0 40px; /* Internal padding */
    box-sizing: border-box; /* Ensure padding is included in max-width */

    /* NEW: Initial state for "from left" animation */
    opacity: 0;
    transform: translateX(-100%); /* Start off-screen to the left */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animation properties */
}

/* NEW: Class to trigger animation (added by JavaScript) */
.hero-content-inner-wrapper.loaded {
    opacity: 1;
    transform: translateX(0); /* Move to final position */
}

.hero-content {
    text-align: left; /* Content remains left-aligned within its wrapper */
    width: 100%;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Poppins';
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    
    /* NEW: Bold shadow effect for the heading */
    text-shadow:#333333;
}

.hero-subtitle {
    text-align: right;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
}
.about-us-heading-highlight {
    color: #793271;
}

/* ... (Your existing Main Content Wrapper styles) ... */

/* --- Responsive Adjustments for Hero Banner --- */
@media (max-width: 992px) { /* Tablets */
    .hero-content-inner-wrapper {
        bottom: 60px; /* Adjust positioning */
        right: 60px;
        max-width: 500px; /* Reduce max-width */
        padding: 0 30px;
    }
    .hero-title {
        font-size: 55px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); /* Adjust shadow for smaller text */
    }
    .hero-subtitle {
        font-size: 28px;
    }
}

@media (max-width: 768px) { /* Smaller tablets and large phones */
    .hero-content-inner-wrapper {
        bottom: 40px;
        right: 40px;
        max-width: 90%; /* Allow content to take more width on smaller screens */
        padding: 0 20px;
    }
    .hero-title {
        font-size: 45px;
        margin-bottom: 20px;
    }
    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) { /* Mobile phones */
    .hero-containerservice {
        height: 600px; /* Reduce hero height for smaller screens */
    }
    .hero-content-inner-wrapper {
        bottom: 20px;
        right: 20px;
        padding: 0 15px;
    }
    .hero-title {
        font-size: 35px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
}


/* --- Service Cards Section --- */
.cards-section {
    background-color: #FFFFFF; 
}

.cards-section-title {
    margin-top: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 45px;
    font-weight: 700;
    text-align: center;
    color: black;
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    justify-items: center; 
    align-items: stretch; 
}

.card-item {
    width: 359px;
    height: 392px;
    background-color: var(--card-bg-color); 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative; 
    transition: all 0.4s ease-in-out; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--card-text-color); 
    cursor: pointer;
}

.card-main-image {
    width: 100%; 
    height: 211px;
    object-fit: cover; 
    border-bottom-left-radius: 12px; 
    border-bottom-right-radius: 12px;
    flex-shrink: 0;
}

.card-content {
    padding: 30px 20px 20px 20px;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    flex-grow: 1; 
    transition: all 0.4s ease-in-out; 
    overflow: hidden;
    max-height: 181px; 
    justify-content: center;
}

.card-title-with-icon {
    display: flex;
    align-items: center; 
    justify-content: center; 
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--card-text-color); 
    font-family: 'Poppins', sans-serif;
    text-align: center; 
    flex-shrink: 0;
}

.card-title-icon {
    width: 32px; 
    height: 32px;
    object-fit: contain; 
    margin-right: 15px; 
    filter: invert(1);
}

.card-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: center; 
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out, visibility 0.4s ease-in-out;
    margin-bottom: 25px;
    flex-shrink: 0; 
}

/* Card Hover Effect for DESKTOP */
@media (min-width: 769px) {
    .card-item:hover {
        transform: translateY(-8px); 
        box-shadow: 0 15px 30px var(--card-hover-shadow); 
        height: auto; 
        max-height: 600px; 
        overflow: visible; 
    }

    .card-item:hover .card-content {
        max-height: 500px; 
        justify-content: flex-start; 
        overflow: visible; 
    }

    .card-item:hover .card-description { 
        opacity: 1;
        visibility: visible;
        max-height: 200px; 
    }
}

/* Card Active Effect for MOBILE */
.card-item.active-card {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px var(--card-hover-shadow); 
    height: auto; 
    max-height: 600px; 
    overflow: visible; 
}

.card-item.active-card .card-content {
    max-height: 500px; 
    justify-content: flex-start; 
    overflow: visible; 
}

.card-item.active-card .card-description { 
    opacity: 1;
    visibility: visible;
    max-height: 200px; 
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }

    .card-item {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .card-content {
        padding: 25px 15px 15px 15px;
    }

    .card-title-with-icon {
        font-size: 20px;
    }

    .card-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cards-section-title {
        font-size: 32px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .card-content {
        padding: 20px 12px 12px 12px;
    }

    .card-title-with-icon {
        font-size: 18px;
    }

    .card-title-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }

    .card-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* --- Vision & Reality Section --- */
.vision-section {
    margin-top: 100px;
    height: 501px; /* Fixed height as requested */
    background-color: #2D2640; /* Dark background color */
    color: #FFFFFF; /* Default text color for the section */
    display: flex;
    justify-content: center; /* Center the main content block horizontally */
    align-items: center; /* Center the main content block vertically */
    overflow: hidden; /* Crucial for animation */
    margin-bottom: 40px;
}

.vision-content-wrapper {
    max-width: 900px; /* Max width for the entire content block */
    width: 100%; /* Ensures it fills available width */
    padding: 0 40px; /* Horizontal padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack children vertically (title, description, buttons row) */
    align-items: center; /* Center children horizontally within this wrapper */
    gap: 20px; /* Space between title, description, and buttons row */
    text-align: center; /* Ensure text content aligns centrally */
}

/* --- Base styles for all animating items --- */
.vision-animated-item {
    opacity: 0; /* Initial state: hidden */
    /* Transition applied directly in specific classes below for delay control */
    width: 100%; /* Ensure items take full width of wrapper to animate consistently */
    display: flex; /* Allow content inside to be centered */
    justify-content: center; /* Center content horizontally within the animating item */
    box-sizing: border-box; /* Include padding/border in width */
}

/* --- Animation from Left --- */
.vision-animate-left {
    transform: translateX(-100%); /* Start off-screen to the left */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* --- Animation from Right --- */
.vision-animate-right {
    transform: translateX(100%); /* Start off-screen to the right */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* --- Staggered Animation Delays (applied when revealed) --- */
/* This will target specific instances of the animation classes */
/* Adjust these delays as needed for the desired sequence */
.vision-section.revealed .vision-animated-item:nth-child(1).vision-animate-left { /* Title */
    transition-delay: 0.2s;
}
.vision-section.revealed .vision-animated-item:nth-child(2).vision-animate-right { /* Description */
    transition-delay: 0.4s;
}
.vision-section.revealed .vision-buttons-row .vision-animated-item:nth-child(1).vision-animate-left { /* Contact Us Button */
    transition-delay: 0.6s;
}
.vision-section.revealed .vision-buttons-row .vision-animated-item:nth-child(2).vision-animate-right { /* Get a Quote Button */
    transition-delay: 0.8s;
}

/* --- Final state for revealed items --- */
.vision-section.revealed .vision-animated-item {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}


/* --- Specific Styles for Title, Description --- */
.vision-title {
    font-family: 'Poppins', sans-serif;
    font-size: 41px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0; /* Managed by parent container's gap */
    color: #FFFFFF;
}

.vision-description {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0; /* Managed by parent container's gap */
    color: #D9D9D9;
    max-width: 700px; /* Limit description width for readability */
}

/* --- Buttons Row --- */
.vision-buttons-row {
    display: flex;
    justify-content: center; /* Center the buttons within this row */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    flex-wrap: nowrap; /* Ensure it spans the width of its parent */
}

/* --- Specific button style for this section --- */
.vision-specific-button {
    width: 231px; /* Fixed width as requested */
    height: 57px; /* Fixed height as requested */
    background-color: #BAA9C1; /* Specific background color */
    color: #333; /* Text color for contrast */
    border: none;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.vision-specific-button:hover {
    background-color: #BAA9C1; /* A darker purple for hover */
    color: #FFFFFF;
    transform: translateY(-2px); /* Slight lift effect */
}


/* --- Responsive adjustments for Vision & Reality Section --- */
@media (max-width: 992px) { /* Tablets */
    .vision-section {
        height: auto; /* Allow height to adjust */
        padding: 60px 0;
    }
    .vision-content-wrapper {
        gap: 15px; /* Adjust gap for smaller screens */
        padding: 0 30px;
    }
    .vision-title {
        font-size: 38px;
    }
    .vision-description {
        font-size: 18px;
    }
    .vision-specific-button {
        width: 200px; /* Adjust button width */
        height: 50px;
        font-size: 15px;
    }
    .vision-buttons-row {
        gap: 15px;
    }
}

@media (max-width: 768px) { /* Smaller tablets and large phones */
    .vision-title {
        font-size: 32px;
    }
    .vision-description {
        font-size: 16px;
    }
    .vision-specific-button {
        width: 180px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) { /* Mobile phones */
    .vision-title {
        font-size: 28px;
    }
    .vision-description {
        font-size: 14px;
    }
    .vision-buttons-row {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Adjust gap for stacked buttons */
    }
    .vision-specific-button {
        width: 100%; /* Full width buttons on very small screens */
        max-width: 250px; /* Limit max width for full-width buttons */
        height: 40px;
        font-size: 13px;
    }
}

/* --- What We Offer Section --- */
.what-we-offer-section {
    width: 100%;
    padding: 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.what-we-offer-wrapper {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.what-we-offer-header {
    text-align: center;
    max-width: 800px;
}

.what-we-offer-title {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.what-we-offer-subtitle {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 12px;
}

.service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    font-family: 'Inter', sans-serif;
}

.service-description {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* --- Responsive Adjustments for What We Offer Section --- */
@media (max-width: 1200px) {
    .what-we-offer-section {
        padding: 60px 20px;
    }
    .what-we-offer-wrapper {
        gap: 40px;
    }
    .what-we-offer-title {
        font-size: 42px;
    }
    .services-grid {
        gap: 25px;
    }
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .what-we-offer-section {
        padding: 50px 20px;
    }
    .what-we-offer-title {
        font-size: 36px;
    }
    .what-we-offer-subtitle {
        font-size: 16px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .service-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .what-we-offer-section {
        padding: 40px 15px;
    }
    .what-we-offer-wrapper {
        gap: 30px;
    }
    .what-we-offer-title {
        font-size: 32px;
    }
    .what-we-offer-subtitle {
        font-size: 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .service-card {
        padding: 20px;
    }
    .service-icon {
        width: 50px;
        height: 50px;
    }
    .service-icon img {
        width: 28px;
        height: 28px;
    }
    .service-title {
        font-size: 20px;
    }
    .service-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .what-we-offer-section {
        padding: 30px 15px;
    }
    .what-we-offer-wrapper {
        gap: 25px;
    }
    .what-we-offer-title {
        font-size: 28px;
    }
    .what-we-offer-subtitle {
        font-size: 14px;
    }
    .service-card {
        padding: 15px;
    }
    .service-icon {
        width: 45px;
        height: 45px;
    }
    .service-icon img {
        width: 24px;
        height: 24px;
    }
    .service-title {
        font-size: 18px;
    }
    .service-description {
        font-size: 14px;
    }
}