:root {
    --bg-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    --brand-dark: #002e5a;
    --brand-primary: #1673d6;
    --brand-accent: #00b4d8;
    --brand-light: #e0f2fe;

    --font-sans: 'Outfit', sans-serif;
    --transition-snappy: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 40px rgba(0,0,0,0.03);
    overflow: hidden;
}

/* Glass Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 46, 90, 0.08);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.mobile-menu-container {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--brand-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-snappy);
    cursor: pointer;
    border: none;
}

.btn-outline {
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-dark);
    color: white;
}

.btn-solid {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(22, 115, 214, 0.3);
}

.btn-solid:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 46, 90, 0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--brand-primary);
}
.btn-white:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

/* Hero Section */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
    padding: 140px 5% 60px;
    gap: 40px;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(22, 115, 214, 0.05) 0%, white 50%);
}

.badge-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--brand-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 24px;
}

.hero-headline .highlight {
    color: var(--brand-primary);
    position: relative;
    display: inline-block;
}

.hero-headline .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -2%;
    width: 104%;
    height: 16px;
    background: var(--brand-accent);
    opacity: 0.2;
    z-index: -1;
    border-radius: 10px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.support-info .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-visual-side {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    overflow: visible; /* Changed from hidden so floating card is fully visible */
    box-shadow: 0 15px 40px rgba(0, 46, 90, 0.1);
    transition: var(--transition-snappy);
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 46, 90, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -10px; /* Moved to the right (was -30px) */
    background: white;
    padding: 15px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-light);
    color: var(--brand-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--brand-dark);
    font-weight: 800;
}

.stat-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Features Matrix */
.features-matrix {
    padding: 100px 5%;
    background: white;
}

.matrix-header {
    margin-bottom: 60px;
}

.matrix-header h2 {
    font-size: 3rem;
    color: var(--brand-dark);
    font-weight: 900;
}

.matrix-header p {
    font-size: 1.2rem;
    color: var(--brand-primary);
}

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

.matrix-item {
    background: var(--brand-light);
    padding: 50px 40px;
    border-radius: 30px;
    transition: var(--transition-snappy);
    border: 1px solid transparent;
}

.matrix-item:hover {
    background: white;
    border-color: var(--brand-light);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 46, 90, 0.05);
}

.item-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(22, 115, 214, 0.3);
}

.matrix-item h3 {
    font-size: 1.6rem;
    color: var(--brand-dark);
    margin-bottom: 12px;
    font-weight: 800;
}

.matrix-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Banner CTA */
.banner-cta {
    margin: 60px 5% 100px;
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    border-radius: 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 46, 90, 0.2);
}

.banner-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--brand-accent);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

/* Minimal Footer - Modern Light Design */
.minimal-footer {
    background: white;
    padding: 60px 5% 40px;
    color: var(--brand-dark);
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -15px 40px rgba(0, 46, 90, 0.05);
    margin-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 46, 90, 0.1);
    margin-bottom: 40px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.socials a:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(22, 115, 214, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.legal {
    display: flex;
    gap: 30px;
}

.legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.legal a:hover {
    color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}

@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 160px;
        text-align: center;
    }
    .hero-headline {
        font-size: 4rem;
    }
    .hero-desc {
        margin: 0 auto 40px;
    }
    .action-group {
        justify-content: center;
        flex-direction: column;
    }
    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        animation: none;
    }
    .image-wrapper {
        margin: 0 auto;
        transform: none;
    }
    .image-wrapper:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-action {
        display: none;
    }
    .glass-nav {
        justify-content: center;
    }
    .hero-headline {
        font-size: 3rem;
    }
    .banner-cta {
        padding: 60px 20px;
    }
    .banner-content h2 {
        font-size: 2rem;
    }
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Box Item Animations */
.box-item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
    animation: boxFadeUp 0.8s forwards;
}

.box-item:nth-child(1) { animation-delay: 0.2s; }
.box-item:nth-child(2) { animation-delay: 0.4s; }
.box-item:nth-child(3) { animation-delay: 0.6s; }

.box-item:hover {
    transform: translateX(10px) scale(1.02);
}

.box-item i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

@keyframes boxFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heartbeat Hover Animation */
.icon-heart-bump {
    display: inline-block;
    transition: transform 0.2s ease;
}

.icon-heart-bump:hover {
    animation: heartBumpAnim 1s infinite;
    cursor: pointer;
}

@keyframes heartBumpAnim {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1); }
}

/* Service Boxes */
.service-box {
    background: white;
    border: 2px solid var(--brand-primary);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: boxFadeUp 0.6s forwards;
    opacity: 0;
}

.service-box:nth-child(1) { animation-delay: 0.1s; }
.service-box:nth-child(2) { animation-delay: 0.2s; }
.service-box:nth-child(3) { animation-delay: 0.3s; }
.service-box:nth-child(4) { animation-delay: 0.4s; }
.service-box:nth-child(5) { animation-delay: 0.5s; }
.service-box:nth-child(6) { animation-delay: 0.6s; }

.service-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 25px rgba(22, 115, 214, 0.15);
    border-color: var(--brand-dark);
}

