/*
Theme Name: JAIK Solutions
Theme URI: https://jaik.solutions
Author: JAIK Solutions Inc.
Author URI: https://jaik.solutions
Description: A premium dark-tech corporate theme built for JAIK Solutions — featuring scroll-driven animations, glassmorphism, and immersive UI.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaik-solutions
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* — Palette — */
    --color-bg-primary:    #0a0e27;
    --color-bg-secondary:  #101438;
    --color-bg-tertiary:   #161b45;
    --color-surface:       rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border:        rgba(255, 255, 255, 0.08);
    --color-border-hover:  rgba(255, 255, 255, 0.18);

    --color-accent-blue:   #4f7df5;
    --color-accent-teal:   #00d4aa;
    --color-accent-purple: #7c5cfc;
    --color-accent-cyan:   #00e5ff;

    --color-text-primary:   #ffffff;
    --color-text-secondary: #b0b8d1;
    --color-text-muted:     #6b7394;

    /* — Gradients — */
    --gradient-primary:  linear-gradient(135deg, #4f7df5 0%, #7c5cfc 50%, #00d4aa 100%);
    --gradient-hero:     linear-gradient(160deg, #0a0e27 0%, #101438 40%, #1a1050 70%, #0a0e27 100%);
    --gradient-card:     linear-gradient(135deg, rgba(79,125,245,0.08) 0%, rgba(0,212,170,0.05) 100%);
    --gradient-btn:      linear-gradient(135deg, #4f7df5 0%, #7c5cfc 100%);
    --gradient-btn-hover: linear-gradient(135deg, #6a93ff 0%, #9577ff 100%);

    /* — Typography — */
    --font-heading: 'Abril Fatface', Georgia, 'Times New Roman', serif;
    --font-body:    'Space Mono', 'Courier New', monospace;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* — Spacing — */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-width: 1200px;
    --container-wide:  1400px;

    /* — Transitions — */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-base: 0.3s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);

    /* — Shadows — */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg:  0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue:   0 0 40px rgba(79, 125, 245, 0.2);
    --shadow-glow-teal:   0 0 40px rgba(0, 212, 170, 0.2);
    --shadow-glow-purple: 0 0 40px rgba(124, 92, 252, 0.2);

    /* — Border Radius — */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-size: 15px; /* Space Mono reads slightly larger — compensate */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* — Links — */
a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}
a:hover { color: var(--color-accent-teal); }

/* — Headings — */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 400; /* Abril Fatface is a display face — 400 is its only weight */
    line-height: 1.15;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 1rem; }

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.jaik-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.jaik-container--wide {
    max-width: var(--container-wide);
}

.jaik-section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section label / kicker text */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent-teal);
    margin-bottom: 1rem;
}
.section-kicker::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-accent-teal);
    border-radius: 2px;
}

/* Section subtitle */
.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700; /* Space Mono bold weight for button emphasis */
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.4;
}

/* Primary solid button — Teal gradient (unified across site) */
.btn--primary {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #00e8ba 0%, #00d4aa 100%);
    color: #0a0e27;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

/* Ghost / outline button — teal accent on hover */
.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border-hover);
}
.btn--ghost:hover {
    background: rgba(0, 212, 170, 0.06);
    border-color: var(--color-accent-teal);
    color: var(--color-accent-teal);
    transform: translateY(-2px);
}

/* Teal accent button — identical to primary for consistency */
.btn--teal {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}
.btn--teal:hover {
    background: linear-gradient(135deg, #00e8ba 0%, #00d4aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
    color: #0a0e27;
}

/* Small button variant */
.btn--sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: background var(--transition-base),
               border-color var(--transition-base),
               box-shadow var(--transition-base),
               transform 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    /* No translateY — keeps click targets stable while JS tilt runs.
       Enhanced box-shadow creates a "lifted" illusion instead. */
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(79, 125, 245, 0.06);
}

/* Card icon container */
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    flex-shrink: 0;
}
.card-icon--blue   { background: rgba(79, 125, 245, 0.12); color: var(--color-accent-blue); }
.card-icon--teal   { background: rgba(0, 212, 170, 0.12); color: var(--color-accent-teal); }
.card-icon--purple { background: rgba(124, 92, 252, 0.12); color: var(--color-accent-purple); }
.card-icon--cyan   { background: rgba(0, 229, 255, 0.12); color: var(--color-accent-cyan); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.4s var(--ease-out-expo);
    background: transparent;
}

/* Scrolled state — solid sticky header */
.site-header.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Logo in nav bar — SVG is black, inverted to white via CSS filter */
.site-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Black → White */
    transition: all 0.4s var(--ease-out-expo);
}

.site-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
    transform: scale(1.04);
}

.site-header.scrolled .site-logo img {
    height: 40px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1.15rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
    white-space: nowrap;
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1.15rem;
    right: 1.15rem;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-parent > a {
    color: var(--color-text-primary);
}

.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current-menu-parent > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown arrow icon */
.nav-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--transition-base);
    margin-top: 2px;
}

