/* --- Global Styles and Variables --- */
:root {
    /* Color variables based on the final red/green theme */
    --primary-color: #E21B21; /* Red accent */
    --secondary-color: #ffde07; /* Green accent (Service Cards, Featured Button) */
    --dark-color: #212529; /* Dark Navbar/Footer */
    --light-bg: #f8f8f8; 
    --gray-bg: #f0f0f0; 
    --hero-text-color: #333; 
    --testimonial-yellow: #ffbf00; /* Vibrant Blue for the active card */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: var(--light-bg);
    line-height: 1.6;
}

.container {
    /* Standard container for centering content within max width */
    width: 85%;
    max-width: 1500px;
    margin: 0 auto;
}

/* --- Utility Classes (Buttons) --- */
.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-dark {
    background-color: var(--dark-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b1161b; 
}

.btn-dark:hover {
    background-color: var(--primary-color); 
}


/* --- 1. Navbar --- */
.navbar {
    background-color: var(--dark-color);
    padding: 15px 0;
    color: white;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    margin-right: 20px;
    padding: 5px 0;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

/* --- 1. Navbar --- */
/* ... (existing navbar styles) ... */

/* Sign In Button (Updated for size, color, and hover gradient) */
.btn-signin {
    background-color: var(--secondary-color); 
    /* 1. Make it bigger: Increased padding from 8px to 10px/20px */
    padding: 10px 25px !important; 
    border-radius: 7px;
    margin-left: 30px;

    /* 2. Change text color to white for better visibility/elegance on dark green */
    color: rgb(255, 0, 0) !important; 
    /* Ensure transition is smooth (inherited from .btn, but worth noting) */
    transition: background-image 0.3s, background-color 0.3s, transform 0.3s;
    max-width: 100px ;
    /* Removed fixed width and !important padding */
}

.btn-signin:hover {
    /* 3. Add a subtle gradient for the hover effect (Darker green on top to bottom) */
    background-color: #f7ff03; /* Darker green fallback */
    background-image: linear-gradient(to bottom, #f6ff00, #ffb300); 
    color: rgb(255, 0, 0) !important; 
}

/* --- 2. Carousel/Hero Section - FULL WIDTH SETUP --- */
.carousel {
    /* This section now spans 100% of the viewport width */
    padding: 80px 0; 
    color: var(--hero-text-color); 
    background-color: #ffffff; 
    
    /* Image setup - Using your supplied image name */
    background-image: url('carousel.jpg'); 
    /* FIX 1: Use cover to ensure the background fully fills the element */
    background-size: cover; 
    background-repeat: no-repeat;
    /* FIX 1: Adjust position to ensure the most important parts are visible */
    background-position: right center; 
    
    position: relative;
    overflow: hidden;
    min-height: 700px; 
    
    /* Flexbox for vertical centering on large screens */
    display: flex; 
    align-items: center; 
}

/* The content is now wrapped inside the standard .container in the HTML
   to align with the rest of the site content. */
.carousel .container {
    /* Override container's default properties that might conflict with vertical centering */
    margin: 0 auto; 
    padding: 0;
    display: block; 
    width: 85%;
    max-width: 1200px;
}

.carousel-content {
    /* Limit the content width to ensure it doesn't overlap the background image. */
    /* This should take about 50-55% of the *container* width, leaving room for the image on the right */
    max-width: 50%; 
    padding-left: 0; 
    box-sizing: border-box;
    padding-top: 10px;
}

.carousel .hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color); 
    border-bottom: none; 
    padding-bottom: 0;
    display: block; 
    line-height: 1.1;
}

.carousel p {
    font-size: 1.15em;
    margin-bottom: 20px;
    max-width: 450px; 
    line-height: 1.5;
}

.carousel .tagline {
    font-size: 1.5em; 
    font-weight: bold;
    color: var(--dark-color); 
    margin-top: 20px;
    margin-bottom: 30px;
    display: block; 
}

.carousel .btn-primary {
    margin-top: 10px;
}

/* --- 2.5. Coming Soon Section (Slider/Full-Width Highlight) --- */
.coming-soon {
    padding: 80px 0; 
    text-align: center;
    background-color: var(--gray-bg); 
    position: relative; 
    overflow: hidden; /* CRITICAL: Hides non-visible slides */
}

.coming-soon h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--dark-color);
}

