/* ========================================
   THINKERS GK — Design System
   Clean minimal + Dark/Light mode
   ======================================== */

/* --- Light Theme (Default) --- */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fb;
    --color-bg-elevated: #ffffff;
    --color-text: #111827;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #eff6ff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-card-bg: #ffffff;
    --color-nav-bg: rgba(255,255,255,0.85);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --max-w: 1120px;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --color-bg: #0f1117;
    --color-bg-alt: #161822;
    --color-bg-elevated: #1c1e2d;
    --color-text: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-accent-light: rgba(59,130,246,0.12);
    --color-border: #2a2d3a;
    --color-border-light: #1f2233;
    --color-card-bg: #161822;
    --color-nav-bg: rgba(15,17,23,0.85);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}


/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    background: var(--color-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav.scrolled {
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-text);
}
.logo-text {
    font-family: 'Inter', sans-serif; /* Using Inter font as specified in CLAUDE.md */
    font-size: 1.8rem; /* Adjust as needed */
    font-weight: 700;
    color: var(--color-text); /* Use main text color */
    letter-spacing: -0.05em;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.logo-text span.gk {
    font-size: 0.9em; /* Smaller for GK */
    font-weight: 500;
    margin-left: 0.2em;
    color: var(--color-text-secondary); /* A subtle secondary color */
}

.nav-brand .logo-text {
    font-size: 1.6rem; /* Slightly smaller for nav */
}

.footer-brand .logo-text {
    font-size: 1.4rem; /* Even smaller for footer */
}

.nav-logo {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand .nav-logo {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain;
}


.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-menu a {
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--color-text-secondary);
        transition: var(--transition);
        position: relative; /* For the underline effect */
        overflow: hidden; /* Hide the initial underline */
    }
    
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px; /* Underline thickness */
        background-color: var(--color-accent); /* Underline color */
        transform: translateX(-101%); /* Start off-screen to the left */
        transition: transform 0.3s ease-out; /* Animation for the underline */
    }
    
    .nav-menu a:hover {
        color: var(--color-text);
    }
    
    .nav-menu a:hover::after {
        transform: translateX(0); /* Slide in from left */
    }

/* Nav utility buttons (theme + lang toggle) */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-util-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-util-btn:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.nav-util-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; border-radius: 6px; }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

    .btn-ghost:hover {
        background: var(--color-bg-alt);
        color: var(--color-text);
        border-color: var(--color-text-muted);
        transform: translateY(-1px);
    }


/* ========================================
   HERO (with particle network background)
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
    animation: heroBackgroundPulse 10s ease-in-out infinite alternate;
}

/* Canvas-based particle network — single canvas (service pages) */
#particleCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* Dual particle canvases — left & right flanking text */
.particle-side {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    /* calc: half the viewport minus half the text container (720/2=360) minus gap (40px) */
    width: calc(50% - 400px);
    min-width: 120px;
}
.particle-left {
    left: 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 90%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 90%);
}
.particle-right {
    right: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 90%);
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 90%);
}
@media (max-width: 1200px) {
    .particle-side {
        display: none;
    }
}

/* Video background — fallback if video is used instead */
.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.15;
}

[data-theme="dark"] .hero-video-bg { opacity: 0.08; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 30%, transparent 70%, var(--color-bg) 100%);
    z-index: 1;
    pointer-events: none;
    animation: subtleFloat 8s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

/* Hero staggered animations */
.hero-badge,
.hero h1,
.hero-sub,
.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease both;
}

.hero-content {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    animation: heroContentFadeIn 1s ease 0.1s both, heroContentMovement 6s ease-in-out infinite alternate;
}

.hero-badge { animation-delay: 0.2s; }
.hero h1 { animation-delay: 0.4s; }
.hero-sub { animation-delay: 0.6s; }
.hero-actions { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); } /* Increased movement */
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-text);
}

.text-accent { color: var(--color-accent); }

