/* ============================================
   System-aware dark/light theme
   ============================================ */

@font-face {
    font-family: "Audiowide";
    src: local("Audiowide Regular"), url("/fonts/Audiowide-Regular.woff2") format("woff2"), url("/fonts/Audiowide-Regular.woff") format("woff"), url("/fonts/Audiowide-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Gotham";
    src: local("Gotham Book"), url("/fonts/GothamBook.woff2") format("woff2"), url("/fonts/GothamBook.woff") format("woff"), url("/fonts/GothamBook.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Gotham";
    src: local("Gotham Bold"), url("/fonts/GothamBook.woff2") format("woff2"), url("/fonts/GothamBold.woff") format("woff"), url("/fonts/GothamBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Inter";
    src: local("Inter"), url("https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: local("Inter Medium"), url("https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fAZ9hiJ-Ek-_EeA.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: local("Inter SemiBold"), url("https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hiJ-Ek-_EeA.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: local("Inter Bold"), url("https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuFuYAZ9hiJ-Ek-_EeA.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.font-audiowide {
    font-family: "Audiowide", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.font-gotham {
    font-family: "Gotham", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.font-400 {
    font-weight: 400;
}

.font-700 {
    font-weight: 700;
}

/* ============================================
   Dark Theme (Default)
   ============================================ */

:root {
    /* Core Colors */
    --color-bg: #1a1a1a;
    --color-bg-alt: #242424;
    --color-bg-elevated: #2a2a2a;
    --color-bg-hero: linear-gradient(135deg, #1a1a1a 0%, #242424 50%, #2a2a2a 100%);

    /* Text Colors */
    --color-text: #f4f4f4;
    --color-text-soft: #b8b8b8;
    --color-text-muted: #888888;

    /* Brand Colors - Lighter variants for dark mode */
    --color-brand-blue: #8892b8;
    --color-brand-blue-light: #9aa3c4;
    --color-brand-blue-dark: #6e7a9e;
    --color-brand-grey: #b8b8b8;
    --color-brand-grey-light: #d0d0d0;

    /* Accent Colors - Brand blue stays vibrant in dark */
    --color-accent: #8892b8;
    --color-accent-hover: #9aa3c4;
    --color-purple: #8892b8;
    --color-magenta: #9aa3c4;
    --color-cyan: #a8b0cc;
    --color-primary: #8892b8;

    /* Borders & Shadows */
    --color-border: #3a3a3a;
    --color-border-light: #2a2a2a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .4);
    --shadow-glow: 0 0 60px rgba(94, 106, 153, .3);

    /* Card specific */
    --card-bg: #242424;
    --card-border: #3a3a3a;
    --card-hover-border: rgba(136, 146, 184, .6);
    --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, .4);

    /* Navbar - dark with subtle brand tint */
    --navbar-bg: rgba(20, 20, 24, .95);
    --navbar-border: rgba(136, 146, 184, .15);

    /* Footer */
    --footer-bg: #202020;
    --footer-text: #e8e8e8;

    /* Radii & Transitions */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: .15s cubic-bezier(.4, .0, .2, 1);
    --transition-base: .25s cubic-bezier(.4, .0, .2, 1);
    --transition-slow: .4s cubic-bezier(.4, .0, .2, 1);

    /* Animation */
    --anim-duration: .9s;
    --anim-ease: cubic-bezier(.4, .0, .2, 1);
    --anim-delay-step: .08s;

    /* Technology icon theming */
    --tech-icon-filter: saturate(.74) brightness(.88);
    --tech-icon-opacity: .78;
    --tech-icon-hover-filter: saturate(.95) brightness(.98);
    --tech-icon-hover-opacity: 1;
}

/* ============================================
   Light Theme (System Preference)
   ============================================ */

@media (prefers-color-scheme: light) {
    :root {
        /* Core Colors */
        --color-bg: #ffffff;
        --color-bg-alt: #f7f8fa;
        --color-bg-elevated: #ffffff;
        --color-bg-hero: linear-gradient(135deg, #ffffff 0%, #f7f8fa 50%, #eef0f4 100%);

        /* Text Colors */
        --color-text: #27282c;
        --color-text-soft: #525150;
        --color-text-muted: #7a7978;

        /* Brand Colors */
        --color-brand-blue: #5E6A99;
        --color-brand-blue-light: #7a85ad;
        --color-brand-blue-dark: #4a5579;
        --color-brand-grey: #525150;
        --color-brand-grey-light: #6e6d6c;

        /* Accent Colors - Brand aligned */
        --color-accent: #5E6A99;
        --color-accent-hover: #4a5579;
        --color-purple: #5E6A99;
        --color-magenta: #7a85ad;
        --color-cyan: #8892b8;
        --color-primary: #5E6A99;

        /* Borders & Shadows */
        --color-border: #e0e2e8;
        --color-border-light: #eef0f4;
        --shadow-sm: 0 1px 2px rgba(82, 81, 80, .04);
        --shadow-md: 0 4px 16px rgba(82, 81, 80, .08);
        --shadow-lg: 0 12px 40px rgba(82, 81, 80, .12);
        --shadow-glow: 0 0 40px rgba(94, 106, 153, .2);

        /* Card specific */
        --card-bg: #ffffff;
        --card-border: #e0e2e8;
        --card-hover-border: rgba(94, 106, 153, .5);
        --card-hover-shadow: 0 8px 32px rgba(94, 106, 153, .15);

        /* Navbar - subtle brand tint */
        --navbar-bg: rgba(250, 251, 253, .92);
        --navbar-border: rgba(94, 106, 153, .1);

        /* Footer */
        --footer-bg: #27282c;
        --footer-text: #e8e8e8;

        /* Technology icon theming */
        --tech-icon-filter: saturate(.82) brightness(.93);
        --tech-icon-opacity: .76;
        --tech-icon-hover-filter: saturate(.95) brightness(.98);
        --tech-icon-hover-opacity: 1;
    }
}

/* ============================================
   Base Styles
   ============================================ */

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 56px;
    scroll-behavior: smooth;
    background: var(--color-bg);
    color: var(--color-text);
    max-width: 100%;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {

    html,
    body {
        padding-top: 52px;
    }
}

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

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

main.main-content {
    display: block;
}

/* Emoji icons - ensure proper rendering across all browsers */
.service-icon,
.why-icon,
.process-step-icon {
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg,
.why-icon svg,
.process-step-icon svg {
    stroke: var(--color-purple);
    transition: stroke var(--transition-base), transform var(--transition-base);
}

.service-card:hover .service-icon svg,
.why-card:hover .why-icon svg,
.process-step:hover .process-step-icon svg {
    stroke: var(--color-brand-blue);
    transform: scale(1.1);
}

/* Universal box sizing to avoid layout overflow from padding+width calculations */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Responsive images safeguard */
img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-brand-blue);
    text-decoration: none !important;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-brand-blue-dark);
    text-decoration: none !important;
}

h1:focus {
    outline: none;
}


/* ============================================
   CTA Buttons - Brand Style
   ============================================ */

.btn-cta {
    background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-blue-dark) 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 20px rgba(94, 106, 153, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    outline: none;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(94, 106, 153, 0.4);
    filter: brightness(1.08);
}

.btn-cta:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 3px;
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta.large {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.btn-cta.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    cursor: pointer;
}

.btn-cta-secondary:hover {
    border-color: var(--color-brand-blue);
    background: rgba(94, 106, 153, .08);
    color: var(--color-brand-blue);
}

.btn-cta-secondary:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 3px;
}

.btn-cta-secondary.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

a.service-card {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-dark));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.service-card>p {
    color: var(--color-text-soft);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    flex: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features li {
    padding: 0.375rem 0.875rem;
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.8125rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-purple);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: auto;
    transition: gap var(--transition-fast);
}

.service-card-link:hover {
    gap: 0.625rem;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link svg {
    transform: translateX(4px);
}

/* ============================================
   Why Choose Section - Feature Cards
   ============================================ */

.why-choose-section {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--card-border);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.why-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.why-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.why-card p {
    color: var(--color-text-soft);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

/* Why Choose grid responsive */
@media (max-width: 1100px) and (min-width: 600px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Technologies Section - Tag Cloud
   ============================================ */

.technologies-section {
    padding: 6rem 0;
    background: var(--color-bg);
}


.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0;
}


.tech-tag {
    background: var(--card-bg);
    color: var(--color-text);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid var(--card-border);
    cursor: default;
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: max-content;
    flex: 0 0 auto;
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(94, 106, 153, 0.35);
}


.tech-category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    align-items: center;
    text-align: center;
    transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.tech-category-card:hover {
    box-shadow: 0 6px 24px rgba(94, 106, 153, 0.18);
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
}

.tech-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 6rem 0;
    background: var(--color-bg-alt);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--color-text-soft);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Modal
   ============================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    width: min(560px, 92%);
    max-width: 98vw;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1010;
    border: 1px solid var(--card-border);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-height: none;
    height: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text-soft);
}

.close-btn:hover {
    color: var(--color-accent);
}

.modal-body {
    padding: 1.3rem 1.5rem 1.4rem;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--color-text-soft);
    overflow: visible;
    flex: 0 1 auto;
    padding-bottom: 0 !important;
}

.modal-body p {
    margin: 0 0 .8rem 0;
}

.modal-footer {
    padding: 0;
    border: none;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.modal-body>.modal-footer {
    margin-bottom: 0 !important;
}

/* ============================================
   Reveal Animations - Enhanced
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--anim-ease), transform 0.7s var(--anim-ease);
    will-change: opacity, transform;
}

.reveal.fade-in {
    opacity: 0;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.scale {
    transform: scale(0.92);
}

.reveal.scale.is-visible {
    transform: scale(1);
}

.reveal.slide-left {
    transform: translateX(48px);
}

.reveal.slide-left.is-visible {
    transform: translateX(0);
}

.reveal.slide-right {
    transform: translateX(-48px);
}

.reveal.slide-right.is-visible {
    transform: translateX(0);
}

/* Staggered animations */

.stagger-parent>.reveal {
    transition-delay: var(--delay, 0s);
}

.stagger-parent>.reveal:nth-child(1) {
    --delay: 0s;
}

.stagger-parent>.reveal:nth-child(2) {
    --delay: 0.1s;
}

.stagger-parent>.reveal:nth-child(3) {
    --delay: 0.2s;
}

.stagger-parent>.reveal:nth-child(4) {
    --delay: 0.3s;
}

.stagger-parent>.reveal:nth-child(5) {
    --delay: 0.4s;
}

.stagger-parent>.reveal:nth-child(6) {
    --delay: 0.5s;
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.scale,
    .reveal.slide-left,
    .reveal.slide-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .animated-gradient,
    .floating,
    .hero-bg-gradient::before {
        animation: none !important;
    }
}

/* ============================================
   Micro-interactions
   ============================================ */

.floating {
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {

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

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

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientMove 12s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Focus states for accessibility */

.reveal:focus-visible,
.btn-cta:focus-visible,
.service-card:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 4px;
}

/* Animated heading underline */

.animate-heading {
    position: relative;
    display: inline-block;
}

.animate-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-grey));
    border-radius: 3px;
    transition: width 0.65s var(--anim-ease) 0.15s;
}

.reveal.is-visible .animate-heading::after,
.animate-heading.is-visible::after {
    width: 100%;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-section,
    .why-choose-section,
    .technologies-section,
    .cta-section {
        padding: 4rem 0;
    }

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

    .cta-content h2 {
        font-size: 1.875rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .tech-categories {
        gap: 0.5rem;
    }

}

/* Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ7IDI1OS43ODUgODcuMzAwNSAyNTkuNzg2IDg5Ljc5MjEgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA4OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================
   Contact Form
   ============================================ */

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(94, 106, 153, 0.2);
}

.form-control::placeholder {
    color: var(--color-text-soft);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.status {
    font-size: 0.8125rem;
    color: var(--color-text-soft);
    padding-right: 1rem;
}

.btn-cta[type="submit"] {
    margin-bottom: 1rem;
}


/* ============================================
   Process Strip Section
   ============================================ */

.process-strip {
    background: var(--color-bg-alt);
    padding: 4rem 0;
    text-align: center;
}

.process-strip-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.process-strip-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.process-strip-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Timeline connector line */

.process-steps::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    z-index: 0;
}

.process-step {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.process-step:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.process-step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.process-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.process-step-desc {
    color: var(--color-text-soft);
    font-size: 0.875rem;
    line-height: 1.55;
}

/* ============================================
   Service Technologies Section
   ============================================ */

.tech-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    justify-content: center;
    margin: 2.5rem 0 0 0;
}

.tech-category-group {
    min-width: 220px;
    max-width: 340px;
    margin: 0 0 2.5rem 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
    background: none;
    border: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .tech-categories-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .tech-category-group {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .process-steps::before {
        display: none;
    }
}

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

/* ============================================
   Service Pages - Shared Styles
   ============================================ */

/* Service page content sections */
.service-content-section {
    padding: 5rem 0;
}

.service-content-section:nth-child(even) {
    background: var(--color-bg-alt);
}

.service-content-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.service-content-section p {
    color: var(--color-text-soft);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
}

.service-feature-list li::before {
    content: "✓";
    color: var(--color-brand-blue);
    font-weight: 700;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(94, 106, 153, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
}

.service-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-benefit-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: all var(--transition-base);
}

.service-benefit-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.service-benefit-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-benefit-card p {
    color: var(--color-text-soft);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.service-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-dark));
    text-align: center;
}

.service-cta h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.service-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta .btn-cta {
    background: #fff;
    color: var(--color-brand-blue);
}

.service-cta .btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive service pages */

@media (max-width: 768px) {
    .service-content-section {
        padding: 3.5rem 0;
    }

    .service-content-section h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Legal Pages (Privacy Policy, Terms of Service)
   ============================================ */

.legal-page {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

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

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.legal-effective-date {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    margin-bottom: 1rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--color-text-soft);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    color: var(--color-text-soft);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section li strong {
    color: var(--color-text);
    font-weight: 600;
}

.legal-section a {
    color: var(--color-brand-blue);
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--color-brand-blue-light);
    text-decoration: underline;
}

.legal-contact {
    background: var(--color-bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-style: normal;
    margin-top: 1rem;
    line-height: 1.75;
}

.legal-contact strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Smooth scroll for anchor links (cookies section) */
html {
    scroll-behavior: smooth;
}

/* Target highlight for anchor navigation */
.legal-section:target {
    animation: highlightSection 2s ease-out;
}

@keyframes highlightSection {
    0% {
        background: rgba(136, 146, 184, 0.15);
        border-radius: var(--radius-md);
        margin: -1rem;
        padding: 1rem;
    }

    100% {
        background: transparent;
        margin: 0;
        padding: 0;
    }
}

/* Responsive adjustments for legal pages */

@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 0 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section h3 {
        font-size: 1.0625rem;
    }

    .legal-contact {
        padding: 1.25rem;
    }
}