.nav-list > li:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 210px;
    background: rgba(16, 20, 56, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease-out-expo);
    box-shadow: var(--shadow-lg);
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-list > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.sub-menu li a:hover {
    background: var(--color-surface-hover);
    color: var(--color-text-primary);
    padding-left: 1.25rem;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION (Landing Page)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}


/* Animated mesh gradient background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-bg .orb--1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-blue);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}
.hero-bg .orb--2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-purple);
    bottom: -15%;
    left: -5%;
    animation-delay: -7s;
}
.hero-bg .orb--3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-teal);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -40px) scale(1.05); }
    50%      { transform: translate(-20px, 20px) scale(0.95); }
    75%      { transform: translate(15px, 30px) scale(1.02); }
}

/* Particle canvas overlay */
#heroParticles,
.particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* 3D Particle Ring canvas (hero landing page) */
.hero-ring-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 0 1.5rem;
}

/* "Transparent Pricing" badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(79, 125, 245, 0.1);
    border: 1px solid rgba(79, 125, 245, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.8s var(--ease-out-expo) both;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-teal);
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400; /* Abril Fatface single weight — inherently bold display */
    line-height: 1.18; /* Extra breathing room for display font descenders */
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.15s both;
}

.hero-description {
    font-size: clamp(1.05rem, 1.9vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.45s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-accent-blue);
    border-radius: 3px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100%     { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ============================================================
   SERVICES GRID (Landing + What We Do)
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Services list — stacked full-width cards (front page) */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

/* Wide service card — inherits wwd-card layout, adds card-link from service-card */
.service-card-wide .wwd-card-content {
    display: flex;
    flex-direction: column;
}

.service-card-wide .wwd-card-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.service-card-wide .card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #01010e;  /* White text on green bg (dark mode) */
    padding: 0.7rem 1.75rem;
    border: 1.5px solid var(--color-accent-teal);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.25);
    transition: all 0.4s var(--ease-out-expo);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 2;
    align-self: flex-start;
}

.service-card-wide .card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: -1;
}

.service-card-wide .card-link:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    background: linear-gradient(135deg, #00e8ba 0%, #00d4aa 100%);
    box-shadow: 0 8px 28px rgba(0, 212, 170, 0.4);
    gap: 0.75rem;
}

.service-card-wide .card-link:hover::before {
    opacity: 1;
}

.service-card-wide .card-link .arrow {
    transition: transform var(--transition-base);
    font-size: 1rem;
}

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

/* Front-page service cards — scaled up to match larger visuals */
.service-card-wide .card-header-inline .card-icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
}

.service-card-wide .card-header-inline h3 {
    font-size: 1.75rem;
}

.service-card-wide .wwd-card-content p {
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Light mode — card link: white text/glyphs on green bg */
[data-theme="light"] .service-card-wide .card-link {
    color: #ffffff;
    background: linear-gradient(135deg, #00b894 0%, #00a381 100%);
    border-color: var(--color-accent-teal);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.2);
}

[data-theme="light"] .service-card-wide .card-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    box-shadow: 0 8px 28px rgba(0, 184, 148, 0.3);
}

/* Card icon + title inline header */
.card-header-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-header-inline .card-icon {
    margin-bottom: 0;
}

.card-header-inline h3 {
    margin-bottom: 0;
}

.service-card .card-header-inline h3 {
    font-size: 1.15rem;
}

.service-card {
    text-align: left;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.service-card .card-header-inline h3 {
    margin-bottom: 0;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    padding: 0.6rem 1.5rem;
    border: 1.5px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius-full);
    background: transparent;
    transition: all 0.4s var(--ease-out-expo);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service-card .card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: -1;
}

.service-card .card-link:hover {
    color: #0a0e27;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 212, 170, 0.35);
    gap: 0.75rem;
}

.service-card .card-link:hover::before {
    opacity: 1;
}

.service-card .card-link .arrow {
    transition: transform var(--transition-base);
    font-size: 1rem;
}

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

/* Center the link button in the card */
.service-card {
    display: flex;
    flex-direction: column;
}

