@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&display=swap');

:root {
    /* Colors */
    --primary: #0055ce;
    --primary-container: #2f6fed;
    --on-primary: #ffffff;
    --primary-fixed: #dae2ff;

    --surface: #f7f9ff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f0f4fc;
    --surface-container-high: #e4e8f0;
    --surface-variant: #dfe3eb;

    --on-surface: #171c22;
    --on-surface-variant: #424654;
    --outline-variant: rgba(194, 198, 215, 0.15);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(24px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-ambient: 0px 12px 32px rgba(10, 31, 68, 0.06);

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Responsive Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--on-surface);
    border-color: var(--outline-variant);
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-lg {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
}

.title-lg {
    font-size: 1.375rem;
}

.body-md {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

.label-md {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Layout Utilities */
.section-padding {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.container-max {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hide Legacy Elements */
.mobile_header,
.header_area,
.sticky_header_area,
.preloader-active,
.top_bar_moblie,
.elementor-shape,
.preloader,
.preloader-active,
.mobile_header_panel {
    display: none !important;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-ambient);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 20px 40px rgba(10, 31, 68, 0.1);
}

/* Base Utility for Cards */
.card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: var(--shadow-ambient) !important;
}

@media (max-width: 768px) {
    .card, .glass-panel, .glass-card {
        padding: 1.5rem !important;
    }
}

/* Modern Header */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 90px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-logo img {
    height: 48px;
    width: auto;
}

@media (max-width: 600px) {
    .modern-logo img {
        height: 36px;
    }
}

.modern-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.modern-nav-links a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.modern-nav-links a:hover {
    color: var(--primary);
    background: rgba(0, 85, 206, 0.05);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--on-surface);
}

/* Form Components */
.field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-wrapper label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
}

.modern-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--surface-container-low);
    border: 1px solid var(--surface-variant);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(0, 85, 206, 0.05);
}

textarea.modern-input {
    min-height: 150px;
    resize: vertical;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .full-width {
        grid-column: span 1;
    }
}

/* Buttons */
.btn-primary {
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--outline-variant);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

/* Hero Section */
.hero-modern {
    min-height: 90vh;
    /* Reduced from 100vh to fit more content on load */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    /* Tightened hero padding */
    background: radial-gradient(circle at 70% 30%, rgba(177, 197, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(0, 85, 206, 0.1) 0%, transparent 40%);
    overflow: hidden;
}

.hero-modern .container-max {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-ambient);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: white;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styling */
.modern-section {
    padding: 4rem 0;
    /* Restored professional padding for all sections */
    background: var(--surface);
    position: relative;
}

.modern-section-alt {
    background: var(--surface-container-low);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

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

/* Service Card */
.modern-service-card {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 85, 206, 0.08);
}

.modern-service-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Stats */
.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-ambient);
    margin: -60px auto 100px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-count {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    position: relative;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 85, 206, 0.3);
}

/* Modals & Carousels */
.modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.client-testimonial-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.client-testimonial-carousel .owl-item {
    padding: 1rem;
}

.client-testimonial-carousel .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer */
.modern-footer {
    background: white;
    padding: 80px 0 40px;
    border-top: 1px solid var(--outline-variant);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--on-surface);
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--on-surface-variant);
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--on-surface-variant);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .modern-nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-modern .container-max {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .stats-grid {
        margin: 40px auto;
        padding: 2.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .modern-section {
        padding: 3rem 0;
    }

    .display-lg {
        font-size: 2.25rem;
    }

    .stats-grid {
        padding: 2rem 1rem;
    }

    .stat-item {
        min-width: unset;
    }

    .stat-count {
        font-size: 2rem;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1rem;
    }

    .hero-modern {
        padding: 3rem 0;
    }

    .hero-content {
        padding: 0;
    }
    
    .modern-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Logo Marquee Animation */
.logo-marquee {
    overflow: hidden;
    padding: 2rem 0;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    width: fit-content;
    animation: scroll-left 40s linear infinite;
    gap: 4rem;
    align-items: center;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

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

.logo-track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Services Tabs Section */
.modern-services-tabs {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.services-nav {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.tab-item .tab-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-container-low);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-item .tab-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tab-item .tab-label {
    font-size: 1.1rem;
    font-weight: 700;
    flex-grow: 1;
}

.tab-item .tab-chevron {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tab-item:hover {
    background: var(--surface-container-low);
}

.tab-item.active {
    background: white;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    color: #059669;
}

.tab-item.active .tab-icon {
    background: #10b981;
    transform: scale(1.1);
}

.tab-item.active .tab-icon img {
    filter: brightness(0) invert(1);
}

.tab-item.active .tab-chevron {
    opacity: 1;
    transform: translateX(0);
}

.services-content {
    flex: 1;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
    background-size: 35px 35px;
    padding: 3.5rem;
    border-radius: 2.5rem;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.5s ease;
}

.services-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tab-pane .tag {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    width: fit-content;
    letter-spacing: 0.1em;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tab-pane h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.tab-pane h2 span {
    color: #10b981;
    font-style: italic;
}

.tab-pane p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .modern-services-tabs {
        flex-direction: column;
        gap: 3rem;
    }

    .services-nav {
        flex: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tab-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .tab-item .tab-chevron {
        display: none;
    }

    .services-content {
        min-height: auto;
    }

    .tab-pane {
        position: relative;
        transform: none;
        display: none;
    }

    .tab-pane.active {
        display: flex;
    }

    .tab-pane h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .services-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Specific Component Fixes */
.hero-floating-card {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 5;
    border: 1px solid rgba(0,0,0,0.05);
    animation: float 6s ease-in-out infinite;
}

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

@media (max-width: 1024px) {
    .hero-floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
        position: relative;
        margin-top: 2rem;
        animation: none;
    }
}