/* --- Global Styles & Variables --- */
:root {
    --primary-color: #F1AE66; /* Orange/Gold */
    --secondary-color: #79797A; /* Medium Gray for text/buttons */
    --dark-color: #2F3640; /* Dark Gray for headings */
    --light-blue-bg: #CCF0FF; /* Light blue/grey background from screenshot */
    --white-color: #FFFFFF;
    --blue-color: #00b7fff3;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 16px; /* Slightly more rounded corners */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* THE FIRST FIX: Prevent horizontal overflow from causing vertical layout bugs */
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-blue-bg); /* Main background is now white */
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #e6a053; /* Darker shade on hover */
    border-color: #e6a053;
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}


/* --- Header & Navbar --- */
header {
    background: var(--white-color);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}


/* --- Hero Section --- */
#hero {
    /* height: 100vh; */
    /* THE SECOND FIX: Using min-height is often more stable than a rigid height */
    min-height: 100dvh;
    
    background-color: var(--light-blue-bg); /* Fallback color */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--dark-color);
    position: relative;
    overflow: hidden; /* Hide overflowing blur */
}

/* Pseudo-element for the blurred background image */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.ibb.co/xKLhZyLY/1080.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.1); /* Scale up to hide blurred edges */
    z-index: 1;
}

.hero-content {
    background: var(--white-color);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    position: relative; /* Ensure it's on top of the pseudo-element */
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Typing Animation Styles */
.typing-cursor {
    display: inline-block;
    background-color: var(--primary-color);
    margin-left: 3px;
    width: 3px;
    height: 1.2em;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

#typing-text {
    display: inline-block;
    min-height: 1.2em;
}


/* --- Services Section --- */
#services {
    background-color: var(--light-blue-bg);
}

/* FIX: Use CSS Grid to create a single row with 4 equal columns */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* This creates the 4-column layout */
    gap: 1.5rem; /* Slightly reduced gap to fit better */
}

/* Style for the cards to match the image */
.service-cards .card {
    text-align: left;
    padding: 2rem 1.5rem;
    /* This adds the thin orange line at the top as seen in the screenshot */
    border-top: 3px solid var(--primary-color);
}

.service-cards .card i {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* --- Pricing Section --- */
#pricing {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* FIX: Ensure all cards in a row are the same height */
    align-items: stretch;
}

.pricing-card {
    text-align: center;
    padding: 2.5rem 2rem;
    /* FIX: Use flexbox to push button to the bottom */
    display: flex;
    flex-direction: column;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    /* FIX: Allow this section to grow, pushing button down */
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* FIX: Button hover color corrected */
.pricing-card .btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* FIX: More pronounced pop-out effect */
.pricing-card.pro-plan {
    transform: scale(1.06);
    border: 2px solid var(--primary-color);
}

.pricing-card.pro-plan .btn-primary {
    background-color: var(--dark-color);
    color: var(--white-color);
    border-color: var(--dark-color);
}
.pricing-card.pro-plan .btn-primary:hover {
    background-color: #4a5464; /* Darker shade on hover */
    border-color: #4a5464;
}


/* --- Why Choose Us Section --- */
#why-us {
     background-color: var(--light-blue-bg);
}
.why-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.why-us-cards .card {
    text-align: center;
}

/* --- Join Team Section --- */

/* The section itself is now the light blue background */
#join-team {
    background-color: var(--light-blue-bg);
}

/* The content is the white card with padding */
.join-team-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--white-color); /* The card is white */
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 3rem; /* Padding inside the white card */
    overflow: visible; /* Reset overflow to prevent clipping */
}

/* Container for the circular image */
.join-team-image {
    flex: 0 0 250px; /* Sets a fixed width of 250px */
    width: 250px;
    height: 250px;
}

/* The image itself, styled as a circle */
.join-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image from stretching */
    border-radius: 50%; /* This is what makes it a circle */
}

/* The text container takes up the remaining space */
.join-team-text {
    flex: 1;
    padding: 0; /* Reset padding as it's now on the parent */
}

/* FIX: This corrects the bullet point text wrapping */
.join-team-text ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Reset default browser padding */
    margin: 1.5rem 0;
}

.join-team-text ul li {
    padding-left: 30px; /* Indent the text to make room for the custom icon */
    position: relative; /* Required for positioning the icon */
    margin-bottom: 0.8rem; /* Space between list items */
}

/* Add a custom checkmark icon to match other site styles */
.join-team-text ul li::before {
    content: '✓'; /* You can also use an icon font here */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--white-color);
}
.testimonial-slider-wrapper {
    position: relative;
    /* max-width: 900px; */
    margin: 0 auto;
    overflow: hidden;
    /* FIX: Add padding so arrows aren't cut off */
    padding: 0 50px;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
    background: transparent; /* Make card transparent to show bg color */
    box-shadow: none;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .rating {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.testimonial-card .author div {
    text-align: left;
}
.author h4 {
    margin: 0;
}
.author p {
    margin: 0;
    font-size: 0.9rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}
.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
/* FIX: Position arrows inside the padded area */
.prev-btn { left: 0; }
.next-btn { right: 0; }


/* --- Footer --- */
footer {
    padding: 2rem 2rem;
    text-align: center;
    background-color: var(--light-blue-bg);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-email {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
}
.footer-email i {
    vertical-align: middle;
    margin-right: 0.5rem;
}
.footer-email:hover {
    color: var(--dark-color);
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-left: 1rem;
    text-decoration: none;
}
.social-links a:hover {
    color: var(--primary-color);
}

footer hr {
    border: 0;
    height: 1px;
    background: #d0d8e0;
    margin-bottom: 2rem;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .pricing-card.pro-plan {
        transform: scale(1);
    }
    /* Replace the old .service-cards rule with this */
    .service-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 2rem;
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for mobile. A JS solution would be needed for a hamburger menu. */
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    h1 { font-size: 2.2rem; }
    
    .container {
        padding: 4rem 1rem;
    }

    /* Replace the old .service-cards rule with this */
    .service-cards {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }

    .join-team-content {
        flex-direction: column;
    }
    .join-team-text {
        padding: 2rem;
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }
    .slider-btn {
        top: 50%;
        width: 40px;
        height: 40px;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}