/* Service card images */
.service-card-img {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
    filter: brightness(0.85) saturate(1.1);
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

/* ============================================================
   "WHAT WE DO" BOTTOM PARAGRAPH
   ============================================================ */
.wwd-bottom-text {
    max-width: 720px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.wwd-bottom-text a {
    color: var(--color-accent-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wwd-bottom-text a:hover {
    color: var(--color-accent-blue);
}

/* ============================================================
   "WHY JAIK SOLUTIONS" — Section with relocated particle BG
   ============================================================ */
.why-jaik-section {
    position: relative;
    overflow: hidden;
}

.why-jaik-section > .hero-bg { opacity: 0.4; }

.why-jaik-section > .hero-grid {
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.why-jaik-section > .jaik-container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(79,125,245,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0,212,170,0.04) 0%, transparent 50%);
    animation: ctaShimmer 15s linear infinite;
}

@keyframes ctaShimmer {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* CTA highlight blocks — icon + text with accent border */
.cta-highlight {
    display: flex;
    align-items: center; /* Center icon vertically with text block */
    gap: 1.5rem;
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.025);
    border-left: 3px solid;
    border-image: var(--gradient-primary) 1;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
    transition: background var(--transition-base);
}

.cta-highlight:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cta-highlight p {
    margin-bottom: 0;
    max-width: none;
    font-size: 0.95rem;
}

/* Glyph icon — centered in a circular container for visual weight */
.cta-highlight-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    color: var(--color-accent-teal);
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.cta-highlight:hover .cta-highlight-icon {
    background: rgba(0, 212, 170, 0.12);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
    transform: scale(1.05);
}

/* CTA divider — centered gradient line */
.cta-divider {
    border: none;
    height: 1px;
    max-width: 200px;
    margin: 1rem auto;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), var(--color-accent-teal), transparent);
    opacity: 0.35;
}

/* ============================================================
   PAGE HEADER (Inner pages)
   ============================================================ */
.page-header {
    position: relative;
    padding: clamp(8rem, 15vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.page-header .hero-bg { opacity: 0.5; }

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 0.7s var(--ease-out-expo) both;
}

.page-header .section-subtitle {
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.15s both;
}

/* ============================================================
   TEAM PAGE — Tiered Hierarchy System
   ============================================================ */
.team-section-group {
    margin-bottom: 4rem;
}

.team-section-group h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

/* Base team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

/* Base team card */
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card .portrait-wrap {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
}

.team-card:hover .portrait-wrap {
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow-blue);
    transform: scale(1.05);
}

.team-card .portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .portrait-wrap img {
    transform: scale(1.1);
}

.team-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.team-card .role {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-teal);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

/* Email — Styled with icon and accent color */
.team-card .email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-accent-blue);
    transition: all var(--transition-base);
    margin-top: auto;
    padding-top: 0.5rem;
}

.team-card .email .material-symbols-outlined {
    font-size: 0.9rem;
    opacity: 0.7;
}

.team-card:hover .email {
    color: var(--color-accent-teal);
}

/* ——————————————————————————————————————
   TIER: OWNER — Largest, hero-style card
   —————————————————————————————————————— */
.team-card--owner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    border-color: rgba(79, 125, 245, 0.2);
}

.team-card--owner .portrait-wrap {
    width: 180px;
    height: 180px;
    margin: 0;
    border-width: 3px;
    border-color: rgba(79, 125, 245, 0.3);
}

.team-card--owner:hover .portrait-wrap {
    border-color: var(--color-accent-blue);
    box-shadow:
        0 0 30px rgba(79, 125, 245, 0.3),
        0 0 60px rgba(79, 125, 245, 0.15),
        0 0 0 4px rgba(79, 125, 245, 0.15);
}

