@import url('subpages-home-aligned.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Unified site typography */
body, button, input, textarea, select,
h1, h2, h3, h4, .logo-text, .stat-number,
.hero-title, .section-title, .about-content h2,
.review-author h4, .floating-card-title {
    font-family: 'Poppins', sans-serif;
}

/* ===== CSS Variables - Light Theme with Teal Accent ===== */
:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-dark: #0f766e;
    --accent-gradient: linear-gradient(135deg, #0d9488 0%, #059669 50%, #047857 100%);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --backdrop-blur: blur(12px);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 8px 30px rgba(13, 148, 136, 0.25);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;

    /* Border Radius - Max 8px */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: auto;
}

/* Use the browser's standard cursor behavior. */
a,
button,
.btn-primary,
.btn-outline,
.nav-cta,
.mobile-cta,
.menu-toggle,
.carousel-dot,
.bottom-bar-item,
.service-card,
.testimonial-card,
.contact-item,
.about-feature,
.footer-social a {
    cursor: pointer;
}

/* Text Selection Color */
::selection {
    background: var(--accent);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--accent);
    color: var(--text-light);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== Lucide Icons ===== */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 40px;
    height: 40px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 5%;
    box-shadow: var(--glass-shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-accent);
}

.logo-text {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.8rem;
    background: var(--accent-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(13, 148, 136, 0.35);
}

.site-logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
}

.header-whatsapp-btn {
    padding: 0.55rem 1.15rem;
    text-decoration: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Decorative Gradient Orb */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse-glow 5s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    font-weight: 500;
}

.hero-badge .icon {
    color: var(--accent);
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    padding: 1rem 2.2rem;
    background: var(--accent-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    padding: 1rem 2.2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(13, 148, 136, 0.05);
}

/* Ghost Button - Transparent */
.btn-ghost {
    padding: 1rem 2.2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(13, 148, 136, 0.05);
}

/* Play Video Button */
.btn-play {
    padding: 1rem 2.2rem;
    background: var(--accent-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-accent);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
}

/* Play Icon Button - Circle */
.btn-play-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
}

.btn-play-icon .icon {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.btn-play-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.5);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-img-wrapper img {
    width: 100%;
    height: 590px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: var(--radius-lg);
    transform: translateY(36px);
    transition: var(--transition);
}

.hero-img-wrapper:hover img {
    transform: translateY(36px) scale(1.03);
}

/* Glass Floating Cards */
.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
    box-shadow: var(--glass-shadow);
    z-index: 2;
}

.floating-card.card-1 {
    bottom: 10%;
    left: -15%;
    animation: float 4s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 15%;
    right: -10%;
    animation: float 4s ease-in-out infinite 1s;
}

.floating-card-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.floating-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.floating-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Stats Section ===== */
.stats {
    padding: 5rem 5%;
    background: var(--bg-secondary);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== Services Section ===== */
.services {
    padding: 7rem 5%;
    background: var(--bg-primary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    margin-bottom: 1rem;
}

/* Services Carousel Container */
.services-carousel {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 3rem;
    position: relative;
}

.services-carousel::before,
.services-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.services-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.services-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* Services Track - Infinite Scroll */
.services-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    cursor: grab;
    padding: 0 1rem;
}

.services-track:active {
    cursor: grabbing;
    animation-play-state: paused;
}

.services-carousel:hover .services-track {
    animation-play-state: paused;
}

/* Service Card - Testimonial Style */
.service-card {
    flex-shrink: 0;
    width: 200px;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

/* Staggered Layout - Even cards 50px lower and extend beyond odd cards */
.service-card:nth-child(even) {
    margin-top: 50px;
    margin-bottom: -50px;
}

/* Testimonial Style Hover - Border permanent, shadow on hover */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--text-light);
    border-color: transparent;
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Mobile Services Carousel */
@media (max-width: 768px) {

    .services-carousel::before,
    .services-carousel::after {
        width: 40px;
    }

    .service-card {
        width: 180px;
        padding: 1.2rem;
    }

    .service-card:nth-child(even) {
        margin-top: 30px;
        margin-bottom: -30px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
    }

    .services-track {
        gap: 1rem;
    }
}

/* ===== About Section ===== */
.about {
    padding: 7rem 5%;
    background: var(--bg-secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-img-main {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-gradient);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-accent);
}

.about-badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.about-badge-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateX(5px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-sm);
}

