/* 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-container {
    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/portfolio.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-container {
        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;
    }
}

/* --- Portfolio Section --- */
.portfolio-section {
    background-color: #F8F8F8; /* Light background for contrast */
    padding: 80px 0;
    color: #333;
}

.portfolio-section .section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    width: 100%;
    max-width: 1160px;
    padding-bottom: calc(552 / 1160 * 100%);
    height: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    cursor: pointer;
    border-radius: 15px;
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    border-radius: 15px;
}

/* --- Portfolio Overlay Styles --- */
.portfolio-info-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    color: #FFFFFF;
}

.portfolio-text-content {
    flex: 1;
    padding-right: 10px;

    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.portfolio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 8px; /* Reduced from 10px */
}

.portfolio-description {
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    line-height: 1.4; /* Slightly tighter line-height */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 40px; /* Reduced from 70px */
    position: relative;
}

.portfolio-buttons {
    display: flex;
    gap: 16px; /* Reduced from 20px */
    flex-shrink: 0;
    margin-bottom: 60px; /* Reduced from 100px */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    padding: 0 20px;
}

.portfolio-btn {
    width: max-content;
    height: 40px; /* Reduced from 43px */
    background-color: #B4AFC0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px; /* Reduced from 18px */
    cursor: pointer;
    padding: 0 12px; /* Slightly increased padding for better tap */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-btn:hover {
    background-color: #85407D;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Hover effects */
.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info-container {
    opacity: 1;
}

.portfolio-item:hover .portfolio-text-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-buttons {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

/* --- Responsive Adjustments --- */

@media (max-width: 1200px) {
    .portfolio-grid {
        gap: 50px;
    }
    .portfolio-item {
        max-width: 900px;
    }
    .portfolio-info-container {
        padding: 20px 30px; /* Adjusted for better fit */
    }
    .portfolio-title {
        font-size: 28px;
    }
    .portfolio-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .portfolio-buttons {
        gap: 14px;
        margin-bottom: 50px;
    }
    .portfolio-btn {
        font-size: 15px;
        height: 38px;
        padding: 0 11px;
    }
}

@media (max-width: 768px) {
    .portfolio-info-container {
        opacity: 1 !important;
        transition: none !important;
    }
    .portfolio-text-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .portfolio-buttons {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .portfolio-info-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        bottom: 15px;
        width: 100%;
        gap: 10px;
    }

    .portfolio-text-content {
        padding: 0;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0s;
        margin-bottom: 8px; /* Added small margin for spacing */
    }

    .portfolio-buttons {
        margin: 0;
        padding: 0;
        justify-content: center;
        flex-wrap: wrap;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0s;
        gap: 10px;
    }

    .portfolio-btn {
        width: auto;
        min-width: 90px; /* Reduced min width */
        margin: 4px;
        font-size: 14px;
        height: 36px;
        padding: 0 10px;
    }

    .portfolio-description {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.3;
    }

    .portfolio-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .portfolio-info-container {
        padding: 12px 16px;
        bottom: 10px;
        gap: 6px;
    }

    .portfolio-title {
        font-size: 20px;
    }

    .portfolio-description {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .portfolio-btn {
        font-size: 12px;
        height: 34px;
        padding: 0 8px;
        min-width: 80px;
    }
}

@media (max-width: 360px) {
    .portfolio-info-container {
        padding: 10px 12px;
        bottom: 8px;
        gap: 4px;
    }

    .portfolio-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .portfolio-description {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .portfolio-btn {
        font-size: 11px;
        height: 30px;
        padding: 0 6px;
        min-width: 70px;
    }
}


/* --- 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;
    }
}

/* --- Client Spotlights Section --- */
.client-spotlights-section {
    padding: 40px 0; /* Vertical spacing */
    background-color: #FFFFFF; /* White background */
    text-align: center; /* Center the heading */
}

/* Reusing a common section heading style */
.client-spotlights-section .section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px; /* Space below the heading */
    color: #333;
}

.client-spotlights-slider-wrapper {
    position: relative; /* Context for absolute positioning of the button */
    /* Define the visible window for the slider (2 images + 1 gap) */
    --spotlight-image-width: 564px;
    --spotlight-image-height: 535px;
    --spotlight-gap: 47px;

    width: calc(2 * var(--spotlight-image-width) + var(--spotlight-gap)); /* Show two images plus spacing */
    height: var(--spotlight-image-height); /* Fixed height for the visible area */
    margin: 0 auto; /* Center the slider */
    overflow: hidden; /* Crucial: Hides images outside the visible window */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow around the visible window */
    border-radius: 10px;
    padding: 0 0;
}

.spotlights-track {
    display: flex;
    width: fit-content; /* Allows track to be wider than its wrapper */
    height: 100%;
    transition: transform 0.7s ease-in-out; /* Smooth sliding transition */
    gap: var(--spotlight-gap); /* Spacing between images */
}

.spotlight-slide {
    flex-shrink: 0; /* Prevents images from shrinking */
    width: var(--spotlight-image-width); /* Fixed width for each slide */
    height: var(--spotlight-image-height); /* Fixed height for each slide */
    background-color: #eee; /* Placeholder background */
    border-radius: 8px; /* Slightly smaller radius for individual slides */
    overflow: hidden; /* Ensure image doesn't overflow slide bounds */
}

.spotlight-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area, cropping if necessary */
    display: block; /* Remove extra space below image */
}

/* --- Navigation Button --- */
.next-spotlight-button {
    background-image: url("../images/Group 591.png");
    position: absolute;
    right: -34.5px; /* (69px / 2) - 0px if centered outside, or adjust based on layout */
                    /* A good rule of thumb is to offset by half its width, plus some padding */
    top: 50%;
    transform: translateY(-50%);
    width: 69px; /* Fixed size as requested */
    height: 69px;
    border-radius: 50%; /* Make it round */
    background-color: #2D2640; /* Dark background */
    color: white;
    border: none;
    font-size: 32px; /* Size of the arrow character */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for the button */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 15; /* Ensure button is on top */
}

.next-spotlight-button:hover {
    background-color: #4A405F; /* Slightly lighter on hover */
}

.next-spotlight-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .client-spotlights-slider-wrapper {
        --spotlight-image-width: 450px; /* Adjust image width */
        --spotlight-gap: 30px; /* Adjust gap */
        width: calc(2 * var(--spotlight-image-width) + var(--spotlight-gap));
        height: 425px; /* Adjust height */
    }
    .next-spotlight-button {
        right: -25px; /* Adjust button position */
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .client-spotlights-slider-wrapper {
        --spotlight-image-width: 350px; /* Adjust image width */
        --spotlight-gap: 20px; /* Adjust gap */
        width: calc(2 * var(--spotlight-image-width) + var(--spotlight-gap));
        height: 330px; /* Adjust height */
    }
    .next-spotlight-button {
        right: -20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .client-spotlights-section {
        padding: 60px 0;
    }
    .client-spotlights-section .section-heading {
        font-size: 38px;
        margin-bottom: 40px;
    }
    .client-spotlights-slider-wrapper {
        --spotlight-image-width: 90%; /* Single image view on smaller screens */
        --spotlight-gap: 0px; /* No gap needed if single image */
        width: var(--spotlight-image-width); /* Only one image visible at a time */
        max-width: 350px; /* Max width for single image view */
        height: 330px;
        /* Center content better for single view */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .spotlights-track {
        gap: 0; /* No gap for single view */
    }
    .spotlight-slide {
        width: 100%; /* Take full width of wrapper */
        height: 100%;
        max-width: 350px; /* Ensure slides don't exceed wrapper max-width */
    }
    .next-spotlight-button {
        right: 10px; /* Place inside wrapper on mobile */
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .client-spotlights-section {
        padding: 40px 0;
    }
    .client-spotlights-section .section-heading {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .client-spotlights-slider-wrapper {
        height: 280px;
    }
    .next-spotlight-button {
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