.team-card--owner .team-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-card--owner h4 {
    font-size: 1.65rem;
    font-weight: 400; /* Abril Fatface display weight */
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card--owner .role {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    color: var(--color-accent-teal);
    margin-bottom: 0.75rem;
}

.team-card--owner .team-bio {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-card--owner .email {
    font-size: 0.92rem;
    font-weight: 600;
}

.team-card--owner .card-separator {
    width: 100%;
    margin: 0.5rem 0 0.75rem;
}

/* ——————————————————————————————————————
   TIER: OPERATIONS — Medium-large cards
   —————————————————————————————————————— */
.team-grid--operations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-card--operations {
    width: 280px;
    flex-shrink: 0;
    padding: 2.25rem 1.75rem;
}

.team-card--operations .portrait-wrap {
    width: 150px;
    height: 150px;
    border-color: rgba(0, 212, 170, 0.25);
}

.team-card--operations:hover .portrait-wrap {
    border-color: var(--color-accent-teal);
    box-shadow:
        0 0 24px rgba(0, 212, 170, 0.3),
        0 0 48px rgba(0, 212, 170, 0.15);
}

.team-card--operations h4 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.team-card--operations .role {
    font-size: 0.82rem;
    color: var(--color-accent-teal);
    letter-spacing: 0.12em;
}

.team-card--operations .email {
    font-size: 0.85rem;
}

/* ——————————————————————————————————————
   TIER: LEAD DEVELOPERS — Medium cards
   —————————————————————————————————————— */
.team-grid--lead {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}

.team-card--lead {
    width: 240px;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
}

.team-card--lead .portrait-wrap {
    width: 130px;
    height: 130px;
    border-color: rgba(124, 92, 252, 0.2);
}

.team-card--lead:hover .portrait-wrap {
    border-color: var(--color-accent-purple);
    box-shadow:
        0 0 24px rgba(124, 92, 252, 0.3),
        0 0 48px rgba(124, 92, 252, 0.15);
}

.team-card--lead h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.team-card--lead .role {
    font-size: 0.78rem;
    color: var(--color-accent-purple);
    letter-spacing: 0.1em;
}

.team-card--lead .email {
    font-size: 0.82rem;
    color: var(--color-accent-purple);
}

.team-card--lead:hover .email {
    color: var(--color-accent-teal);
}

/* ——————————————————————————————————————
   TIER: DEVELOPERS — Compact cards
   —————————————————————————————————————— */
.team-grid--developer {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
}

.team-card--developer {
    padding: 1.5rem 1.25rem;
}

.team-card--developer .portrait-wrap {
    width: 110px;
    height: 110px;
    border-color: rgba(0, 229, 255, 0.15);
}

.team-card--developer:hover .portrait-wrap {
    border-color: var(--color-accent-cyan);
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.25),
        0 0 40px rgba(0, 229, 255, 0.1);
}

.team-card--developer h4 {
    font-size: 1rem;
    font-weight: 600;
}

.team-card--developer .role {
    font-size: 0.75rem;
    color: var(--color-accent-cyan);
    letter-spacing: 0.08em;
}

.team-card--developer .email {
    font-size: 0.78rem;
    color: var(--color-accent-cyan);
}

.team-card--developer:hover .email {
    color: var(--color-accent-teal);
}

/* ——————————————————————————————————————
   TIER: QUALITY & DOCUMENTATION
   Same size as developers, unique accents
   —————————————————————————————————————— */
.team-grid--quality {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-card--quality {
    width: 240px;
    flex-shrink: 0;
    padding: 1.75rem 1.5rem;
}

.team-card--quality .portrait-wrap {
    width: 115px;
    height: 115px;
}

/* Technical Writer — Blue accent */
.team-card--writer .portrait-wrap {
    border-color: rgba(79, 125, 245, 0.2);
}

.team-card--writer:hover .portrait-wrap {
    border-color: var(--color-accent-blue);
    box-shadow:
        0 0 20px rgba(79, 125, 245, 0.3),
        0 0 40px rgba(79, 125, 245, 0.12);
}

.team-card--writer h4 {
    font-size: 1.02rem;
    font-weight: 600;
}

.team-card--writer .role {
    font-size: 0.75rem;
    color: var(--color-accent-blue);
    letter-spacing: 0.1em;
    font-style: italic;
}

.team-card--writer .email {
    color: var(--color-accent-blue);
}

/* Quality Assurance — Teal accent */
.team-card--qa .portrait-wrap {
    border-color: rgba(0, 212, 170, 0.2);
}

.team-card--qa:hover .portrait-wrap {
    border-color: var(--color-accent-teal);
    box-shadow:
        0 0 20px rgba(0, 212, 170, 0.3),
        0 0 40px rgba(0, 212, 170, 0.12);
}

.team-card--qa h4 {
    font-size: 1.02rem;
    font-weight: 600;
}

.team-card--qa .role {
    font-size: 0.75rem;
    color: var(--color-accent-teal);
    letter-spacing: 0.1em;
    font-style: italic;
}

.team-card--qa .email {
    color: var(--color-accent-teal);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-intro {
    max-width: 780px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.pricing-card {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--color-accent-teal);
    box-shadow: var(--shadow-glow-teal);
    overflow: visible;
}

.pricing-card.featured::after {
    content: 'Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0e27;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    z-index: 2;
    pointer-events: none;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.pricing-price .unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.12);
    color: var(--color-accent-teal);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 1.75rem;
    text-align: center;
}

.contact-info-card h4 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.contact-info-card a:hover {
    color: var(--color-accent-teal);
}

/* Contact card subtitle */
.contact-card-subtitle {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    margin-bottom: 1rem;
}

/* Styled contact links */
.contact-link-styled {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--color-accent-blue) !important;
    transition: all var(--transition-base);
}

.contact-link-styled:hover {
    color: var(--color-accent-teal) !important;
    transform: translateX(2px);
}

.contact-link-styled .material-symbols-outlined {
    font-size: 1rem;
    opacity: 0.7;
}

/* Contact direct name */
.contact-direct-name {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--color-text-primary) !important;
    margin-bottom: 0.5rem;
}

/* Contact email list */
.contact-email-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Contact card meta (time info) */
.contact-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem !important;
    color: var(--color-text-muted) !important;
    margin-top: 0.5rem;
}

.contact-card-meta .material-symbols-outlined {
    font-size: 1rem;
    color: var(--color-accent-teal);
    opacity: 0.7;
}

/* Location tags */
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
}

.location-tag:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    background: rgba(79, 125, 245, 0.08);
    transform: translateY(-2px);
}