.about-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Testimonials - 2 Row Infinite Scroll ===== */
.testimonials {
    padding: 7rem 5%;
    background: var(--bg-primary);
    overflow: hidden;
}

.testimonials-row {
    overflow: hidden;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* Left to Right Animation */
.row-ltr .testimonials-track {
    animation: scrollLTR 30s linear infinite;
}

/* Right to Left Animation */
.row-rtl .testimonials-track {
    animation: scrollRTL 30s linear infinite;
}

@keyframes scrollLTR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRTL {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.testimonials-row:hover .testimonials-track {
    animation-play-state: paused;
}

/* Review Card - Contact Item Style */
.review-card {
    flex-shrink: 0;
    width: 350px;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-md);
}

/* Quote Icon - Top Right */
.review-quote-icon {
    position: absolute;
    top: -10px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-accent);
}

.review-quote-icon .icon {
    width: 18px;
    height: 18px;
}

/* Review Header - Profile & Name */
.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.review-author h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Stars */
.review-stars {
    display: flex;
    gap: 0.15rem;
}

.review-stars .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    fill: var(--accent);
}

/* Review Text */
.review-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .review-card {
        width: 280px;
        padding: 1.2rem;
    }

    .review-avatar {
        width: 42px;
        height: 42px;
    }

    .review-text {
        font-size: 0.88rem;
    }
}

/* ===== Contact Section ===== */
.contact {
    padding: 7rem 5%;
    background: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info>p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-text span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-primary);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-accent);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
}

/* ===== Footer ===== */
.footer {
    padding: 5rem 5% 2rem;
    background: var(--primary);
    color: var(--text-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.footer-brand p {
    margin: 1rem 0 1.5rem;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a .icon {
    color: var(--accent-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.footer-links a:hover .icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Footer Waves ===== */
.footer-waves {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.footer-waves .waves {
    position: absolute;
    width: 200%;
    height: 100%;
    left: 0;
    bottom: 0;
    animation: waveMove 15s ease-in-out infinite alternate;
}

.footer-waves .wave-1 {
    animation: wave1Move 8s ease-in-out infinite;
}

.footer-waves .wave-2 {
    animation: wave2Move 10s ease-in-out infinite;
}

.footer-waves .wave-3 {
    animation: wave3Move 12s ease-in-out infinite;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

@keyframes wave1Move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-30px);
    }
}

@keyframes wave2Move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(25px);
    }
}

@keyframes wave3Move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-15px);
    }
}

/* ===== Footer Contact ===== */
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact-item .icon {
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.5;
}