/* Hero character-by-character animation */\
.hero-title-animated {
    opacity: 0;
    animation: textGlow 1.5s infinite alternate;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(5deg);
    animation: charPopIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes charPopIn {
    from { opacity: 0; transform: translateY(20px) rotate(5deg) scale(0.8); }
    to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px var(--color-accent-light), 0 0 15px var(--color-accent); } /* Increased initial glow */
    100% { text-shadow: 0 0 25px var(--color-accent), 0 0 35px var(--color-accent-hover), 0 0 45px rgba(var(--color-accent), 0.3); } /* Increased peak glow and opacity */
}

@keyframes subtleFloat {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.005) rotateZ(0.2deg); } /* More translateY and subtle rotation, and scale */
    100% { transform: translateY(0px) scale(1); }
}

@keyframes subtleShine {
    0% { background-position: 200% 0%; }
    100% { background-position: -200% 0%; }
}

@keyframes heroBackgroundPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; } /* Slightly larger scale */
    100% { transform: scale(1); opacity: 1; }
}

@keyframes heroContentMovement {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.01); } /* Increased translateY and subtle scale */
    100% { transform: translateY(0) scale(1); }
}

@keyframes cardBreathing {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.005); } /* Added subtle scale */
    100% { transform: translateY(0) scale(1); }
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.1875rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ========================================
   LOGO BAR (Technology Partners)
   ======================================== */
.logo-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border-light);
    overflow: hidden;
}

.logo-bar-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.logo-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: logoScroll 30s linear infinite;
    width: max-content;
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

    .logo-item:hover { opacity: 1; transform: scale(1.03); }

.logo-item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}


/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: 64px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}


/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--color-text);
}


/* ========================================
   CARDS (Services Grid)
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 32px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

    .card:hover {
        border-color: var(--color-accent);
        box-shadow: 0 16px 40px rgba(0,0,0,0.12); /* Enhanced shadow */
        transform: translateY(-8px) scale(1.02) rotateZ(0.75deg); /* More pronounced lift and rotation */
    }

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .card:hover .card-icon {
        background: var(--color-accent);
        color: #fff;
        transform: scale(1.15); /* Slightly more scale */
        box-shadow: 0 0 0 8px rgba(var(--color-accent), 0.2); /* Subtle pulse shadow */
    }

.card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}


/* ========================================
   FEATURES (Why Us)
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.4;
    line-height: 1;
    min-width: 36px;
    padding-top: 2px;
    transition: opacity 0.3s ease;
}

.feature:hover .feature-num { opacity: 1; }

.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }

.feature p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ========================================
   CTA
   ======================================== */
.cta-section { padding-bottom: 120px; }

.cta-box {
    text-align: center;
    padding: 64px 48px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover), var(--color-accent));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.65;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--color-border);
}

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

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}


/* ========================================
   GLOBE SECTION — Static Image
   ======================================== */
.globe-section {
    position: relative;
    overflow: hidden;
    height: 700px;
    background: #0f1117;
}

[data-theme="light"] .globe-section,
:root:not([data-theme="dark"]) .globe-section {
    background: #eef2ff;
}

