/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #136dec;
    --primary-dark: #0f55b8;
    --accent-yellow: #FFD700;
    --bg-light: #f6f7f8;
    --bg-dark: #101822;
    --text-light: #f6f7f8;
    --text-dark: #0f172a;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;
    --white: #ffffff;
    --black: #000000;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 6rem;
    --section-padding-mobile: 3rem;
    --grid-gap: 2rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 2rem;
    --radius-3xl: 2.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-header: 50;
}

/* ===== Dark Mode Variables ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #101822;
        --text-light: #f6f7f8;
    }
}

[data-theme="dark"] {
    --bg-light: #101822;
    --text-light: #f6f7f8;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode body */
.dark body {
    color: var(--text-light);
    background-color: var(--bg-dark);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===== Layout ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.app-container {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background-color: var(--white);
    padding: 5rem 0;
    overflow: hidden;
}

.dark .hero-section {
    background-color: var(--bg-dark);
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 8rem 0;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background-color: rgba(19, 109, 236, 0.05);
    border-radius: 50%;
    filter: blur(128px);
    transform: translate(25%, -25%);
}

.hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        gap: 4rem;
    }
}

.hero-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(19, 109, 236, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-badge .material-symbols-outlined {
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

@media (max-width: 648px) {
    .hero-badge {
        margin-top: 5%;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.dark .hero-title {
    color: var(--white);
}

.highlight {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.hero-description {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.dark .hero-description {
    color: var(--gray-400);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(19, 109, 236, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.btn-primary:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--text-dark);
}

.dark .btn-secondary {
    background-color: var(--gray-800);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
}

.dark .btn-secondary:hover {
    background-color: var(--gray-700);
}

/* Hero Image */
.hero-image-wrapper {
    flex: 1;
    width: 100%;
    max-width: 600px;
}

.hero-image-container {
    position: relative;
}

.image-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(19, 109, 236, 0.2), rgba(255, 215, 0, 0.2));
    border-radius: var(--radius-2xl);
    filter: blur(24px);
    opacity: 0.5;
    transition: opacity 1s ease;
}

.hero-image-container:hover .image-glow {
    opacity: 1;
}

.image-frame {
    position: relative;
    background-color: var(--gray-100);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-xl);
}

.dark .image-frame {
    background-color: var(--gray-800);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Services Section ===== */
.services-section {
    background-color: var(--gray-50);
    padding: var(--section-padding-mobile) 0;
}

.dark .services-section {
    background-color: rgba(30, 41, 59, 0.5);
}

@media (min-width: 768px) {
    .services-section {
        padding: var(--section-padding) 0;
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.dark .section-title {
    color: var(--white);
}

.section-description {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-top: 1rem;
    max-width: 36rem;
}

.dark .section-description {
    color: var(--gray-400);
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.view-all-link:hover {
    gap: 0.75rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        margin-bottom: 3rem;
        width: calc(100% + 3rem);
        /* Negating container padding */
        margin-left: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 0;
    }
}

.service-card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.dark .service-card {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(19, 109, 236, 0.1);
    color: var(--primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.card-icon .material-symbols-outlined {
    font-size: 2rem;
}

.card-title {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.dark .card-title {
    color: var(--white);
}

.card-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dark .card-description {
    color: var(--gray-400);
}

.card-arrow {
    color: var(--gray-300);
    transition: var(--transition-base);
}

.dark .card-arrow {
    color: var(--gray-600);
}

.service-card:hover .card-arrow {
    color: var(--primary);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: var(--section-padding-mobile) 0;
    background-color: var(--white);
}

.dark .stats-section {
    background-color: var(--bg-dark);
}

@media (min-width: 768px) {
    .stats-section {
        padding: var(--section-padding) 0;
    }
}

.stats-container {
    background-color: var(--primary);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    padding: 3rem;
    position: relative;
}

@media (min-width: 1024px) {
    .stats-container {
        padding: 5rem;
    }
}

.stats-background-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.stats-background-icon .material-symbols-outlined {
    font-size: 300px;
    line-height: 1;
}

.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.stats-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}



@media (min-width: 1024px) {
    .stats-title {
        font-size: 3rem;
    }
}

.features-list {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-check {
    background-color: var(--accent-yellow);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-check .material-symbols-outlined {
    font-size: 1.25rem;
}

.feature-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.stats-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    color: var(--accent-yellow);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== Mobile Adjustments for Stats ===== */
@media (max-width: 460px) {
    .stats-container {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-xl);
    }

    .stats-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stats-numbers {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-box {
        padding: 1rem 0.5rem;
        border-radius: var(--radius-lg);
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .features-list {
        gap: 0.8rem;
    }

    .feature-check {
        padding: 0.15rem;
    }

    .feature-check .material-symbols-outlined {
        font-size: 1rem;
    }

    .feature-title {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }

    .feature-description {
        font-size: 0.8rem;
    }
}


/* ===== Print Styles ===== */
@media print {

    .site-header,
    .newsletter-form,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }
}