.footer-contact-item a:hover {
    color: var(--accent-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Styles ===== */
@media (max-width: 1024px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Nav - Glassmorphism */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        padding: 6rem 2rem;
        transition: var(--transition);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-nav li a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: var(--radius-md);
        transition: var(--transition);
    }

    .mobile-nav li a:hover {
        background: rgba(13, 148, 136, 0.1);
        color: var(--accent);
    }

    .mobile-nav li a .icon {
        color: var(--accent);
    }

    .mobile-cta {
        margin-top: 2rem;
        padding: 1rem 2rem;
        background: var(--accent-gradient);
        color: var(--text-light);
        border: none;
        border-radius: var(--radius-md);
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
        box-shadow: var(--shadow-accent);
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 998;
        backdrop-filter: blur(4px);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Mobile */
    .hero {
        padding: 7rem 5% 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img-wrapper img {
        height: 350px;
    }

    .floating-card {
        display: none;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials Carousel Mobile - 2 cards visible */
    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

    /* About Mobile */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-badge {
        right: 10px;
        bottom: -15px;
    }

    /* Contact Mobile */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    /* Mobile App Bottom Bar - Glassmorphism */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        border-top: 1px solid var(--glass-border);
        padding: 0.6rem 0 0.8rem;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }

    .bottom-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        transition: var(--transition);
        padding: 0.3rem 0.8rem;
        border-radius: var(--radius-md);
    }

    .bottom-bar-item .icon {
        width: 22px;
        height: 22px;
    }

    .bottom-bar-item.active,
    .bottom-bar-item:hover {
        color: var(--accent);
    }

    .bottom-bar-item.active {
        background: rgba(13, 148, 136, 0.1);
    }

    body {
        padding-bottom: 75px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-img-wrapper img {
        height: 280px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .service-card,
    .testimonial-card {
        padding: 2rem;
    }
}

/* Desktop hide mobile elements */
@media (min-width: 769px) {

    .mobile-nav,
    .overlay,
    .mobile-bottom-bar {
        display: none;
    }
}

/* ===== Video Modal ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.video-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-modal-content video {
    width: 100%;
    display: block;
    background: #000;
}

/* Custom Video Controls */
.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.video-control-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.video-control-btn .icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

/* Icon visible state - translate from below */
.video-control-btn .icon.icon-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Icon hidden state - translate down and fade out */
.video-control-btn .icon.icon-hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.video-control-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.video-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.video-progress {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* Disable video context menu and download */
.video-modal-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Mobile Video Modal */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .video-controls {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    .video-control-btn {
        width: 38px;
        height: 38px;
    }

    .video-close-btn {
        width: 38px;
        height: 38px;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ===== AI Assistance Header Button ===== */
.nav-cta.ai-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488, #14b8a6, #2dd4bf);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.nav-cta.ai-btn span:first-of-type {
    position: relative;
    z-index: 1;
}

.ai-btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== Chat Overlay (Left Side) ===== */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 500px;
    bottom: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-left {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid rgba(13, 148, 136, 0.15);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), transparent);
    animation: float3 6s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 25%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float4 7s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(10deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 20px) scale(1.1);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(55deg) translate(10px, 10px);
    }
}

.overlay-info {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.overlay-info h3 {
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overlay-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
    border-color: var(--accent);
}

.contact-card .icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-card div {
    text-align: left;
}

.contact-card span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-card strong {
    display: block;
    font-size: 1rem;
    color: var(--bg-dark);
    font-weight: 600;
}

/* ===== AI Chat Panel (Right Side) ===== */
.chat-popup {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background: var(--bg-dark);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
}

.chat-popup.active {
    right: 0;
}

/* Chat Header - Minimalist Professional */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: #1a1a2e;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), #2dd4bf);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-avatar .icon {
    width: 22px;
    height: 22px;
    color: white;
}

.chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-close-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 8px;
}

.chat-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.chat-close-btn .icon {
    width: 22px;
    height: 22px;
}

/* Chat Messages - Cream with Pattern */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #ece5dd;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.chat-message.user .message-avatar {
    background: var(--accent);
    color: white;
}

.message-content {
    background: white;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem 0.875rem 0.875rem 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.user .message-content {
    background: #dcf8c6;
    border-radius: 0.875rem 0.5rem 0.875rem 0.875rem;
    color: #1a1a2e;
}

.message-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.chat-message.user .message-content p {
    color: #1a1a2e;
}

.message-time {
    font-size: 0.65rem;
    color: #667781;
}

/* Quick Actions */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.quick-action-btn {
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.quick-action-btn:hover {
    background: var(--accent);
    color: white;
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.4);
}

.chat-send-btn .icon {
    width: 20px;
    height: 20px;
}

/* Mobile Chat Popup - Bottom Sheet */
@media (max-width: 768px) {

    /* Overlay behind chat */
    .chat-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .chat-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .chat-popup {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 75vh;
        height: 75dvh;
        border-radius: 1.25rem 1.25rem 0 0;
        max-height: 75vh;
        max-height: 75dvh;
        z-index: 99999;
        border-left: none;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        right: 0;
    }

    .chat-popup.active {
        transform: translateY(0);
    }

    .chat-header {
        padding: 1rem;
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .chat-back-btn {
        width: 40px;
        height: 40px;
    }

    .chat-header-info h4 {
        font-size: 1.1rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-container {
        padding: 1rem;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    }
}

/* Typing Indicator Dots */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.25rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}
/* Dedicated layouts for database-backed public subpages. */
body > main[style*="150px"] {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}
body > main[style*="150px"] .services-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: auto;
    padding: 0;
    cursor: default;
}
body > main[style*="150px"] .service-card {
    width: auto;
    min-height: 250px;
    margin: 0 !important;
}
body > main[style*="150px"] .contact-form {
    max-width: 820px;
    margin-left: 0;
}
body > main[style*="150px"] h1 {
    max-width: 900px;
    margin: 1rem 0 2rem;
}
@media (max-width: 700px) {
    body > main[style*="150px"] { padding: 120px 6% 50px !important; }
    body > main[style*="150px"] .services-track { grid-template-columns: 1fr; }
}

body.public-subpage {
    background:
        radial-gradient(circle at top left, rgba(13, 148, 136, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef5f7 100%);
    color: var(--text-primary);
}

body.public-subpage .navbar {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
}

body.public-subpage .public-navbar {
    padding: 1.15rem max(5%, calc((100vw - 1320px) / 2));
    gap: 2rem;
}

body.public-subpage .public-navbar .nav-links {
    margin-left: auto;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

body.public-subpage .public-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    text-decoration: none;
}

.footer-social .brand-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

/* Poppins is the single typeface used across every public element. */
body *, body *::before, body *::after {
    font-family: 'Poppins', sans-serif !important;
}

body.public-subpage .nav-links a.is-active {
    color: var(--accent);
}

.subpage-shell {
    width: min(1320px, calc(100% - 10%));
    padding: 148px 0 96px;
    margin: 0 auto;
}

.subpage-hero,
.subpage-section,
.subpage-footer {
    max-width: 1240px;
    margin: 0 auto;
}

.subpage-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 0;
    min-height: 590px;
}

.subpage-hero-copy,
.subpage-hero-visual,
.service-hero-panel,
.story-panel,
.contact-form-panel,
.contact-info-card,
.service-spotlight-card,
.directory-card,
.process-card,
.metric-card,
.timeline-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.subpage-hero-copy {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #14213d 62%, #0d9488 140%);
    border-radius: 34px;
    padding: clamp(2rem, 4vw, 4rem);
    color: #fff;
}

.subpage-hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
    pointer-events: none;
}

.subpage-hero-copy .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.subpage-hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: #fff;
    max-width: 10ch;
    margin: 1rem 0 1.25rem;
}