/* Image container — flush to the extreme right */
.globe-image-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.globe-image {
    display: block;
    max-height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Fade edges so the image blends into the section background.
   Uses a mask-image with gradients: fade left edge, fade top/bottom edges */
.globe-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, #0f1117 0%, transparent 25%),
                linear-gradient(to bottom, #0f1117 0%, transparent 15%),
                linear-gradient(to top, #0f1117 0%, transparent 15%);
}

[data-theme="light"] .globe-image-container::after,
:root:not([data-theme="dark"]) .globe-image-container::after {
    background: linear-gradient(to right, #eef2ff 0%, transparent 25%),
                linear-gradient(to bottom, #eef2ff 0%, transparent 15%),
                linear-gradient(to top, #eef2ff 0%, transparent 15%);
}

/* Floating coverage card — left side */
.globe-overlay-card {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    z-index: 2;
    padding: 28px 32px;
    background: rgba(15, 17, 23, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 14px;
    color: #e5e7eb;
    max-width: 240px;
}

[data-theme="light"] .globe-overlay-card,
:root:not([data-theme="dark"]) .globe-overlay-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: #1e293b;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.globe-overlay-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    opacity: 0.9;
}

.coverage-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: coverage-num;
}

.coverage-overlay-list li {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 4px 0;
    line-height: 1.6;
}

.coverage-overlay-list li::before {
    counter-increment: coverage-num;
    content: counter(coverage-num) ". ";
    font-weight: 400;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .globe-section { height: 500px; }
    .globe-image-container { width: 75%; right: -20px; }
    .globe-overlay-card { left: 16px; padding: 18px 22px; max-width: 180px; }
    .globe-overlay-card h3 { font-size: 0.8125rem; }
    .coverage-overlay-list li { font-size: 0.8125rem; }
}

/* Coverage list inside map section */
.coverage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coverage-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.coverage-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .japan-map-inner { grid-template-columns: 1fr; }
    .japan-map-container { max-width: 280px; }
}


/* ========================================
   SERVICE CARDS (clickable, link to pages)
   ======================================== */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link .card {
    cursor: pointer;
    position: relative;
}

.card-link .card::after {
    content: '\2192';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-4px);
}

    .card-link .card:hover::after {
        opacity: 1;
        transform: translateX(4px); /* Arrow slides further */
        color: var(--color-accent);
    }


/* ========================================
   INDIVIDUAL SERVICE PAGE
   ======================================== */
.service-page-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Particle canvas — right side only on service pages */
.service-page-hero #particleCanvas {
    left: auto;
    right: -5%;
    width: 45%;
}

.service-page-hero .hero-overlay {
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 50%, var(--color-bg) 100%);
}

/* Text content — left side */
.service-page-hero .container {
    max-width: 50%;
    margin-left: 5%;
    margin-right: auto;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.service-hero-content .section-label { margin-bottom: 12px; }

.service-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.service-hero-content p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .service-page-hero #particleCanvas {
        width: 100%;
        left: 0;
        opacity: 0.3;
    }
    .service-page-hero .container {
        max-width: 100%;
        margin-left: auto;
    }
}

/* Feature blocks on service pages */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.service-feature-card {
    padding: 28px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

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

.service-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-feature-card h3 svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.service-feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Testimonial / quote block */
.testimonial-block {
    padding: 48px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    margin: 64px 0;
}

.testimonial-block::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 32px;
    font-size: 5rem;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-block p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 16px;
}

.testimonial-block .author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    font-style: normal;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.process-step {
    text-align: center;
    padding: 24px;
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: var(--transition);
}

.back-link:hover { opacity: 0.7; }

/* Service page link (in headings on services.html) */
.service-page-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    padding-bottom: 2px;
}

.service-page-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Image placeholder (for service pages) */
.service-img-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-bg-alt));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.service-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-img-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    opacity: 0.3;
}

/* Service hero illustration (SVG-based) */
.service-hero-illustration {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    opacity: 0.06;
    pointer-events: none;
}

[data-theme="dark"] .service-hero-illustration {
    opacity: 0.04;
}

@media (max-width: 768px) {
    .service-hero-illustration { display: none; }
}

/* Service page content layout with sidebar */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.service-sidebar-card {
    padding: 28px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.service-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-sidebar-card ul {
    list-style: none;
}

.service-sidebar-card ul li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.service-sidebar-card ul li:last-child {
    border-bottom: none;
}

.service-sidebar-card ul li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }
    .service-sidebar {
        position: static;
    }
}

/* Related Services Section */
.related-services {
    padding: 64px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
}