.service-box i {
    font-size: 2rem;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

.service-box:hover i {
    transform: scale(1.1);
}

.service-box h4 {
    color: var(--brand-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* Animated Blue Line */
@keyframes slideLeftRight {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

.animated-blue-line {
    width: 100%;
    height: 3px;
    background-color: var(--brand-primary);
    clip-path: polygon(0 50%, 15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%);
    animation: slideLeftRight 3s ease-in-out infinite;
}

/* --- Form Toggle Switch --- */
.form-toggle-wrapper {
      display: flex;
      position: relative;
      background: #f1f5f9;
      border-radius: 50px;
      width: 100%;
      max-width: 420px;
      margin: 0 auto 40px auto;
      padding: 6px;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .form-toggle-option {
      position: relative;
      z-index: 2;
      flex: 1;
      text-align: center;
      padding: 14px 10px;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-muted);
      cursor: pointer;
      border-radius: 40px;
      transition: color 0.3s ease;
      white-space: nowrap;
  }

.form-toggle-option.active {
    color: white;
}

.form-toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: var(--brand-primary);
    border-radius: 40px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(22, 115, 214, 0.3);
}

.form-toggle-wrapper[data-active="company"] .form-toggle-slider {
    transform: translateX(100%);
}

/* --- Display Helpers --- */
.mobile-only {
    display: none !important;
}

/* --- Mobile Responsive Overrides --- */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
    
    .image-wrapper.mobile-only {
        animation: float 6s ease-in-out infinite;
        margin-bottom: 30px !important; /* Reduced since the card no longer hangs below the image */
    }
    
    .image-wrapper.mobile-only .floating-card {
        left: 110px !important; /* Move even further to the right */
    }
    
    /* Hero Stats Section (index.html) */
    .stats-hero-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
    }
    .stats-text-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .desktop-spacer {
        display: none !important;
    }
    .stats-text-inner {
        display: flex !important;
        flex-direction: column !important;
    }
    .stats-number-wrapper {
        display: contents !important;
    }
    .stats-number-text {
        order: 1;
    }
    .stats-subtitle1 {
        order: 2;
    }
    .stats-icon-heart {
        order: 3;
    }
    .stats-subtitle2 {
        order: 4;
    }
    .stats-floating-boxes {
        order: 5;
        position: static !important;
        margin-top: 40px !important;
        width: 100% !important;
    }
    .stats-blue-box {
        width: 100% !important;
        max-width: 390px !important;
        height: auto !important;
    }
    .grey-bar-wrapper {
        height: auto !important;
        margin-bottom: 40px !important; /* Extra spacing to push down the next section safely */
    }
    .grey-bar-content {
        position: static !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
    
    /* Mobile Nav Menu Styles */
    .glass-nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 15px 5% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }
    .nav-menu, .nav-action {
        display: none !important;
    }
    .mobile-menu-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: white;
        border: 2px solid var(--brand-primary);
        border-radius: 50px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .hamburger-icon {
        color: var(--brand-primary);
        font-size: 1.5rem;
    }
    .close-icon {
        display: none !important;
        color: var(--brand-primary);
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .mobile-menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
        padding-bottom: 15px;
    }
    .mobile-menu-links a {
        text-decoration: none;
        color: var(--brand-dark);
        font-weight: 700;
        font-size: 1.2rem;
    }
    .mobile-menu-container.open {
        width: 200px;
        height: auto;
        border-radius: 20px;
        padding: 20px 10px;
        box-shadow: 0 10px 30px rgba(0, 46, 90, 0.2);
        position: absolute;
        top: 20px;
        right: 5%;
        z-index: 3000;
    }
    .mobile-menu-container.open .hamburger-icon {
        display: none !important;
    }
    .mobile-menu-container.open .close-icon {
        display: block !important;
    }
    .mobile-menu-container.open .mobile-menu-links {
        display: flex;
        animation: fadeIn 0.4s forwards;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* General Mobile Utility Classes */
    .mobile-stack {
        flex-direction: column !important;
        align-items: center !important;
    }
    .mobile-grid-1 {
        grid-template-columns: 1fr !important;
    }
    .mobile-100 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .mobile-center-text {
        text-align: center !important;
    }
    .mobile-wrap-text {
        white-space: normal !important;
    }
    .mobile-scale-h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    .mobile-scale-h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    .mobile-pad-reduce {
        padding: 40px 5% !important;
    }
    .mobile-hero-split {
        padding-top: 140px !important;
    }
    .mobile-gap-reduce {
        gap: 20px !important;
    }
    .mobile-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    .mobile-image-first {
        order: -1 !important;
    }
    
    /* Services Section (services.html) */
    .services-flex-row {
        flex-direction: column !important;
    }
    .services-three-icons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .toggle-line-2 {
        display: block;
    }
    .form-toggle-option {
        white-space: normal;
        line-height: 1.2;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .about-image-wrapper {
        animation: none !important;
    }
    .about-floating-card {
        padding: 10px 20px !important;
        width: max-content !important;
        border-radius: 15px !important;
        animation: float 6s ease-in-out infinite !important;
        left: -20px !important;
    }
}