/* Location tag tooltips */
.location-tag[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.92);
    width: max-content;
    max-width: 260px;
    padding: 0.65rem 0.9rem;
    background: rgba(16, 20, 56, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 125, 245, 0.25);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(79, 125, 245, 0.1);
    transition: opacity 0.3s var(--ease-out-expo),
                transform 0.3s var(--ease-out-expo);
}

.location-tag[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: rgba(16, 20, 56, 0.96);
    border-right: 1px solid rgba(79, 125, 245, 0.25);
    border-bottom: 1px solid rgba(79, 125, 245, 0.25);
    border-radius: 0 0 2px 0;
    rotate: 45deg;
    pointer-events: none;
    opacity: 0;
    z-index: 101;
    transition: opacity 0.3s var(--ease-out-expo),
                transform 0.3s var(--ease-out-expo);
}

.location-tag[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.location-tag[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Form submit centering */
.form-submit-center {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Contact form */
.contact-form-wrap {
    padding: 2.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--transition-base);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 125, 245, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form select option {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Form success/error messages */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--color-accent-teal);
    display: block;
}

.form-message.error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    display: block;
}

/* ============================================================
   INFORMATION PAGE
   ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.info-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p,
.info-card li {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.info-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent-teal);
    font-size: 0.85rem;
}

/* Card separator — thin gradient line */
.card-separator {
    border: none;
    height: 1px;
    margin: 0.75rem 0 1rem;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-teal), transparent);
    opacity: 0.3;
    border-radius: 1px;
}

/* Info feature list — icon + title + description rows */
.info-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.75rem 0;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition-base);
}

.info-feature:hover {
    background: rgba(79, 125, 245, 0.05);
    border-color: rgba(79, 125, 245, 0.12);
}

.info-feature > .material-symbols-outlined {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--color-accent-teal);
    margin-top: 0.15rem;
}

.info-feature div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-feature strong {
    font-size: 0.88rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.info-feature span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Info card note — muted footer line with icon */
.info-card-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem !important;
    color: var(--color-text-muted) !important;
    margin-top: auto;
    margin-bottom: 0 !important;
}

.info-card-note .material-symbols-outlined {
    font-size: 1rem;
    color: var(--color-accent-teal);
    opacity: 0.7;
}

/* Info link buttons — styled navigation tiles */
.info-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.info-link-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.35s var(--ease-out-expo);
    text-decoration: none;
}

.info-link-btn:hover {
    background: rgba(79, 125, 245, 0.06);
    border-color: rgba(79, 125, 245, 0.25);
    transform: translateX(6px);
    color: var(--color-text-primary);
}

.info-link-btn > .material-symbols-outlined {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--color-accent-blue);
    transition: color var(--transition-base);
}

.info-link-btn:hover > .material-symbols-outlined {
    color: var(--color-accent-teal);
}

.info-link-btn div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.info-link-btn strong {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.info-link-btn span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ============================================================
   SUPPORT ARTICLE — Clickable info-feature links
   ============================================================ */
a.info-feature--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}

a.info-feature--link:hover {
    background: rgba(79, 125, 245, 0.08);
    border-color: rgba(79, 125, 245, 0.2);
    transform: translateX(4px);
    color: inherit;
}

a.info-feature--link:hover strong {
    color: var(--color-accent-blue);
}

/* ============================================================
   ARTICLE CONTENT — Single post body styling
   ============================================================ */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--color-accent-blue);
}

.article-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 0.5rem 0 1.5rem 1.5rem;
}

.article-content li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(79, 125, 245, 0.1);
    border: 1px solid rgba(79, 125, 245, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--color-accent-cyan);
}