.subpage-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.82);
}

.subpage-hero-metrics,
.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card,
.hero-chip {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-card {
    min-width: 180px;
    padding: 1rem 1.1rem;
}

.metric-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.subpage-hero-visual,
.service-hero-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 243, 245, 0.95));
    border-radius: 34px;
    padding: 1.4rem;
}

.visual-frame {
    position: relative;
    height: 100%;
    min-height: 540px;
    border-radius: 28px;
    overflow: hidden;
}

.visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-note {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
}

.visual-note .icon,
.insight-icon .icon,
.timeline-icon .icon,
.hero-contact-card .icon,
.contact-stack-item .icon,
.process-number,
.service-hero-stat strong {
    color: var(--accent);
}

.note-top {
    top: 2.2rem;
    left: -1rem;
}

.note-bottom {
    right: -0.8rem;
    bottom: 2rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading-left {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.05;
    margin: 1rem 0;
}

.section-heading p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.subpage-section {
    margin-top: 6.5rem;
}

.subpage-section + .subpage-section {
    margin-top: 7rem;
}

.subpage-section .section-heading {
    margin-bottom: 2.35rem;
}

.insight-grid,
.service-spotlight-grid,
.services-directory-grid,
.process-grid {
    display: grid;
    gap: 1.35rem;
}

.insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card,
.service-spotlight-card,
.directory-card,
.process-card,
.contact-info-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    padding: 1.5rem;
}