/* CORRECTED: .coming-soon-list is now the flex wrapper */
/* CORRECTED: .coming-soon-list is now the flex wrapper */
.coming-soon-list { 
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* FIX: Width must equal the number of slides (3) * 100% */
    width: 300%; 
}

/* .coming-soon .container clips the wrapper (no change needed here, it exists) */
.coming-soon .container {
    overflow: hidden; 
    padding: 0 60px; 
}

/* CORRECTED: .coming-soon-item is now the individual slide */
.coming-soon-item {
    /* Each slide occupies exactly 1/3 of the wrapper's total width (300%) */
    flex: 0 0 33.333%; 
    width: 100%; 
    box-sizing: border-box;
    padding: 30px;
    margin: 0px; 
    
    /* Default/Inactive Style (Side Cards) */
    background-color: white; 
    color: #333;
    border-radius: 12px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    
    transition: all 0.5s ease-in-out;
    transform: scale(0.9); 
    opacity: 0.6;
}

/* CORRECTED: .coming-soon-item.active is the centered blue card */
.coming-soon-item.active {
    background-color: var(--testimonial-yellow); /* Blue color */
    color: white;
    padding: 60px 60px; 
    transform: scale(1); /* Full scale */
    opacity: 1;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); */
    position: relative;
    z-index: 10;
}

/* Update subsequent styles to use .coming-soon-item */
.coming-soon-item h3 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--dark-color);
}
.coming-soon-item.active h3 {
    color: white; 
}

.coming-soon-item p {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.coming-soon-item .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 49, 49, 0.964); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
/* No change to .coming-soon-icon or slider controls */

.coming-soon-icon {
    font-size: 2em;
    color: white; 
}


/* Slider Controls (Arrows) Positioning */
.slider-control {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    background: var(--testimonial-yellow);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.2em;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
    transition: background-color 0.3s;
}

.slider-control:hover {
    background: #ff5b02; 
}

#prevSlide {
    left: 30px;
}

#nextSlide {
    right: 30px;
}

/* --- Responsive Design Adjustments for Coming Soon Section --- */

/* Tablet (Max width 992px) */
@media (max-width: 992px) {
    /* Coming Soon Adjustment */
    /* FIX: Changed class name from .coming-soon-slide to .coming-soon-item */
    .coming-soon-item {
        padding: 50px 40px; /* Slightly reduced padding */
    }
    .slider-control {
        width: 40px;
        height: 40px;
        top: 65%;
    }
    #prevSlide {
        left: 5px;
    }
    #nextSlide {
        right: 5px;
    }
    .coming-soon .container {
        padding: 0 40px; /* Reduced side padding */
    }
}

/* Mobile (Max width 600px) */
@media (max-width: 600px) {
    
    /* General Mobile Layout - Ensure the container uses full width */
    .container {
        width: 100%; 
    }
    
    /* Coming Soon Section Padding - CRITICAL CHANGE */
    .coming-soon {
        /* Add substantial horizontal padding (e.g., 50px) to make room for arrows 
           This padding prevents the arrows from overlapping the cards. */
        padding: 40px 50px; 
        position: relative; /* Ensure arrows position relative to this */
    }
    
    /* Coming Soon Container */
    .coming-soon .container {
        /* Set to 100% width within the new 50px gutters */
        padding: 0px;
        overflow: hidden; 
        /* The arrows are placed relative to .coming-soon, 
           while the content is clipped by this inner container. */
    }
    
    /* Slider Controls - Positioned within the new 50px gutters */
    .slider-control {
        display: flex; 
        top: 65%; /* Center vertically based on the height of the card content */
        transform: translateY(-50%); /* Precisely center the arrow */
        width: 40px;
        height: 40px;
        z-index: 10; /* Ensure arrows are always on top */
        
        /* OVERRIDE DESKTOP/DEFAULT POSITIONING */
        position: absolute; 
    }
    
    /* Position the arrows relative to the 50px padding of .coming-soon */
    #prevSlide {
        left: 5px; 
    }
    #nextSlide {
        right: 5px; 
    }

    /* INACTIVE Coming Soon Item (Side Cards) */
    .coming-soon-item {
        padding: 20px; /* Use a standard padding */
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    
    /* ACTIVE Coming Soon Item (Centered Card) */
    .coming-soon-item.active {
        padding: 30px; /* Use a standard padding */
    }

    /* Icon and Text Sizing (Keeping your preferences) */
    .coming-soon-item .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    .coming-soon-item h3 {
        font-size: 1.3em;
    }
    .coming-soon-item p {
        font-size: 0.9em;
    }
    
}

