/* ===========================
           CSS VARIABLES
        =========================== */
:root {
    --primary-red: #E11D48;
    --primary-blue: #2563EB;
    --cta-amber: #F59E0B;
    --whatsapp-green: #25D366;
    --success-green: #10B981;
    --accent-gold: #FBBF24;
    --text-dark: #1F2937;
    --text-grey: #333333;
    --bg-white: #FFFFFF;
    --bg-light-grey: #F3F4F6;
    --bg-services: #F9FAFB;
    --footer-dark: #111827;
    --footer-text: #9CA3AF;
}

/* ===========================
           GLOBAL RESET & BASE STYLES
        =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: var(--text-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
           TYPOGRAPHY
        =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

/* ===========================
           ANIMATIONS & KEYFRAMES
        =========================== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    animation: fadeUp 0.6s ease forwards;
}

/* ===========================
           STICKY GLASS HEADER
        =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-width: 15%;
}



.cta-button {
    background: linear-gradient(90deg, #E11D48, #F59E0B);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cta-button:hover {
    background: #d97706;
    transform: scale(1.05);
}

.cta-button i {
    font-size: 18px;
}

/* ===========================
           HERO SECTION
        =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../../assets/office-images/why-choose-us.png') center/cover fixed;
    color: white;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.typing-text {
    /* Gradient Styles */
    background: linear-gradient(90deg, #E11D48, #F59E0B);
    /* Red to Amber */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Original Layout Styles */
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;

    /* CURSOR COLOR: We must set this explicitly because the parent text is transparent */
    color: #F59E0B;
    /* I used the Amber color to match the end of the gradient */
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--cta-amber);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-success {
    background: var(--whatsapp-green);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.hero-image {
    position: absolute;
    right: 10%;
    bottom: 10%;
    width: 300px;
    animation: float 3s ease-in-out infinite;
    display: none;
}

/* ===========================
           MARQUEE BANNER
        =========================== */
.marquee {
    background: linear-gradient(90deg, var(--primary-red), var(--cta-amber));
    color: white;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    font-size: 18px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    display: inline-block;
    padding-right: 50px;
}


/* ===========================
           SERVICES GRID
        =========================== */
.services {
    padding: 80px 20px;
    background: var(--bg-services);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Additional Services Section */
.additional-services {
    margin-top: 3rem;
}

.additional-services h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.additional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.additional-icon {
    width: 50px;
    height: 50px;
    /* Updated Gradient Background */
    background: linear-gradient(90deg, var(--primary-red), var(--cta-amber));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.additional-card:hover .additional-icon {
    transform: scale(1.1);
}

.additional-content h4 {
    font-size: 18px;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.additional-content p {
    font-size: 14px;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.5;
}

.service-card {
    background: white;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.service-card:nth-child(1) .service-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.service-card:nth-child(3) .service-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--cta-amber);
}

.service-card:nth-child(4) .service-icon {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-red);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-grey);
    line-height: 1.7;
}

/* ===========================
   WHY CHOOSE US (w/ Background Image)
=========================== */
.benefits {
    padding: 100px 20px;
    /* Increased padding for better visual impact */
    /* IMPORTANT: Replace 'YOUR_IMAGE_URL_HERE' with your actual image link.
       The linear-gradient creates a dark overlay so text remains readable.
    */
    background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)),
        url('../../assets/office-images/image2.jpg') center/cover fixed no-repeat;
    color: white;
    /* Default text color for the section */
    position: relative;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Overriding global H2 styles for this dark section */
.benefits h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: white !important;
    /* Forced white */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Overriding global subtitle styles for this dark section */
.benefits-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Forced off-white */
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    background: white;
    /* White cards pop against dark BG */
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Deeper shadow for depth */
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    /* Prep for hover effect */
}

.benefit-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid var(--cta-amber);
    /* Amber accent on hover */
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
    /* Updated default state for icons */
    background: rgba(37, 99, 235, 0.1);
    /* Light blue BG */
    color: var(--primary-blue);
    /* Blue icon */
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--cta-amber);
    /* Solid amber on hover */
    color: white;
    /* White icon on hover */
}