.related-services .section-title {
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-grid .card-link .card {
    min-height: 180px;
}

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

@media (max-width: 768px) {
    .service-features { grid-template-columns: 1fr; }
    .testimonial-block { padding: 32px 24px; }
}


/* ========================================
   ILLUSTRATION BANNER
   ======================================== */
.illustration-banner {
    padding: 48px 0;
    background: var(--color-bg);
}

.illustration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.illustration-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    background: var(--color-card-bg);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

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

.illustration-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.illustration-label {
    padding: 16px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    background: var(--color-card-bg);
}

@media (max-width: 768px) {
    .illustration-grid {
        grid-template-columns: 1fr;
    }
    .illustration-card img {
        height: 180px;
    }
}


/* ========================================
   HERO BACKGROUND PHOTOS
   ======================================== */
.hero-bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

[data-theme="dark"] .hero-bg-photo {
    opacity: 0.12;
}

.has-hero-bg .container {
    position: relative;
    z-index: 2;
}

.has-hero-bg .color-pulse-bg,
.has-hero-bg .hero-overlay {
    z-index: 1;
}

.has-hero-bg canvas {
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-bg-photo {
        opacity: 0.1;
    }
}


/* ========================================
   ABOUT PAGE TEAM PHOTO
   ======================================== */
.about-team-photo {
    margin: 32px 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-team-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ========================================
   CONTACT PAGE PHOTO
   ======================================== */
.contact-photo {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
}


/* ========================================
   SERVICE DETAIL PHOTO (services listing)
   ======================================== */
.service-detail-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-detail-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .service-detail-photo {
        height: 160px;
    }
}


/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stats-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: 0.3s ease;
    }

    .nav-menu.open { transform: translateY(0); opacity: 1; }

    .nav-utils {
        position: absolute;
        right: 56px;
        top: 50%;
        transform: translateY(-50%);
    }

    .cards-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .hero { padding: 120px 0 72px; }
    .section { padding: 64px 0; }

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

    .btn { width: 100%; max-width: 280px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-box { padding: 40px 24px; }

    .stats-grid { gap: 24px; }
    .stat-number { font-size: 2rem; }

    .logo-track { gap: 32px; }
}

.card.fade-in-up {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cardBreathing 4s ease-in-out infinite alternate;
}

.illustration-card.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.stat-item.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.feature.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .card { padding: 24px; }
    .feature { padding: 20px; }
}


/* ========================================
   PAGE-SPECIFIC: Services
   ======================================== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .color-pulse-bg,
.service-page-hero .color-pulse-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.28;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4, #2563eb, #8b5cf6, #0ea5e9);
    background-size: 400% 400%;
    animation: colorPulse 10s ease infinite;
    pointer-events: none;
}

[data-theme="dark"] .page-header .color-pulse-bg,
[data-theme="dark"] .service-page-hero .color-pulse-bg {
    opacity: 0.35;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6, #a78bfa, #22d3ee);
    background-size: 400% 400%;
}

.page-header .container,
.service-page-hero .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Services grid (card layout on services page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.services-grid .card { cursor: default; }
.services-grid .card h3 { margin-bottom: 10px; }

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

/* Service detail sections */
.service-detail {
    padding: 64px 0;
    border-top: 1px solid var(--color-border-light);
}

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

.service-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.service-detail-inner.reverse { grid-template-columns: 1.2fr 1fr; }

.service-detail h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.service-detail p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-detail ul { list-style: none; margin-top: 16px; }

.service-detail ul li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-detail ul li::before {
    content: "\2192";
    color: var(--color-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.service-info-card {
    padding: 28px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

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

.service-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-info-card p { font-size: 0.9375rem; margin-bottom: 8px; }

@media (max-width: 768px) {
    .service-detail-inner,
    .service-detail-inner.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ========================================
   PAGE-SPECIFIC: About
   ======================================== */
.about-content { max-width: 680px; }

.about-content p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-card {
    padding: 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
}

.team-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-card span { font-size: 0.875rem; color: var(--color-text-secondary); }


/* ========================================
   PAGE-SPECIFIC: Contact
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }

.contact-info p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.65;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.contact-detail svg { color: var(--color-accent); flex-shrink: 0; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--color-text); }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.contact-info-box {
    margin-top: 32px;
    padding: 24px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.contact-info-box h3 { font-size: 1rem; margin-bottom: 8px; }

.contact-info-box p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ========================================
   PAGE-SPECIFIC: Privacy Policy
   ======================================== */
.prose { max-width: 680px; }

.prose h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
}

.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
}

.prose p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.prose ul { margin: 12px 0 20px 20px; }

.prose ul li {
    list-style: disc;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.prose a { color: var(--color-accent); }
.prose a:hover { text-decoration: underline; }