/* --- 3. Services/Features Section --- */
.services {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-bg); 
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.service-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    text-align: center;
    border-top: 5px solid var(--secondary-color); 
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3em;
    color: var(--secondary-color); 
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--dark-color);
    margin-top: 0;
}


/* --- 4. Pricing Section --- */
.pricing {
    background-color: var(--gray-bg);
    padding: 80px 0;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.price-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.price-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-3px);
}

.price-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.price-card .price {
    font-size: 3.5em;
    color: var(--primary-color); 
    font-weight: 700;
    margin-bottom: 5px;
}

.price-card .per {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 30px;
    display: block;
}

.price-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.price-card ul li:last-child {
    border-bottom: none;
}

.list-icon {
    color: var(--primary-color); 
    margin-right: 8px;
}

/* Featured Standard Plan */
.price-card.standard {
    border: 3px solid var(--secondary-color); 
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.price-card.standard .btn {
    background-color: var(--secondary-color); 
}
.price-card.standard .btn:hover {
    background-color: #225a3a; 
}


/* --- 5. Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #bbb;
    padding: 50px 0 20px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
}

.footer-col {
    width: 20%;
    min-width: 180px;
    margin-bottom: 30px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--primary-color); 
}

.footer .copy {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
}


/* ==============================================
   RESPONSIVE DESIGN (Media Queries)
   ============================================== */

/* --- Tablet (Max width 992px) --- */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }

    .navbar nav a {
        margin-left: 15px;
    }

    /* Carousel Adjustment */
    .carousel {
        background-size: cover; /* Use cover on tablet too for full coverage */
        background-position: right center;
        min-height: 450px;
    }

    .carousel-content {
        max-width: 70%; 
    }
    
    .carousel .hero-title {
        font-size: 2.2em;
    }

    /* Services Adjustment */
    .service-grid {
        flex-wrap: wrap; 
        justify-content: space-around; 
    }

    .service-card {
        flex-basis: 45%; 
        margin-bottom: 20px;
    }

    /* Pricing Adjustment */
    .price-grid {
        flex-wrap: wrap; 
    }

    .price-card {
        margin-bottom: 30px;
    }

    .price-card.standard {
        transform: scale(1.03); 
    }

    /* Footer Adjustment */
    .footer-col {
        width: 45%; 
        min-width: unset;
    }
}


/* --- Mobile (Max width 600px) --- */
@media (max-width: 600px) {
    
    /* General Layout */
    .container {
        width: 95%;
        padding: 4px;
    }

    /* Navbar Adjustment: Stacked and centered */
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar nav a {
        margin: 5px 10px;
        padding: 5px 0;
    }
    
    .btn-signin {
        margin-left: 0;
        margin-top: 10px;
    }

    /* FIX 2: Carousel content visible, no background image, better alignment */
    .carousel {
        display: block; /* Ensure it's visible */
        min-height: auto; /* Allow height to be determined by content */
        padding: 40px 0; 
        
        background-image: none; /* Remove background image */
        background-size: auto;
        background-position: unset;
        
        /* Ensure the main element is left-aligned, not flex-centered */
        align-items: flex-start;
    }

    .carousel-content {
        max-width: 100%; /* Content should take up full width */
        padding: 0; 
        
        /* FIX: Align text content to the left for better mobile readability */
        text-align: left;
    }
    
    .carousel .container {
        display: block;
        padding: 0 15px; /* Add padding inside container for mobile */
    }

    .carousel .hero-title {
        font-size: 2em; /* Smaller font size for mobile */
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .carousel p {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        font-size: 1em;
    }
    
    .carousel .tagline {
        font-size: 1.3em;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    /* Service Section Adjustment: Stack vertically */
    .services {
        padding: 40px 0;
    }

    .service-grid {
        flex-direction: column; 
    }
    
    .service-card {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    /* Pricing Adjustment: Stack vertically */
    .pricing {
        padding: 40px 0;
    }

    .price-grid {
        flex-direction: column; 
    }
    
    .price-card {
        width: 100%;
        box-sizing: border-box;
    }

    .price-card.standard {
        transform: scale(1.0); 
    }

    /* Footer Adjustment: Stack vertically and center */
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-col {
        width: 100%;
    }
}