.article-content a {
    color: var(--color-accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.article-content a:hover {
    color: var(--color-accent-teal);
}

.article-content strong {
    color: var(--color-text-primary);
}

/* Related articles grid inside single.php CTA */
.article-related-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Article card in archive grid — ensure full-height clickable area */
a.article-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

a.article-card:hover {
    color: inherit;
}

a.article-card:hover h3 {
    color: var(--color-accent-blue);
}

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.privacy-content {
    max-width: 860px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.privacy-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-accent-blue);
}

.privacy-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.privacy-content ul,
.privacy-content ol {
    margin: 0.5rem 0 1.5rem 1.5rem;
}

.privacy-content li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* Privacy TOC */
.privacy-toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.privacy-toc h3 {
    color: var(--color-text-primary);
    margin-top: 0;
}

.privacy-toc ol {
    margin-bottom: 0;
}

.privacy-toc li {
    color: var(--color-accent-blue);
}

/* Privacy table */
.privacy-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.privacy-table th,
.privacy-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.privacy-table th {
    background: var(--color-surface-hover);
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.privacy-table td {
    color: var(--color-text-secondary);
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   WHAT WE DO — Expanded
   ============================================================ */
.wwd-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.wwd-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;  /* Increased to accommodate larger visuals */
    overflow: visible;
}

.wwd-card:nth-child(even) {
    direction: rtl;
}

.wwd-card:nth-child(even) > * {
    direction: ltr;
}

.wwd-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.wwd-card-content .card-header-inline h3 {
    margin-bottom: 0;
}

.wwd-card-content .card-header-inline {
    margin-bottom: 1rem;
}

.wwd-card-content {
    position: relative;
    z-index: 2;
}

.wwd-card-content p {
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.wwd-card-visual img {
    width: 100%;
    max-width: 560px;  /* ~40% increase from 400px for high-res images */
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    filter: drop-shadow(0 8px 32px rgba(79, 125, 245, 0.15));
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.wwd-card:hover .wwd-card-visual img {
    transform: scale(1.03) translateY(-4px);
    filter: drop-shadow(0 12px 48px rgba(79, 125, 245, 0.25));
}

/* Subtle glow ring behind image */
.wwd-card-visual::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center,
        rgba(79, 125, 245, 0.08) 0%,
        rgba(0, 212, 170, 0.04) 50%,
        transparent 80%);
    filter: blur(30px);
    z-index: -1;
    transition: opacity var(--transition-slow);
    opacity: 0.6;
}

.wwd-card:hover .wwd-card-visual::before {
    opacity: 1;
}

/* Tech stack badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 2;
}

.tech-badge {
    padding: 0.35rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    cursor: help;
    transition: all var(--transition-base);
}

.tech-badge:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    background: rgba(79, 125, 245, 0.08);
}

/* Hover hint — shown once per tech-stack group via CSS */
.tech-stack-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.6rem;
    opacity: 0.7;
    animation: hintPulse 2.5s ease-in-out infinite;
}

.tech-stack-hint .material-symbols-outlined {
    font-size: 0.9rem;
    color: var(--color-accent-teal);
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 0.35; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), var(--color-accent-teal), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: var(--section-padding) 0;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1.25rem;
    max-width: 280px;
    color: var(--color-text-muted);
}

/* Footer logo — same black→white inversion as header */
.footer-brand img {
    width: clamp(160px, 20vw, 240px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s var(--ease-out-expo);
}

.footer-brand a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
    transform: scale(1.03);
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-col ul li a:hover {
    color: var(--color-text-primary);
    gap: 0.3rem;
}

.footer-col ul li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--color-accent-teal);
    transition: width var(--transition-base);
}

.footer-col ul li a:hover::before {
    width: 12px;
}

/* Footer contact details */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-contact-item .icon {
    color: var(--color-accent-teal);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children animations */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.64s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.72s; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

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

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* — Tablets — */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .wwd-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wwd-card:nth-child(even) {
        direction: ltr;
    }

    .wwd-card-visual {
        order: -1;
        justify-content: center;
    }

    .wwd-card-visual img {
        max-width: 400px; /* Scaled up from 280px for tablet */
    }
}

/* — Mobile — */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.4s var(--ease-out-expo);
        border-left: 1px solid var(--color-border);
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list > li > a {
        padding: 1rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list > li > a::after {
        display: none;
    }

    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0 0 0 1rem;
        display: none;
        min-width: auto;
    }

    .nav-list > li.open > .sub-menu {
        display: block;
    }

    .sub-menu li a {
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        padding: 0.75rem 0;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Responsive grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Service card wide — center link on mobile */
    .service-card-wide .card-link {
        align-self: center;
    }

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

    .team-grid--lead {
        justify-content: center;
    }

    .team-card--lead {
        width: 100%;
    }

    .team-grid--operations,
    .team-grid--quality {
        flex-direction: column;
        align-items: center;
    }

    .team-card--owner {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 100%;
        padding: 2rem;
    }

    .team-card--owner .portrait-wrap {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }

    .team-card--owner .team-card-info {
        align-items: center;
    }

    .team-card--operations {
        width: 100%;
    }

    .team-card--quality {
        width: 100%;
    }

    .team-grid--developer {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Force hero content within viewport bounds on mobile */
    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.75rem);
        word-break: break-word;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    /* 3D ring fades to background on mobile so text is readable */
    .hero-ring-canvas {
        opacity: 0.45;
    }

    /* Tech badge tooltips — constrain to viewport on mobile */
    .tech-badge[data-tooltip]::before {
        max-width: 220px;
        font-size: 0.72rem;
        left: 0;
        transform: translateX(0) translateY(8px) scale(0.92);
    }

    .tech-badge[data-tooltip].tooltip-active::before {
        transform: translateX(0) translateY(0) scale(1);
    }

    .tech-badge[data-tooltip]::after {
        left: 20px;
    }

    .site-logo img {
        height: 38px;
    }

    /* Theme toggle on mobile — sits next to hamburger */
    .theme-toggle {
        width: 36px;
        height: 36px;
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .nav-toggle {
        order: 3;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* CTA highlight glyphs — stack on very small screens */
    .cta-highlight {
        gap: 1rem;
        padding: 1.25rem 1.25rem;
    }

    .cta-highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border-hover);
    background: var(--color-surface);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    flex-shrink: 0;
    margin-left: 0.5rem;
    z-index: 1001;
}

.theme-toggle:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-teal);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
}