.insight-card h3,
.service-spotlight-card h3,
.process-card h3,
.contact-info-card h3 {
    margin: 1.1rem 0 0.8rem;
    font-size: 1.35rem;
}

.insight-card p,
.service-spotlight-card p,
.directory-card p,
.process-card p,
.timeline-card p,
.contact-info-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.insight-icon,
.timeline-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(13, 148, 136, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.story-section .story-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 241, 244, 0.96));
    border-radius: 34px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.story-copy h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin: 1rem 0;
}

.story-copy p {
    max-width: 58ch;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

.timeline-stack {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    border-radius: 24px;
    padding: 1.1rem 1.2rem;
}

.timeline-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-card p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.service-hero-panel {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.service-hero-stat {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: 1.2rem 1.25rem;
}

.service-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.service-hero-stat span,
.spotlight-link,
.directory-card span,
.hero-contact-card span,
.subpage-footer-label {
    color: var(--text-secondary);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    color: #fff;
}

.service-spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-spotlight-card,
.directory-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-spotlight-card:hover,
.directory-card:hover,
.contact-stack-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

.service-spotlight-top,
.directory-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.services-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-card strong {
    font-size: 1.05rem;
}

.directory-card span {
    display: inline-block;
    margin-top: 0.9rem;
    font-weight: 600;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
}

.process-card::after {
    content: "";
    position: absolute;
    inset: auto -45px -45px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12), transparent 70%);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 18px;
    font-weight: 700;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
    gap: 1.4rem;
    align-items: start;
}

.contact-form-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: clamp(1.4rem, 3vw, 2rem);
}

.subpage-contact-form {
    max-width: none;
    margin: 0;
}

.field-shell {
    display: grid;
    gap: 0.55rem;
    flex: 1 1 0;
}

.field-shell span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.field-shell-full {
    display: grid;
    margin-top: 1rem;
}

.subpage-contact-form input,
.subpage-contact-form textarea {
    background: #fff;
}

.contact-aside {
    display: grid;
    gap: 1rem;
}

.hero-contact-strip {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.hero-contact-card,
.contact-stack-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-contact-card strong,
.contact-stack-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-stack {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.muted-card {
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
}

.muted-card h3 {
    color: #fff;
}

.contact-checklist {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.contact-checklist li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.78);
}

.contact-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.map-frame {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

.subpage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto 4.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #14213d 68%, #0d9488 140%);
    color: #fff;
    border-radius: 34px;
    padding: 1.8rem clamp(1.4rem, 3vw, 2.4rem);
}

.subpage-footer h3 {
    margin: 0.55rem 0 0;
    color: #fff;
}

.subpage-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .subpage-hero,
    .story-section .story-panel,
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }

    .service-spotlight-grid,
    .services-directory-grid,
    .insight-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .visual-frame {
        min-height: 420px;
    }

    .subpage-hero {
        min-height: 0;
    }

    .note-top {
        left: 1rem;
    }

    .note-bottom {
        right: 1rem;
    }
}

@media (max-width: 760px) {
    .subpage-shell {
        width: min(100% - 2rem, 620px);
        padding: 112px 0 55px;
    }

    body.public-subpage .public-navbar {
        padding: 0.95rem 1rem;
    }

    .subpage-section,
    .subpage-section + .subpage-section {
        margin-top: 4.5rem;
    }

    .subpage-hero-copy h1,
    .section-heading h2,
    .story-copy h2 {
        max-width: none;
    }

    .service-spotlight-grid,
    .services-directory-grid,
    .insight-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .subpage-footer {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 6rem;
    }

    .visual-note {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }

    .visual-frame {
        min-height: 320px;
    }

    .hero-contact-card,
    .contact-stack-item {
        align-items: flex-start;
    }

    .field-shell {
        min-width: 100%;
    }
}