/* Specific colors for each card's initial state if you want variety (Optional - current CSS uses uniform blue) */

.benefit-item:nth-child(1) .benefit-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.benefit-item:nth-child(2) .benefit-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.benefit-item:nth-child(3) .benefit-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--cta-amber);
}

.benefit-item:nth-child(4) .benefit-icon {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-red);
}


.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    /* Dark text inside the white card */
    font-weight: 700;
    text-transform: uppercase;
}

.benefit-content p {
    color: var(--text-grey);
    /* Grey text inside the white card */
    line-height: 1.6;
    font-size: 15px;
}

/* ===========================
           PRICING TABLE
        =========================== */
.pricing {
    padding: 80px 20px;
    background: var(--bg-light-grey);
}

.pricing-container {
    max-width: 900px;
    margin: 0 auto;
}

.pricing h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.pricing-table {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: left;
}

.pricing-table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.pricing-table td:last-child {
    font-weight: 600;
    color: var(--primary-red);
}

.pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-grey);
}

/* ===========================
           URGENCY CTA
        =========================== */
.urgency {
    padding: 100px 20px;
    background: linear-gradient(90deg, var(--primary-red), var(--cta-amber)),
        url('../../assets/office-images/ad242a09-1015-447d-886a-ca7b71883acb.jpg') center/cover fixed;
    color: white;
    text-align: center;
}

.urgency h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
}

.urgency p {
    font-size: 20px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-white {
    background: white;
    color: var(--primary-red);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ===========================
           GALLERY TEASER
        =========================== */
.gallery {
    padding: 80px 20px;
    background: var(--bg-white);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gallery-subtext {
    text-align: center;
    font-size: 18px;
    color: var(--text-grey);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===========================
           MAP LOCATION
        =========================== */
.map {
    width: 100%;
    height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===========================
           FOOTER
        =========================== */
.footer {
    background: var(--footer-dark);
    color: var(--footer-text);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--footer-text);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.footer-logo-img {
    max-width: 40%;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-gold);
    color: var(--footer-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom strong {
    color: var(--accent-gold);
}

/* ===========================
           RESPONSIVE MEDIA QUERIES
        =========================== */
@media (min-width: 768px) {
    .hero-image {
        display: block;
    }

}

@media (max-width: 400) {
    .logo-img {
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .logo-img {
        max-width: 20%;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .cta-button span {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

    .marquee {
        font-size: 14px;
    }

    .services-grid,
    .benefits-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2,
    .about h2,
    .benefits h2,
    .pricing h2,
    .gallery h2 {
        font-size: 1.75rem;
    }

    .urgency h2 {
        font-size: 2rem;
    }
}


/* Chat widget container */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9999;
    font-family: sans-serif;
}

/* Floating button */
#chat-toggle {
    background: #00A676;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

#chat-toggle:hover {
    background: #24e6af;
}

/* Chat window */
#chat-container {
    display: none;
    flex-direction: column;
    width: 320px;
    max-width: 90vw;
    height: 400px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 10px;
}

/* Header */
#chat-header {
    background: linear-gradient(90deg, #00A676, #4F46E5);
    color: white;
    font-weight: bold;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Messages */
#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #F3F4F6;
}

.message {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #00A676;
    color: white;
    margin-left: auto;
}

.message.bot {
    background: #E5E7EB;
    color: black;
    margin-right: auto;
}

/* Input */
#chat-input-container {
    display: flex;
    border-top: 1px solid #D1D5DB;
    padding: 8px;
    gap: 6px;
}

#user-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid black;
    outline: none;
    color: black;
}

#send-btn {
    background: #00A676;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

#send-btn:hover {
    background: #00A676;
}

/* Loading */
#loading {
    padding: 5px 10px;
    font-style: italic;
    color: #6B7280;
    display: none;
    font-size: 12px;
}

/* Mobile adjustments */
@media (max-width: 500px) {
    #chat-container {
        width: 90vw;
        height: 60vh;
    }

    #chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background-color: #555;
    border-radius: 50%;
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}