.theme-toggle__icon {
    position: absolute;
    font-size: 1.2rem;
    transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

/* Dark mode state: show moon icon, hide sun */
.theme-toggle__icon--dark {
    color: var(--color-accent-blue);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--light {
    color: var(--color-accent-teal);
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Light mode state: show sun icon, hide moon */
[data-theme="light"] .theme-toggle__icon--dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__icon--light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================================
   LIGHT MODE — Design Token Overrides
   ============================================================ */
[data-theme="light"] {
    /* — Palette — */
    --color-bg-primary:    #f5f7fb;
    --color-bg-secondary:  #edf0f7;
    --color-bg-tertiary:   #e2e7f0;
    --color-surface:       rgba(0, 0, 0, 0.03);
    --color-surface-hover: rgba(0, 0, 0, 0.06);
    --color-border:        rgba(0, 0, 0, 0.08);
    --color-border-hover:  rgba(0, 0, 0, 0.16);

    --color-accent-blue:   #3d6ae5;
    --color-accent-teal:   #00b894;
    --color-accent-purple: #6a48e8;
    --color-accent-cyan:   #00c4d6;

    --color-text-primary:   #1a1e36;
    --color-text-secondary: #4a5068;
    --color-text-muted:     #8890a8;

    /* — Gradients — */
    --gradient-primary:  linear-gradient(135deg, #3d6ae5 0%, #6a48e8 50%, #00b894 100%);
    --gradient-hero:     linear-gradient(160deg, #f5f7fb 0%, #edf0f7 40%, #e8e0f8 70%, #f5f7fb 100%);
    --gradient-card:     linear-gradient(135deg, rgba(61,106,229,0.06) 0%, rgba(0,184,148,0.04) 100%);
    --gradient-btn:      linear-gradient(135deg, #3d6ae5 0%, #6a48e8 100%);
    --gradient-btn-hover: linear-gradient(135deg, #5a84f0 0%, #8366f0 100%);

    /* — Shadows — */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 16px 64px rgba(0, 0, 0, 0.1);
    --shadow-glow-blue:   0 0 40px rgba(61, 106, 229, 0.12);
    --shadow-glow-teal:   0 0 40px rgba(0, 184, 148, 0.12);
    --shadow-glow-purple: 0 0 40px rgba(106, 72, 232, 0.12);
}

/* — Header — */
[data-theme="light"] .site-header.scrolled {
    background: rgba(245, 247, 251, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* — Logo — flip inversion off so SVG renders dark on light bg — */
[data-theme="light"] .site-logo img {
    filter: brightness(0);
}

[data-theme="light"] .site-logo:hover img {
    filter: brightness(0) drop-shadow(0 0 8px rgba(0, 184, 148, 0.4));
}

[data-theme="light"] .footer-brand img {
    filter: brightness(0);
}

[data-theme="light"] .footer-brand a:hover img {
    filter: brightness(0) drop-shadow(0 0 8px rgba(0, 184, 148, 0.4));
}

/* — Navigation dropdown — */
[data-theme="light"] .sub-menu {
    background: rgba(245, 247, 251, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* — Mobile nav panel — */
@media (max-width: 768px) {
    [data-theme="light"] .main-nav {
        background: rgba(245, 247, 251, 0.98);
    }

    [data-theme="light"] .nav-overlay {
        background: rgba(0, 0, 0, 0.25);
    }
}

/* — Glass card top-line — */
[data-theme="light"] .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(61, 106, 229, 0.04);
}

/* — Card icon backgrounds — stronger on light — */
[data-theme="light"] .card-icon--blue   { background: rgba(61, 106, 229, 0.1); }
[data-theme="light"] .card-icon--teal   { background: rgba(0, 184, 148, 0.1); }
[data-theme="light"] .card-icon--purple { background: rgba(106, 72, 232, 0.1); }
[data-theme="light"] .card-icon--cyan   { background: rgba(0, 196, 214, 0.1); }

/* — Service card image — brighter on light mode — */
[data-theme="light"] .service-card-img img {
    filter: brightness(1) saturate(1.05);
}

[data-theme="light"] .service-card:hover .service-card-img img {
    filter: brightness(1.05) saturate(1.15);
}

/* — Service card link hover text — */
[data-theme="light"] .service-card .card-link:hover {
    color: #1a1e36;
}

/* — Hero section — */
[data-theme="light"] .hero {
    background: var(--gradient-hero);
}

/* — Hero description — high-contrast on light bg — */
[data-theme="light"] .hero-description {
    color: var(--color-text-primary);
    text-shadow: none;
}

/* — Orb backgrounds — muted for light mode — */
[data-theme="light"] .hero-bg .orb {
    opacity: 0.12;
}

[data-theme="light"] .why-jaik-section > .hero-bg {
    opacity: 0.15;
}

[data-theme="light"] .page-header .hero-bg {
    opacity: 0.2;
}

/* — Hero grid overlay — */
[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* — Hero badge — */
[data-theme="light"] .hero-badge {
    background: rgba(61, 106, 229, 0.08);
    border-color: rgba(61, 106, 229, 0.18);
}

/* — CTA highlight — */
[data-theme="light"] .cta-highlight {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .cta-highlight:hover {
    background: rgba(0, 0, 0, 0.035);
}

[data-theme="light"] .cta-highlight-icon {
    background: rgba(0, 184, 148, 0.08);
    border-color: rgba(0, 184, 148, 0.15);
}

/* — CTA box — */
[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, rgba(61,106,229,0.04) 0%, rgba(0,184,148,0.03) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cta-box::before {
    background: radial-gradient(circle at 30% 40%, rgba(61,106,229,0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0,184,148,0.03) 0%, transparent 50%);
}

/* — Buttons text color on teal bg — */
[data-theme="light"] .btn--primary,
[data-theme="light"] .btn--teal {
    color: #ffffff;
    background: linear-gradient(135deg, #00b894 0%, #00a381 100%);
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.2);
}

[data-theme="light"] .btn--primary:hover,
[data-theme="light"] .btn--teal:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.3);
}

[data-theme="light"] .btn--ghost {
    color: var(--color-text-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn--ghost:hover {
    background: rgba(0, 184, 148, 0.06);
    border-color: var(--color-accent-teal);
    color: var(--color-accent-teal);
}

/* — Pricing featured badge text — */
[data-theme="light"] .pricing-card.featured::after {
    color: #ffffff;
}

/* — Scroll indicator — */
[data-theme="light"] .scroll-mouse {
    border-color: var(--color-text-muted);
}

/* — Footer — */
[data-theme="light"] .site-footer {
    background: var(--color-bg-secondary);
}

/* — Contact form inputs — */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text-primary);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form select:focus,
[data-theme="light"] .contact-form textarea:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(61, 106, 229, 0.1);
}

[data-theme="light"] .contact-form select option {
    background: #ffffff;
    color: var(--color-text-primary);
}

/* — Info feature rows — */
[data-theme="light"] .info-feature {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .info-feature:hover {
    background: rgba(61, 106, 229, 0.04);
    border-color: rgba(61, 106, 229, 0.12);
}

/* — Info link buttons — */
[data-theme="light"] .info-link-btn {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .info-link-btn:hover {
    background: rgba(61, 106, 229, 0.04);
    border-color: rgba(61, 106, 229, 0.18);
}

/* — Location tags — */
[data-theme="light"] .location-tag {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

/* — Location tag tooltips — */
[data-theme="light"] .location-tag[data-tooltip]::before {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(61, 106, 229, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 16px rgba(61, 106, 229, 0.05);
}

[data-theme="light"] .location-tag[data-tooltip]::after {
    background: rgba(255, 255, 255, 0.96);
    border-right-color: rgba(61, 106, 229, 0.2);
    border-bottom-color: rgba(61, 106, 229, 0.2);
}

/* — Privacy TOC — */
[data-theme="light"] .privacy-toc {
    background: rgba(255, 255, 255, 0.6);
}

/* — Privacy table — */
[data-theme="light"] .privacy-table th {
    background: rgba(0, 0, 0, 0.04);
}

/* — Article code blocks — */
[data-theme="light"] .article-content code {
    background: rgba(61, 106, 229, 0.06);
    border-color: rgba(61, 106, 229, 0.1);
    color: var(--color-accent-purple);
}

/* — Tech badges — */
[data-theme="light"] .tech-badge {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-badge:hover {
    background: rgba(61, 106, 229, 0.06);
}

/* — Team card portrait borders — softer on light — */
[data-theme="light"] .team-card .portrait-wrap {
    border-color: rgba(0, 0, 0, 0.1);
}

/* — Page header — */
[data-theme="light"] .page-header {
    background: var(--gradient-hero);
}

/* — Card separator — */
[data-theme="light"] .card-separator {
    opacity: 0.5;
}

/* — CTA divider — */
[data-theme="light"] .cta-divider {
    opacity: 0.5;
}

/* — Footer top gradient line — */
[data-theme="light"] .site-footer::before {
    opacity: 0.6;
}

/* — Hamburger toggle color — */
[data-theme="light"] .nav-toggle span {
    background: var(--color-text-primary);
}

/* — Smooth transition for theme change — */
[data-theme="light"],
[data-theme="light"] body,
[data-theme="light"] .site-header,
[data-theme="light"] .site-footer,
[data-theme="light"] .hero,
[data-theme="light"] .page-header {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.3s ease;
}

/* ============================================================
   WORDPRESS OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-md); }
.entry-content { max-width: 800px; margin: 0 auto; }

/* Hide admin bar spacing interference */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
