/* CSS Variables for Theme */
:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #ff006e;
    --accent: #8338ec;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 16px;
    --max-width: 1400px;
}

.dark-theme {
    --light: #121212;
    --dark: #f8f9fa;
    --gray: #adb5bd;
    --light-gray: #2d2d2d;
    --white: #1e1e1e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(58, 134, 255, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    box-shadow: 0 15px 30px rgba(255, 0, 110, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 50px;
}

.btn-outline:hover {
    color: var(--white);
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Page Header (for sub-pages) */
.page-header {
    padding: 10rem 0 5rem;
    background: var(--gradient);
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.dark-theme header {
    background-color: rgba(30, 30, 30, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

/* 1. Universal Logo Sizing (Applies to both Header and Footer) */
.logo img {
    height: 60px;
    /* Adjust this number to change the logo size */
    width: auto;
    object-fit: contain;
}

/* 2. Footer Specific Styling */
.footer-logo {
    /* Ensures the logo has some space below it in the footer column */
    margin-bottom: 1rem;
    display: block;
}

/* Update this section */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Removed font-size/weight as the image now contains the text */
}

/* ADD THIS NEW RULE to control the logo size */
.logo img {
    height: 70px;
    /* Adjust this number (50px-80px) to fit your preference */
    width: auto;
    /* Maintains the aspect ratio */
    object-fit: contain;
}

/* Optional: Adjust for mobile screens if it looks too big */
@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: rotate(30deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(131, 56, 236, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary);
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(58, 134, 255, 0.2);
    z-index: -1;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.dark-theme .floating-card {
    background: var(--light-gray);
}

.floating-card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 2s;
}

.floating-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    background-color: var(--white);
}

.dark-theme .services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    /* MODIFIED: Reduced from 250px to 220px to reduce card size */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    /* ADDED: To ensure the button is always at the bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dark-theme .service-card {
    background-color: var(--light-gray);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    color: var(--white);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .team-image-placeholder,
.service-card:hover .btn-outline {
    color: var(--white);
}

.service-card:hover .btn-outline {
    border-color: var(--white);
}

.service-card:hover .team-image-placeholder {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

/* Team Card Specific */
.team-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border: 3px solid var(--primary);
    transition: var(--transition);
}

.team-image-placeholder i {
    font-size: 4rem;
    opacity: 0.7;
}

/* Job Card Specific */
.job-location {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-card .btn-outline {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* About Section */
.about {
    background-color: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-text p {
    color: var(--gray);
    font-size: 1rem;
    margin: 0;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.dark-theme .testimonials {
    background-color: var(--light);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.05;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.dark-theme .testimonial-card {
    background-color: var(--light-gray);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 8rem;
    color: var(--light-gray);
    line-height: 1;
    transform: translate(-10px, -30px);
    font-family: Georgia, serif;
}

.dark-theme .testimonial-card::before {
    color: var(--white);
    opacity: 0.1;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.stars {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.2rem;
    /* Added overflow hidden */
    overflow: hidden;
}

/* NEW CSS for avatar images */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.cta .btn:hover {
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Form Styles (for booking.html and review form) */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dark-theme .form-container {
    background: var(--light-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme .form-group select {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Custom file input (for careers.html) */
.form-group input[type="file"] {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.form-group input[type="file"]::file-selector-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-gray);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 1rem;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

.dark-theme .form-group input[type="file"]::file-selector-button {
    background-color: var(--gray);
    color: var(--white);
}

.dark-theme .form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--primary);
}


/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .hero-content {
        gap: 3rem;
    }

    .about-content {
        gap: 3rem;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .section-header h2 {
        font-size: 2.7rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    /* Prevent horizontal scroll on screens below 768px */
    body {
        overflow-x: hidden;
    }

    .header-container {
        flex-wrap: wrap;
        position: relative;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        display: none;
        background-color: var(--white);
        border-radius: var(--border-radius);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .dark-theme nav {
        background-color: var(--light-gray);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        display: block;
        padding: 0.75rem 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    nav a:hover::after {
        width: 0;
    }

    nav a:hover {
        background-color: var(--light-gray);
        border-radius: 8px;
        color: var(--primary);
    }

    .dark-theme nav a:hover {
        background-color: var(--dark);
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 0;
    }

    .theme-toggle {
        position: absolute;
        right: 55px;
    }

    .hero {
        padding: 10rem 0 5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .floating-card {
        display: none;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Enhance touch-friendly elements */
    .btn,
    .mobile-menu-btn,
    .theme-toggle,
    .social-links a,
    .nav-btn,
    .gallery-btn,
    .newsletter-subscription .btn {
        min-height: 44px;
    }

    /* Adjust font sizes, padding, and margins for better readability */
    .section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .features {
        gap: 1rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .feature-text h4 {
        font-size: 1.2rem;
    }

    .feature-text p {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }

    .footer-column ul li {
        margin-bottom: 0.5rem;
    }

    /* Ensure grids stack properly */
    .about-content,
    .pricing-plans,
    .site-agreement-options,
    .team-grid,
    .values-grid,
    .notification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .service-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.1rem;
    }

    .page-header {
        padding: 8rem 0 4rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .header-actions {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .container {
        width: 98%;
        padding: 0 0.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-height: 44px;
        /* Touch-friendly */
    }

    .logo {
        font-size: 1.3rem;
    }

    .header-container {
        padding: 0.2rem 0;
    }

    .footer-content {
        padding: 0 0.5rem;
    }

    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Adjust floating cards to be hidden or smaller */
    .floating-card {
        display: none;
    }

    /* Make hero image smaller */
    .hero-image img {
        transform: none;
        /* Remove 3D transform on small screens */
    }

    /* Adjust nav links for better touch */
    nav a {
        padding: 0.75rem 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .container {
        width: 100%;
        padding: 0 0.25rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .features {
        gap: 1rem;
    }

    .feature {
        gap: 0.75rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .footer-column {
        margin-bottom: 2rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* --- NEW CSS FOR STAR RATING (from reviews.html) --- */
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
}

.star-rating i {
    transition: var(--transition);
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--secondary);
    transform: scale(1.2);
}

/* --- NEW CSS FOR MODAL (from careers.html) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    /* Shown when active */
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.dark-theme .modal-content {
    background: var(--light-gray);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .modal-header {
    border-bottom-color: var(--gray);
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
}

.modal-header .modal-close {
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.modal-header .modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-content .form-group {
    margin-bottom: 1.2rem;
}

.modal-content .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* --- New CSS for Service Checklist and Card Sizing --- */

/* Style the checklist */
.service-card .service-checklist {
    list-style: none;
    /* Removes default bullets */
    padding: 0;
    margin: 15px 0;
    /* Adds space above and below */
    text-align: left;
    font-size: 0.95rem;
    /* Adjust font size as needed */
    flex-grow: 1;
    /* Pushes the 'Book Now' button to the bottom */
}

.service-card .service-checklist li {
    margin-bottom: 10px;
    /* Space between list items */
    display: flex;
    align-items: flex-start;
    /* Aligns icon with the top of the text */
}

.service-card .service-checklist .fa-check {
    color: var(--primary);
    /* Use the primary color for checks */
    margin-right: 10px;
    /* Space between check and text */
    margin-top: 4px;
    /* Aligns checkmark nicely */
    font-size: 0.9em;
}

/* --- New CSS for Checkbox/Radio Groups (Booking Form) --- */

/* Style for Checkbox/Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--light-gray);
}

.dark-theme .checkbox-group,
.dark-theme .radio-group {
    background-color: var(--white);
    border-color: var(--gray);
}

/* Style for individual options */
.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
    /* Reset width for input */
    width: auto;
    margin-right: 0.5rem;
    /* Basic styling for checkbox/radio */
    min-width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-option label,
.radio-option label {
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

/* Site Agreement Section Styles */
.site-agreement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.agreement-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.dark-theme .agreement-card {
    background: var(--light-gray);
}

.agreement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.agreement-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.agreement-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.agreement-card.premium {
    border-color: var(--accent);
}

.agreement-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.agreement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.agreement-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.agreement-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.agreement-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.agreement-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.agreement-features i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.agreement-note {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.dark-theme .agreement-note {
    background: var(--light-gray);
}

.agreement-note h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.agreement-note p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Calculator Site Visit Fee Display */
.site-visit-fee {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.dark-theme .site-visit-fee {
    background: var(--white);
}

.site-visit-fee p {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-agreement-options {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .agreement-card.featured {
        transform: none;
    }

    .agreement-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .site-agreement-options {
        grid-template-columns: 1fr;
    }

    .agreement-card h3 {
        min-height: auto;
    }
}

/* Pricing Page Specific Styles */
.pricing-card {
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.price {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: var(--gray);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 0.5rem;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-plan-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.dark-theme .pricing-plan-card {
    background: var(--light-gray);
}

.pricing-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-plan-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .plan-header {
    border-bottom-color: var(--gray);
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Prevent fixed header from covering anchored section headers
   Uses a CSS variable so mobile/desktop header heights can be tuned */
:root {
    --header-offset: 60px;
    /* default offset matching header height */
}

html {
    /* ensures fragment navigation and scrollIntoView respect the header offset */
    scroll-padding-top: var(--header-offset);
}

/* Apply a scroll margin to common section headings so in-page links are visible */
.section-header h2,
.page-header h1,
h1[id],
h2[id],
h3[id],
.section [id] {
    scroll-margin-top: calc(var(--header-offset) + 12px);
}

/* Reduce the offset on small screens where the header is slightly shorter */
@media (max-width: 480px) {
    :root {
        --header-offset: 64px;
    }
}

@media (max-width: 320px) {
    :root {
        --header-offset: 56px;
    }
}

/* Target fallback: ensure focused/target elements are not obscured */
:target {
    scroll-margin-top: var(--header-offset);
}

.plan-description {
    margin-bottom: 2rem;
    color: var(--gray);
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.plan-features i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Calculator Styles */
.calculator-result {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.dark-theme .calculator-result {
    background: var(--white);
}

.estimate-box {
    text-align: center;
}

.estimate-box h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.estimate-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0;
}

.estimate-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Form Row Adjustments for Calculator */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .pricing-plan-card.featured {
        transform: none;
    }

    .pricing-plan-card.featured:hover {
        transform: translateY(-5px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Button Group for Calculator */
#cost-calculator .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

#cost-calculator .btn:last-child {
    margin-right: 0;
}

@media (max-width: 576px) {
    #cost-calculator .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Service Detail Page Styles */
.service-detail-content {
    margin-bottom: 3rem;
}

.service-detail-content h3 {
    color: var(--primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.service-detail-content h4 {
    color: var(--dark);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.service-detail-content h5 {
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
}

.process-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .process-step {
    background: var(--light-gray);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h5 {
    margin-top: 0;
    color: var(--primary);
}

.service-description {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.dark-theme .service-description {
    background: var(--white);
}

.service-tip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.service-tip strong {
    color: var(--white);
}

/* Service Sidebar */
.service-sidebar {
    margin-left: 3rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dark-theme .sidebar-widget {
    background: var(--light-gray);
}

.sidebar-widget h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-menu li {
    margin-bottom: 0.5rem;
}

.service-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--gray);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.service-menu a:hover,
.service-menu a.active {
    background: var(--light-gray);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dark-theme .service-menu a:hover,
.dark-theme .service-menu a.active {
    background: var(--dark);
}

.service-features {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.dark-theme .feature-item {
    background: var(--white);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
}

.feature-item span {
    color: var(--dark);
    font-size: 0.9rem;
}

.pricing-section {
    text-align: center;
    padding: 2rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.pricing-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Responsive Design for Service Pages */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-sidebar {
        margin-left: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .step-icon {
        align-self: center;
    }

    .service-sidebar {
        margin-left: 0;
    }
}

/* Careers Page Specific Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.job-location {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.apply-specific-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* File Input Styling */
.form-group input[type="file"] {
    padding: 0.8rem;
    border: 2px dashed var(--light-gray);
    background: var(--light);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}

.dark-theme .form-group input[type="file"] {
    background: var(--white);
    border-color: var(--gray);
}

.dark-theme .form-group input[type="file"]:hover {
    border-color: var(--primary);
}

/* Modal Styles for Careers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.dark-theme .modal-content {
    background: var(--light-gray);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .modal-header {
    border-bottom-color: var(--gray);
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0;
}

.modal-header .modal-close {
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header .modal-close:hover {
    color: var(--secondary);
    background: var(--light-gray);
    transform: rotate(90deg);
}

.dark-theme .modal-header .modal-close:hover {
    background: var(--dark);
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Site Agreement Section Styles */
.site-agreement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.agreement-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.dark-theme .agreement-card {
    background: var(--light-gray);
}

.agreement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.agreement-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.agreement-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.agreement-card.premium {
    border-color: var(--accent);
}

.agreement-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.agreement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.agreement-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.agreement-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.agreement-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.agreement-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.agreement-features i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.agreement-note {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.dark-theme .agreement-note {
    background: var(--light-gray);
}

.agreement-note h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.agreement-note p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Calculator Site Visit Fee Display */
.site-visit-fee {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.dark-theme .site-visit-fee {
    background: var(--white);
}

.site-visit-fee p {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-agreement-options {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .agreement-card.featured {
        transform: none;
    }

    .agreement-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .site-agreement-options {
        grid-template-columns: 1fr;
    }

    .agreement-card h3 {
        min-height: auto;
    }
}

/* ============================
   NEW TEAM PAGE STYLES
   ============================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border-bottom: 4px solid transparent;
}

.dark-theme .team-card {
    background-color: var(--light-gray);
}

/* Hover Effect: Lift up and show primary border at bottom */
.team-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Image Area */
.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(131, 56, 236, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3.5rem;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    z-index: 2;
}

/* Dark theme adjustment for image placeholder */
.dark-theme .team-image-placeholder {
    background: var(--dark);
    color: var(--white);
    border-color: var(--gray);
}

.team-card:hover .team-image-placeholder {
    transform: scale(1.05);
    color: var(--accent);
}

/* Social Overlay Animation */
.team-social-overlay {
    position: absolute;
    bottom: -50px;
    /* Hidden by default */
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 3;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.dark-theme .team-social-overlay {
    background: rgba(30, 30, 30, 0.9);
}

/* On Card Hover, slide the social icons up */
.team-card:hover .team-social-overlay {
    bottom: 0;
}

.team-social-overlay a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.team-social-overlay a:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

/* Text Info Area */
.team-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
    transition: var(--transition);
}

.team-card:hover .team-info h3 {
    color: var(--primary);
}

.team-role {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark-theme .value-card {
    background: var(--light-gray);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.value-card:hover::before {
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    color: var(--white);
}

.value-card:hover .value-icon,
.value-card:hover h3,
.value-card:hover p {
    color: var(--white);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.dark-theme .value-icon {
    background: var(--white);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.value-card p {
    color: var(--gray);
    line-height: 1.6;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }
}

/* ========================================= */
/* --- 1. Notification Page Specific CSS --- */
/* ========================================= */

/* Page Header */
.page-header {
    background: var(--light-gray);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark);
    transition: var(--transition);
}

.dark-theme .page-header {
    background: var(--light-gray);
    border-color: #333;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Notification Controls (Filter and Mark All) */
.notification-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

#notification-filter {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    min-width: 200px;
}

.dark-theme #notification-filter {
    background-color: var(--light-gray);
    border-color: #444;
    color: var(--dark);
}

/* Notification Categories */
.notification-category {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    padding: 1.5rem 0;
}

.notification-category h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-category h2 i {
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Notification Cards Layout */
.notification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Individual Notification Card */
.notification-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.dark-theme .notification-card {
    background: var(--light-gray);
    border-color: #444;
}

.notification-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 'New' Card Status */
.notification-card.new {
    border-left: 5px solid var(--secondary);
    background-color: rgba(255, 0, 110, 0.05);
    /* Light pink tint */
}

.dark-theme .notification-card.new {
    background-color: rgba(255, 0, 110, 0.15);
}

.notification-badge-new {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 10px rgba(58, 134, 255, 0.3);
}

.notification-card.promotion .notification-icon {
    background: var(--accent);
    /* Purple for promotions */
    box-shadow: 0 5px 10px rgba(131, 56, 236, 0.3);
}

.notification-card.update .notification-icon {
    background: var(--secondary);
    /* Pink for updates */
    box-shadow: 0 5px 10px rgba(255, 0, 110, 0.3);
}

/* Content and Meta */
.notification-content {
    flex-grow: 1;
}

.notification-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.notification-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.notification-type {
    font-weight: 600;
    color: var(--primary);
}

/* Budget Highlight */
.budget-highlight {
    margin-bottom: 0.75rem;
}

.budget-amount {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Card Action Button */
.notification-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ========================================= */
/* --- 2. Gallery / Flyers Section CSS --- */
/* ========================================= */

.flyers-section {
    padding-bottom: 4rem;
}

.flyers-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.flyers-subtitle {
    color: var(--gray);
    margin-top: 0.5rem;
}

.gallery-controls-mini {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 5px 10px rgba(58, 134, 255, 0.3);
}

.nav-btn:hover {
    background: var(--primary-dark);
}

.dark-theme .nav-btn {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Gallery Carousel/Track */
.gallery-perspective {
    overflow-x: hidden;
    padding-bottom: 1rem;
    /* Space for scrollbar */
}

.gallery-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    /* Allows for smooth JavaScript scrollBy() */
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.gallery-card {
    flex-shrink: 0;
    width: 320px;
    height: 450px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    /* Ensure full height to position content */
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.gallery-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.gallery-btn:hover {
    background: #e30063;
}

/* ========================================= */
/* --- 3. Lightbox (Modal for Image View) -- */
/* ========================================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ========================================= */
/* --- 4. Call-to-Action (CTA) Styles --- */
/* ========================================= */

.cta {
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.newsletter-subscription {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    flex-grow: 1;
    min-width: 150px;
    color: var(--dark);
}

.newsletter-subscription .btn {
    padding: 0.9rem 1.5rem;
    background: var(--secondary);
    /* Using secondary for the CTA button */
    border: none;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.newsletter-subscription .btn:hover {
    background: #e30063;
}

#services-page {
    padding-top: 6rem;
}

/* ========================================= */
/* --- Fix for Fixed Header Coverage Issue --- */
/* ========================================= */

#services-page,
#team-page,
#updates-page,
#apply-page,
#bk-page,
#booking-page,
#careers-page,
#contact-page,
#pricing-page,
#reviews-page {
    padding-top: 6rem;
}

/* ========================================= */
/* --- 5. Media Queries (Responsiveness) --- */
/* ========================================= */

@media (max-width: 992px) {
    .notification-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically on tablets */
    }

    .notification-action {
        margin-left: auto;
        /* Push button to the right on smaller screens */
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .notification-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-controls button,
    #notification-filter {
        width: 100%;
        text-align: center;
    }

    .notification-card {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-icon {
        margin-right: auto;
        margin-bottom: 0.5rem;
    }

    .notification-action {
        width: 100%;
        margin-top: 1rem;
        padding-left: 0;
    }

    .notification-action .btn-small {
        width: 100%;
        padding: 0.75rem;
    }

    .gallery-card {
        width: 280px;
        height: 400px;
    }

    .newsletter-subscription {
        flex-direction: column;
    }

    .newsletter-input {
        margin-bottom: 10px;
    }
}

.notification-category {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    padding: 1.5rem 0;
}

.notification-category h2 {
    font-size: 1.8rem;
    color: var(--dark);
    /* Use dark variable for main color */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-theme .notification-category h2 {
    color: var(--dark);
    /* Light color for dark theme */
}

/* --- NEW/UPDATED STYLE FOR EMOJI/ICON IN H2 --- */
.notification-category h2 i,
.page-header h1 span:first-child {
    /* Targets the FA icon and the custom emoji element */
    color: var(--secondary);
    /* Vibrant color to match the design */
    font-size: 1.5rem;
    /* Adding a subtle glow/shadow effect to make them pop */
    text-shadow: 0 0 5px rgba(255, 0, 110, 0.5);
    transition: var(--transition);
}

/* For the icon/emoji in the H1 tag */
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    /* Use flex to align text and emoji */
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.notification-indicator {
    position: relative;
    margin-right: 1rem;
}

.notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

.notification-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --- Lottie Animation Fixes --- */

/* 1. Make the component responsive */
dotlottie-wc {
    max-width: 100% !important;
    /* Forces it to never be wider than the screen */
    height: 500px !important;
    /* Keeps the aspect ratio correct */
    display: block;
    margin: 2rem auto;
    /* Centers the animation and adds space */
}

/* 2. Create a container for the animation so it doesn't break grids */
.animation-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    grid-column: 1 / -1;
    /* If accidentally left inside a grid, this makes it span full width */
}

/* ========================================= */
/* --- MOBILE HERO TRANSFORMATION --- */
/* ========================================= */

@media (max-width: 768px) {

    /* 1. Make the Hero Section the Background Image */
    .hero {
        /* Using the image from your HTML with a dark overlay */
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
            url('https://images.unsplash.com/photo-1628177142898-93e36e4e3a50?w=1920&h=1080&fit=crop');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        /* Adjust height and spacing */
        min-height: 80vh;
        /* Takes up most of the screen */
        padding: 8rem 1.5rem 4rem;
        /* Top padding clears the header */
        display: flex;
        align-items: center;
        text-align: left;
        /* Force left alignment */
    }

    /* 2. Hide the original 3D image and floating cards */
    .hero-image {
        display: none;
    }

    /* 3. Style the Text to match the reference */
    .hero-content {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 0;
        width: 100%;
    }

    .hero-text h1 {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-text h1 span {
        color: #ffffff;
        /* Remove the blue color */
    }

    .hero-text h2 {
        color: #ffffff;
        font-size: 2.8rem;
        /* Make it big like the reference */
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Remove the underline effect from the original CSS */
    .section-header h2::after,
    .hero-text h1 span::after {
        display: none;
    }

    .hero-text p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* 4. Style the Buttons (Orange, Rectangular) */
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
        /* Align left */
        gap: 1rem;
    }

    .hero-btns .btn {
        /* Match the orange color from the image */
        background: #3a86ff;
        color: #ffffff;

        /* Make it rectangular/sharp */
        border-radius: 4px;

        /* Size adjustments */
        padding: 1rem 2.5rem;
        width: auto;
        /* Let content define width, or set width: 100% if preferred */
        font-size: 1.1rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

        /* Remove the gradient hover effect from original CSS */
        position: relative;
        overflow: visible;
    }

    /* Remove the pseudo-element gradient animation */
    .hero-btns .btn::before {
        display: none;
    }

    .hero-btns .btn:hover {
        transform: translateY(-2px);
        background: #297afd;
        /* Darker orange on hover */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    /* Optional: Hide the secondary button if you only want one like the reference */
    /* .hero-btns .btn-secondary {
        display: none;
    } 
    */

    /* Adjust Header to look cleaner over the image */
    header {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ========================================= */
/* --- HORIZONTAL SCROLL FOR 'WHY CHOOSE US' --- */
/* ========================================= */

@media (max-width: 768px) {

    /* Turn the grid into a horizontal flex container */
    .why-choose-us .services-grid {
        display: flex !important;
        overflow-x: auto;
        /* Enables horizontal scrolling */
        padding-bottom: 2rem;
        /* Space for the scrollbar/touch area */
        gap: 1rem;
        scroll-snap-type: x mandatory;
        /* Makes cards snap into place */

        /* Hide scrollbar for cleaner look on some browsers */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .why-choose-us .services-grid::-webkit-scrollbar {
        display: none;
    }

    /* Fix the width of the cards so they don't squish */
    .why-choose-us .service-card {
        min-width: 280px;
        /* Shows one full card */
        max-width: 280px;
        flex-shrink: 0;
        /* Prevents card from shrinking */
        scroll-snap-align: center;
        /* Snaps card to center of screen */
        margin-bottom: 0;
        /* Remove vertical margin */
    }

    /* Optional: Visual cue that there is more content */
    .why-choose-us .container {
        padding-right: 0;
        /* Allows cards to touch the edge of screen */
    }
}

@media (max-width: 768px) {
    .why-choose-us .services-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* Two equal columns */
        gap: 1rem;
    }

    .why-choose-us .service-card {
        padding: 1rem;
        /* Reduce padding to fit smaller space */
    }

    /* Make text smaller to fit */
    .why-choose-us .service-card h3 {
        font-size: 1.1rem;
    }
}

/* ========================================= */
/* --- HORIZONTAL SCROLL FOR 'WHY CHOOSE US' --- */
/* ========================================= */

@media (max-width: 768px) {

    /* Turn the grid into a horizontal flex container */
    .why-choose-us .services-grid {
        display: flex !important;
        overflow-x: auto;
        /* Enables horizontal scrolling */
        padding-bottom: 2rem;
        /* Space for the scrollbar/touch area */
        gap: 1rem;
        scroll-snap-type: x mandatory;
        /* Makes cards snap into place */

        /* Hide scrollbar for cleaner look on some browsers */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .why-choose-us .services-grid::-webkit-scrollbar {
        display: none;
    }

    /* Fix the width of the cards so they don't squish */
    .why-choose-us .service-card {
        min-width: 280px;
        /* Shows one full card */
        max-width: 280px;
        flex-shrink: 0;
        /* Prevents card from shrinking */
        scroll-snap-align: center;
        /* Snaps card to center of screen */
        margin-bottom: 0;
        /* Remove vertical margin */
    }

    /* Optional: Visual cue that there is more content */
    .why-choose-us .container {
        padding-right: 0;
        /* Allows cards to touch the edge of screen */
    }
}

/* --- Styling for New Referral Code Input (bk.html) --- */

/* Container for input and icon */
.input-icon-wrap {
    display: flex;
    /* Aligns icon and input horizontally */
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

/* Focus state for the container */
.input-icon-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    /* Soft blue shadow */
}

/* Style for the icon */
.input-icon-wrap i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Style for the actual input field inside the wrap */
.input-icon-wrap input[type="text"] {
    flex-grow: 1;
    /* Allows input to fill the available space */
    border: none;
    padding: 0;
    outline: none;
    /* Remove default browser outline */
    background: transparent;
    color: var(--dark);
}

/* Style for the small hint text */
.hint-text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
    display: block;
    /* Ensures it takes up its own line */
}


/* --- Required styles for the Referral button in updates.html --- */
/* These styles were referenced in the JS update in the previous conversation. */

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: auto;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Success state for the button in updates.html */
.btn-success {
    background-color: #28a745 !important;
    /* Green color */
    color: white !important;
    border-color: #28a745 !important;
}

/* --- Hygiene Hour Specific Styles --- */

.hygiene-hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.tip-of-week {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    /* Light blue to light green */
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 4rem 0;
    border-left: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.dark-theme .tip-of-week {
    background: linear-gradient(135deg, #1e2a38 0%, #1e3828 100%);
}

.tip-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Ensure the hygiene logo doesn't get 3D tilted like the homepage hero */
.hero-image.hygiene-mode img {
    transform: none;
    border-radius: 0;
    box-shadow: none;
}

/* ========================================= */
/* --- FORCE DESKTOP HERO LAYOUT ON MOBILE --- */
/* ========================================= */

@media (max-width: 1024px) {

    /* 1. Restore the Side-by-Side Grid */
    .hero-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Forces two columns */
        gap: 1rem !important;
        /* Smaller gap for mobile */
        align-items: center !important;
        text-align: left !important;
    }

    /* 2. Restore the Original Gradient Background */
    .hero {
        background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(131, 56, 236, 0.1) 100%) !important;
        padding: 8rem 0 4rem !important;
        /* Adjust top padding for header */
        min-height: auto !important;
    }

    /* 3. Bring Back the 3D Image */
    .hero-image {
        display: block !important;
        /* Force it to show */
        width: 100% !important;
    }

    .hero-image img {
        /* Restore the 3D tilt */
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) !important;
        width: 100% !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    /* 4. Restore Original Text Colors & Styles */
    .hero-text h1 {
        font-size: 1.4rem !important;
        /* Scale font down to fit */
        color: var(--dark) !important;
        text-shadow: none !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-text h1 span {
        color: var(--primary) !important;
    }

    .hero-text h2 {
        font-size: 0.9rem !important;
        color: var(--dark) !important;
        text-shadow: none !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-text p {
        font-size: 0.75rem !important;
        /* Smaller text */
        color: var(--gray) !important;
        text-shadow: none !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }

    /* 5. Restore Button Layout */
    .hero-btns {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    .hero-btns .btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.7rem !important;
        width: auto !important;
        background-color: var(--primary) !important;
        color: #fff !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* 6. Hide the secondary button on very small screens if it gets too crowded */
    .hero-btns .btn-secondary {
        display: inline-flex !important;
        background-color: var(--secondary) !important;
    }

    /* 7. Hide Floating Cards (Too small to read on mobile side-by-side) */
    .floating-card {
        display: none !important;
    }
}

/* Extra tweak for very small phones */
@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 1.1rem !important;
    }

    .hero-content {
        gap: 0.5rem !important;
    }
}

@media (max-width: 1024px) {

    /* 1. Change to single column layout */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically */
        gap: 2rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* 2. Make image come first and full width */
    .hero-image {
        order: -1 !important;
        /* This makes the image appear first */
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image img {
        transform: none !important;
        /* Remove 3D effect on mobile */
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        /* Limit height */
        object-fit: cover !important;
    }

    /* 3. Make text container full width */
    .hero-text {
        width: 100% !important;
        padding: 0 1rem !important;
    }

    /* 4. Adjust text sizes for mobile */
    .hero-text h1 {
        font-size: 2rem !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        text-transform: none !important;
    }

    /* ========================================= */
    /* --- NEW CSS FOR VIDEO GALLERY (hygen.html) --- */
    /* ========================================= */
    .video-grid {
        display: grid;
        /* 3 columns on desktop, responsive */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
        padding: 1rem 0;
    }

    .video-card {
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        /* Important for video embed */
        transition: var(--transition);
        border: 1px solid var(--light-gray);
        /* Stack content (video + info) vertically */
        display: flex;
        flex-direction: column;
    }

    .dark-theme .video-card {
        background-color: var(--light-gray);
        border-color: var(--gray);
    }

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    /* Container to maintain 16:9 responsive aspect ratio for the video */
    .video-responsive {
        position: relative;
        width: 100%;
        /* 16:9 aspect ratio (9 / 16 * 100 = 56.25%) */
        padding-bottom: 56.25%;
        height: 0;
    }

    .video-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    .video-info {
        padding: 1.5rem;
    }

    .video-info h4 {
        font-size: 1.2rem;
        /* Use primary color for neat section title */
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .video-info p {
        color: var(--gray);
        font-size: 0.95rem;
    }

    /* Ensure responsiveness on smaller screens */
    @media (max-width: 768px) {
        .video-grid {
            gap: 1.5rem;
        }
    }

    .hero-text h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    .hero-text p {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }

    /* 5. Stack buttons vertically on mobile */
    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
    }
}

/* For smaller mobile screens */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem !important;
    }

    .hero-image img {
        max-height: 300px !important;
        border-radius: 12px !important;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
        text-transform: none !important;
    }

    .hero-text h2 {
        font-size: 1.3rem !important;
    }

    .hero-text p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-height: 250px !important;
    }

    .hero-text h1 {
        font-size: 1.6rem !important;
        text-transform: none !important;
    }

    .hero-text h2 {
        font-size: 1.2rem !important;
    }
}

/* ========================================= */
/* --- NEW CSS FOR VIDEO GALLERY (hygen.html) --- */
/* ========================================= */

.video-grid {
    display: grid;
    /* Default: 3 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.video-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    /* Important for video embed corners */
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.dark-theme .video-card {
    background-color: var(--light-gray);
    border-color: var(--gray);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Container to maintain 16:9 responsive aspect ratio */
.video-responsive {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio (9 / 16 * 100 = 56.25%) */
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    /* nice to have a black bg while loading */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 1.5rem;
    flex-grow: 1;
    /* Ensures buttons align if you add them later */
}

.video-info h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-info p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 1.5rem;
    }
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the photo fills the frame without stretching */
    display: block;
}

.team-image-wrapper {
    overflow: hidden;
    /* Keeps the image within card corners */
    aspect-ratio: 1/1;
    /* Keeps the photos square */
}