/* ========== CSS Custom Properties ========== */
:root {
    --color-primary: #1a2744;
    --color-primary-light: #2a3d66;
    --color-accent: #3b82f6;
    --color-accent-dark: #2563eb;
    --color-accent-light: #60a5fa;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-dark: #0f172a;
    --color-text-inverse: #f1f5f9;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
}

/* ========== Dark Mode ========== */
[data-theme="dark"] {
    --color-primary: #93b4f5;
    --color-primary-light: #a3c0f8;
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-dark: #020617;
    --color-text: #cbd5e1;
    --color-text-light: #94a3b8;
    --color-text-dark: #f1f5f9;
    --color-text-inverse: #f1f5f9;
    --color-border: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .logo,
[data-theme="dark"] .logo:hover,
[data-theme="dark"] .logo:focus {
    color: #f1f5f9;
}

[data-theme="dark"] .service-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

[data-theme="dark"] .partner-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

[data-theme="dark"] .process-number {
    background: var(--color-bg-alt);
}

[data-theme="dark"] .mobile-menu {
    background: var(--color-bg-alt);
}

[data-theme="dark"] .mobile-menu-overlay {
    background: rgba(0,0,0,0.7);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a:focus {
    background: var(--color-bg-alt);
}

[data-theme="dark"] .mobile-nav-links a:hover {
    background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .about-visual-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus {
    color: var(--color-accent-dark);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
}


/* ========== Skip to content (WCAG) ========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* ========== Container ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header / Navigation ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo:hover, .logo:focus {
    color: var(--color-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
}

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

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.938rem;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover, .nav-cta:focus {
    background: var(--color-accent-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    line-height: 1;
}

/* Header actions (theme toggle + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.05rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(15deg);
}

.theme-toggle-mobile {
    display: none;
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--color-border);
    color: #fbbf24;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-dark);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    color: var(--color-text-inverse);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-accent-light);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--color-accent-light);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-visual-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover, .btn-outline:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text-dark);
    border-color: var(--color-border);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ========== Section Common ========== */
.section {
    padding: 6rem 0;
    overflow: hidden;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-dark .section-header h2 {
    color: #fff;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.6);
}

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.938rem;
}

/* ========== Tech Stack ========== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.tech-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.tech-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-accent-light);
}

.tech-icon .fab, .tech-icon .fas {
    font-size: inherit;
}

.tech-name {
    font-size: 0.813rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
    overflow: hidden;
}

.about-visual-card {
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

.about-visual-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.about-visual-icon img {
    width: 100%;
    height: 100%;
}

.about-visual-card h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-visual-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.about-visual-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    z-index: -1;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-content p:last-of-type {
    margin-bottom: 2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.about-highlight i {
    color: var(--color-success);
    font-size: 1rem;
}

/* ========== Process ========== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.process-step h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 250px;
    margin: 0 auto;
}

/* ========== Partners ========== */
.section-header--spaced {
    margin-top: 3rem;
}

.subsection-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-grid--spaced {
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition);
}

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

.partner-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.partner-card p {
    color: var(--color-text-light);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.938rem;
}

.partner-link:hover, .partner-link:focus {
    color: var(--color-accent-dark);
}

.partner-link i {
    transition: transform var(--transition);
}

.partner-link:hover i {
    transform: translateX(4px);
}

/* ========== CTA ========== */
.cta-section {
    padding: 6rem 0;
    background: var(--color-bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    display: none;
}

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

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.btn-white {
    background: #fff;
    color: var(--color-text-dark);
    border-color: #fff;
}

.btn-white:hover, .btn-white:focus {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover, .btn-ghost:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer .logo,
.site-footer .logo:hover,
.site-footer .logo:focus {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.938rem;
    transition: color var(--transition);
}

.footer-links a:hover, .footer-links a:focus {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
    font-size: 1rem;
}

.footer-social a:hover, .footer-social a:focus {
    background: var(--color-accent);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========== Mobile Menu ========== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--color-bg);
    z-index: 1002;
    padding: 2rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 0.25rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.mobile-nav-links a:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger > :nth-child(1) { transition-delay: 0s; }
.stagger > :nth-child(2) { transition-delay: 0.08s; }
.stagger > :nth-child(3) { transition-delay: 0.16s; }
.stagger > :nth-child(4) { transition-delay: 0.24s; }
.stagger > :nth-child(5) { transition-delay: 0.32s; }
.stagger > :nth-child(6) { transition-delay: 0.4s; }
.stagger > :nth-child(7) { transition-delay: 0.48s; }
.stagger > :nth-child(8) { transition-delay: 0.56s; }
.stagger > :nth-child(9) { transition-delay: 0.64s; }
.stagger > :nth-child(n+10) { transition-delay: 0.72s; }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        display: none;
    }

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

    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

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

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

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

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

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .section-header {
        margin-bottom: 3rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .main-nav .theme-toggle {
        display: none;
    }

    .theme-toggle-mobile {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

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

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

    .partner-card {
        padding: 1.75rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .about-visual-accent {
        right: 0;
    }

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

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

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

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

    .header-inner {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
        min-width: 0;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

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

    .partner-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-visual-card {
        padding: 2rem;
    }

    .about-visual-accent {
        display: none;
    }
}

/* ========== Print styles ========== */
@media print {
    .site-header,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: none;
        color: #000;
    }

    .hero h1, .hero-description {
        color: #000;
    }

    .section-dark {
        background: none;
        color: #000;
    }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .slide-left,
    .slide-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition-delay: 0s !important;
    }
}
