:root {
    /* Color Palette - Matched to bg.jpg */
    --primary: #0284c7;
    /* Sky Blue */
    --primary-hover: #0369a1;
    /* Darker Sky Blue */
    --secondary: #0d9488;
    /* Teal */
    --secondary-hover: #0f766e;
    /* Darker Teal */
    --accent: #f59e0b;
    /* Amber */
    --background: #bfdbfe;
    /* Light blue background */
    --surface: #f0f9ff;
    /* Very light sky blue for section backgrounds */
    --text-main: #0f172a;
    /* Slate Navy */
    --text-muted: #475569;
    /* Muted Slate */
    --white: #ffffff;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
    --grad-primary: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);

    /* Shadows - Tinted with the new primary color */
    --shadow-sm: 0 1px 2px 0 rgb(2 132 199 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(2 132 199 / 0.1), 0 2px 4px -2px rgb(2 132 199 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(2 132 199 / 0.1), 0 4px 6px -4px rgb(2 132 199 / 0.1);
    --shadow-card: 0 20px 25px -5px rgba(2, 132, 199, 0.05), 0 8px 10px -6px rgba(13, 148, 136, 0.05);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-title: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.25rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Animations */
.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
}

.plan-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.2);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for noscript or slow JS */
.no-js .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .why-us .container {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .plans-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navbar compact and attractive on mobile */
    header {
        padding: 0 1rem !important;
        /* Vertical center by flex */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        height: 60px !important;
        max-height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
    }

    /* Remove padding on body to let sections expand under the glass header */
    body {
        padding-top: 0 !important;
    }

    /* Ensure logo and text are properly sized */
    header .logo {
        font-size: 1.25rem !important;
        color: var(--primary) !important;
        display: flex !important;
        align-items: center !important;
    }

    header .logo img {
        height: 32px !important;
        width: auto !important;
    }

    header .logo span {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
    }

    /* Set exact 60px padding-top on the first section to match navbar exact height without white gaps */
    body>section:first-of-type,
    main>section:first-of-type {
        margin-top: 0 !important;
        padding-top: 60px !important;
    }

    .hero-bg-container {
        padding-top: 2rem !important;
    }

    header .desktop-nav {
        display: none !important;
    }

    header .logo {
        font-size: 1.25rem !important;
    }

    header .logo i {
        width: 24px !important;
        height: 24px !important;
    }

    .header-actions .btn {
        display: none !important;
    }

    .header-actions .mobile-toggle {
        display: block !important;
    }

    .header-actions {
        gap: 0.75rem !important;
    }

    .lang-selector {
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }

    .lang-selector span,
    .lang-selector i:last-child {
        display: none;
    }

    section {
        padding: 40px 1.25rem !important;
    }

    /* Container adjustments */
    .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Typography adjustments */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    p {
        font-size: 16px !important;
    }

    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .hero-content p {
        font-size: 16px !important;
        margin: 0 auto 2rem auto !important;
    }

    .hero-btns {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 3rem !important;
        align-items: center !important;
    }

    .hero-stats>div {
        text-align: center !important;
    }

    .hero-visual {
        order: 2 !important;
        transform: none !important;
    }

    .hero-visual img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: cover !important;
        border-radius: var(--radius-lg) !important;
    }

    .hero-visual .glass {
        left: 10px !important;
        bottom: 10px !important;
        padding: 0.75rem 1rem !important;
    }

    /* Grid stacking */
    .services-grid,
    .plans-grid,
    .testimonial-grid,
    .process-grid,
    .partners-grid,
    .footer-links-grid,
    .why-features {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .why-us .container,
    .why-content .container,
    #why-us .container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Image responsiveness */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Spacing */
    .section-header {
        margin-bottom: 2.5rem !important;
    }

    .section-header p {
        font-size: 1rem !important;
    }

    /* Contact form adjustment */
    .contact-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    footer div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Generic stack for any inline grid/flex used in HTML */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"],
    [style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    [style*="display: flex"][style*="gap: 2rem"],
    [style*="display: flex"][style*="gap: 3rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3.5rem 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
}

.mobile-overlay.active {
    visibility: visible;
    transform: translateX(0);
}

.mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.mobile-nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Scroll Enhancements --- */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--grad-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Staggered Reveals */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Parallax Container Fix */
.hero-visual {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-selector:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    z-index: 1002;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.lang-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-item:hover {
    background: var(--surface);
    color: var(--primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Hide Google Translate original bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Card Squish Effect */
.service-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    cursor: pointer;
    will-change: transform, view-transition-name;
}

/* View Transitions Customization */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom expansion curve for cards */
[style*="view-transition-name: card-"] {
    animation: none;
}

::view-transition-old(card-life),
::view-transition-old(card-health),
::view-transition-old(card-general),
::view-transition-old(card-group),
::view-transition-old(card-investment) {
    animation: fade-out 0.2s ease-out forwards;
}

::view-transition-new(card-life),
::view-transition-new(card-health),
::view-transition-new(card-general),
::view-transition-new(card-group),
::view-transition-new(card-investment) {
    animation: scale-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes scale-up {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#google_translate_element {
    display: none;
}

/* --- Contact Form Styles --- */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Success Message Toast */
.contact-success {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.contact-success.active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #contact>.container>div {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

/* Spinner Animation */
.spin {
    animation: spin 1s linear infinite;
}

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

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

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(37, 211, 102, 0.3);
    background-color: #20ba5a;
}

.whatsapp-btn i,
.whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: white;
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid #f1f5f9;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adjust Back to Top button position to avoid overlap */
.back-to-top {
    bottom: 7rem !important;
    /* Moved up to make space for WhatsApp button */
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 15px !important;
        right: 1.25rem !important;
    }

    .whatsapp-btn {
        width: 54px;
        height: 54px;
        animation: whatsapp-bounce 2s infinite ease-in-out;
    }

    .back-to-top {
        bottom: 5.5rem !important;
        right: 1.25rem !important;
    }

    @keyframes whatsapp-bounce {

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

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

/* --- Insurance Partners Section --- */
.partners-section {
    padding: 6rem 0;
    background-color: var(--surface);
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.partner-card {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    width: 100%;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: white;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    line-height: 1.2;
}

.partner-card:hover .partner-name {
    color: var(--primary);
}

.partners-disclaimer {
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Stagger Elements Initial State */
.service-card.reveal,
.plan-card.reveal,
.testimonial-card.reveal,
.process-card.reveal,
.badge.reveal,
h1.reveal,
h2.reveal,
h3.reveal,
h4.reveal,
p.reveal,
.btn.reveal,
.hero-stats>div.reveal,
.why-features>div.reveal,
.partner-card.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.reveal.active,
.plan-card.reveal.active,
.testimonial-card.reveal.active,
.process-card.reveal.active,
.badge.reveal.active,
h1.reveal.active,
h2.reveal.active,
h3.reveal.active,
h4.reveal.active,
p.reveal.active,
.btn.reveal.active,
.hero-stats>div.reveal.active,
.why-features>div.reveal.active,
.partner-card.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   Hero Headline â€” word-by-word fade-in animation
   ==================================================== */
@keyframes wordFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.hero-headline .hw {
    display: inline-block;
    opacity: 0;
    animation: wordFadeIn 0.5s ease forwards;
    animation-delay: calc(0.3s + var(--i) * 0.2s);
}

/* Subtext fades up after all 7 words finish (0.3 + 6Ã—0.2 + 0.5 â‰ˆ 2.1s) */
@keyframes subtextFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-subtext {
    opacity: 0;
    animation: subtextFadeUp 0.7s ease forwards;
    animation-delay: 2.1s;
}

/* Hero float + entrance animations */
@keyframes heroFloat {

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

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

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

.hero-visual {
    will-change: transform;
    animation:
        heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
        heroFloat 3s ease-in-out 0.9s infinite;
}

/* ====================================================
   Stats Section â€” fade-in from bottom with stagger
   ==================================================== */
@keyframes statEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.stat-item {
    opacity: 0;
    animation: statEntrance 0.6s ease forwards;
    animation-delay: calc(2.4s + var(--si) * 0.3s);
}

/* ====================================================
   Full-Screen Hero Section
   ==================================================== */
.hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 !important;
}

/* Background image */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Inner content wrapper */
.hero-fullscreen-inner {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
}

/* Hero content left-aligned on dark bg */
.hero-fullscreen .hero-content {
    max-width: 680px;
    color: #fff;
}

/* Headline words white */
.hero-fullscreen .hero-headline .hw {
    color: #fff;
}

/* Badge on dark bg */
.hero-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

/* Outline button for dark hero bg */
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ---- Mobile responsive ---- */
@media (max-width: 767px) {
    .hero-fullscreen {
        min-height: 100vh;
        align-items: center;
    }

    .hero-fullscreen-inner {
        padding-top: 6rem;
        padding-bottom: 4rem;
        justify-content: center;
        text-align: center;
    }

    .hero-fullscreen .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-fullscreen .hero-headline {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .hero-fullscreen .hero-subtext {
        font-size: 1rem !important;
        text-align: center;
    }

    .hero-fullscreen .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-fullscreen .hero-btns .btn,
    .hero-fullscreen .hero-btns .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-fullscreen .hero-stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 2rem !important;
        justify-content: center;
    }

    .hero-fullscreen .stat-item {
        text-align: center;
        flex: 0 0 calc(33% - 1rem);
    }
}

/* ====================================================
   Hero Background Image + White Overlay
   ==================================================== */
.hero-bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('assets/images/bg 1.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* White overlay via ::before */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1;
}

/* Content container sits above overlay */
.hero-bg-container {
    position: relative;
    z-index: 2;
    padding-top: 10rem;
    padding-bottom: 5rem;
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-bg {
        min-height: calc(100vh - 60px);
        background-position: bottom center !important;
        background-size: 100% auto !important;
        background-color: var(--surface) !important;
    }

    /* Remove full-screen dark overlay */
    .hero-bg::before {
        display: none !important;
    }

    .hero-bg-container {
        padding: 2.5rem 16px 3rem !important;
        /* 16px horizontal padding */
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-bg .hero-content {
        padding: 24px 16px !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.25) !important;
        /* Decreased opacity for background image visibility */
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(4px);
        margin-bottom: auto;
        /* Push any following content up, leaving room for background image at bottom */
    }

    /* Reduce font size for mobile, keeping native colors */
    .hero-bg .hero-content h1,
    .hero-bg .hero-headline {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .hero-bg .hero-content p,
    .hero-bg .hero-subtext {
        font-size: 16px !important;
    }

    .hero-bg .hero-btns {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin-top: 1rem !important;
    }

    /* Make buttons full width */
    .hero-bg .hero-btns .btn,
    .hero-bg .hero-btns .btn-hero-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-bg .hero-stats {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 0 !important;
        width: 100%;
        margin-top: 2rem !important;
    }

    .hero-bg .stat-item {
        flex: 1 1 0 !important;
        padding: 0 5px;
        text-align: center;
    }

    .hero-bg .stat-number {
        font-size: 24px !important;
    }

    .hero-bg .stat-item>div:last-child {
        font-size: 11px !important;
    }
}

/* ====================================================
   Hero Side Square Image Box
   ==================================================== */
.hero-side-img-box {
    position: relative;
    width: 480px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px -10px rgba(37, 99, 235, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.9);
    transform: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

/* Slideshow Container */
.img-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.img-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0;
    /* 5 images Ã— 6s each = 30s loop */
    animation: slideAnimation 30s infinite linear;
}

/* Stagger the animations so they cross-fade */
.img-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.img-slideshow .slide:nth-child(2) {
    animation-delay: 6s;
}

.img-slideshow .slide:nth-child(3) {
    animation-delay: 12s;
}

.img-slideshow .slide:nth-child(4) {
    animation-delay: 18s;
}

.img-slideshow .slide:nth-child(5) {
    animation-delay: 24s;
}

/* 
   Total duration: 30s 
   Math for 1 image (100% / 5 = 20% active time):
   0-3.33% (0-1s): fade in
   3.33-16.66% (1-5s): stay visible, slowly scale up
   16.66-20% (5-6s): fade out
   20-100% (6-30s): hidden 
*/
@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    3.33% {
        opacity: 1;
        transform: scale(1.02);
    }

    16.66% {
        opacity: 1;
        transform: scale(1.08);
        /* Slow zoom effect */
    }

    20% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.hero-side-img-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -10px rgba(37, 99, 235, 0.35);
}

@media (max-width: 1024px) {
    .hero-side-img-box {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-side-img-box {
        display: none !important;
    }

    .hero-bg-container[style] {
        grid-template-columns: 1fr !important;
    }

    /* --- MOBILE REFINEMENTS --- */

    /* 1. Navbar Overrides */
    header.glass {
        padding: 12px 20px !important;
    }

    header .logo img {
        height: 45px !important;
    }

    .header-actions .mobile-toggle i {
        width: 22px !important;
        height: 22px !important;
    }

    .lang-selector {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    .lang-selector i {
        width: 14px !important;
        height: 14px !important;
    }

    /* 2. Hero Background */
    .hero-bg {
        background-position: 95% 65% !important;
        background-size: 250% !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 40px !important;
        scroll-margin-top: 0;
    }

    .hero-bg::before {
        background: rgba(255, 255, 255, 0.72) !important;
    }

    /* 6. Spacing */
    .hero-bg-container {
        padding: 60px 24px 0 !important;
    }

    .hero-bg .hero-content {
        padding: 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 3. Hero Text */
    .hero-bg .hero-content h1,
    .hero-bg .hero-headline {
        font-size: 32px !important;
        text-align: center !important;
    }

    .hero-bg .hero-content p,
    .hero-bg .hero-subtext {
        font-size: 15px !important;
        color: rgba(30, 30, 60, 0.85) !important;
        text-align: center !important;
    }

    /* 4. Hero Buttons */
    .hero-bg .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    /* 5. Stats Row */
    .hero-bg .hero-stats {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 0 !important;
        width: 100% !important;
        margin-top: 2.5rem !important;
    }

    .hero-bg .stat-item {
        flex: 1 1 0 !important;
        padding: 0 5px !important;
        text-align: center !important;
    }

    .hero-bg .stat-number {
        font-size: 24px !important;
    }

    .hero-bg .stat-item>div:last-child {
        font-size: 11px !important;
    }
}

/* Responsive Logo Classes */
.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) brightness(1.1);
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        /* appropriately scaled for mobile header */
    }
}

.mobile-overlay-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) brightness(1.1);
}

/* Premium UI Additions */
.btn-premium {
    background: #1e90ff;
    color: #ffffff !important;
    border: none;
    border-radius: 99px;
    padding: 0.85rem 1.8rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(30, 144, 255, 0.4);
    background: #187bcd;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-overlay-gradient {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    }

    .glass-card {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.6);
    }

    .hero-bg-container {
        padding-top: 3rem !important;
    }

    section {
        padding: 4rem 1.25rem !important;
    }
}

/* ---- HERO RESPONSIVENESS CUSTOM FIXES ---- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center;
    padding: 80px 20px 20px !important;
    background: linear-gradient(135deg, #eef3f8, #dfe9f3) !important;
    /* background-size removed */
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.hero-image {
    display: none !important;
}

@media (min-width: 768px) {
    .hero-image {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-content {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .hero-headline {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}