/* =============================================
   Anderson Technology Solutions — Main Stylesheet
   Dark mode default, light mode via [data-theme="light"]
   ============================================= */

/* --- CSS Variables / Design Tokens --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(18, 18, 26, 0.8);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent-primary: #00b4d8;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00b4d8, #7c3aed);
    --accent-glow: rgba(0, 180, 216, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 72px;
}

[data-theme="light"] {
    --bg-primary: #f8f9fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.18);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-glow: rgba(0, 180, 216, 0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .card,
[data-theme="light"] .testimonial-card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .card h3 { color: #111827; }
[data-theme="light"] .card p { color: #4b5563; }
[data-theme="light"] .testimonial-name { color: #111827; }
[data-theme="light"] .testimonial-role { color: #6b7280; }
[data-theme="light"] .testimonial-text { color: #374151; }
[data-theme="light"] .section-header h2 { color: #111827; }
[data-theme="light"] .section-header p { color: #4b5563; }
[data-theme="light"] .section-label { color: #0891b2; background: rgba(0,180,216,0.08); }
[data-theme="light"] .stat-item h3 { -webkit-text-fill-color: unset; background: none; color: #0891b2; }
[data-theme="light"] .stat-item p { color: #4b5563; }
[data-theme="light"] .page-hero h1 { color: #111827; }
[data-theme="light"] .page-hero-subtitle { color: #4b5563; }
[data-theme="light"] .breadcrumb-current { color: #4b5563; }
[data-theme="light"] .breadcrumb-sep { color: #9ca3af; }
[data-theme="light"] .page-hero-breadcrumb a { color: #6b7280; }
[data-theme="light"] .card-icon { background: rgba(0,180,216,0.08); }

/* Keep navbar & footer dark in light theme */
[data-theme="light"] .navbar,
[data-theme="light"] .navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
}
[data-theme="light"] .nav-logo { color: #fff; }
[data-theme="light"] .nav-logo:hover { color: #fff; }
[data-theme="light"] .nav-logo-img { filter: none; }
[data-theme="light"] .nav-links a { color: rgba(255,255,255,0.6); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #00b4d8; background: rgba(0,180,216,0.15); }
[data-theme="light"] .nav-actions .theme-toggle,
[data-theme="light"] .nav-actions .lang-switcher button { color: rgba(255,255,255,0.6); }
[data-theme="light"] .nav-actions .theme-toggle:hover,
[data-theme="light"] .nav-actions .lang-switcher button:hover { color: #fff; }
[data-theme="light"] .lang-switcher .lang-dropdown {
    background: #12121a;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="light"] .lang-switcher .lang-dropdown a { color: rgba(255,255,255,0.6); }
[data-theme="light"] .lang-switcher .lang-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.06); }
[data-theme="light"] .mobile-toggle span { background: #fff; }

[data-theme="light"] .footer {
    background: #12121a;
    border-top-color: rgba(255,255,255,0.06);
}
[data-theme="light"] .footer h4 { color: #fff; }
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-bottom { color: rgba(255,255,255,0.6); }
[data-theme="light"] .footer-links a:hover { color: #00b4d8; }
[data-theme="light"] .footer-bottom {
    border-top-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}
[data-theme="light"] .footer-bottom-links a { color: rgba(255,255,255,0.35); }
[data-theme="light"] .footer-bottom-links a:hover { color: #00b4d8; }
[data-theme="light"] .footer-social a {
    border-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
}
[data-theme="light"] .footer-social a:hover {
    border-color: #00b4d8;
    color: #00b4d8;
    background: rgba(0,180,216,0.15);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}
/* light navbar override moved to consolidated block above */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
/* light navbar.scrolled override moved to consolidated block above */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo span { color: var(--accent-primary); }
.nav-logo:hover { color: var(--text-primary); }
.nav-logo-img { height: 36px; width: auto; }
/* light nav-logo-img override moved to consolidated block above */

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

/* Nav Dropdown */
.nav-dropdown-parent { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; cursor: pointer; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
    backdrop-filter: blur(16px);
}
.nav-dropdown-parent:hover .nav-dropdown-menu,
.nav-dropdown-parent.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(0,180,216,0.12);
    color: #00b4d8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Language Switcher --- */
.lang-switcher {
    position: relative;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--transition);
}
.lang-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.lang-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
}
.lang-switcher.open .lang-dropdown,
.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}
.lang-option:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
}
.lang-option.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background: var(--accent-glow);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.theme-toggle svg { width: 18px; height: 18px; }

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* Mobile sidebar backdrop — gaussian blur overlay */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-backdrop.visible {
    opacity: 1;
}
body.mobile-menu-open .mobile-backdrop {
    display: block;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
    background: var(--bg-secondary);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, var(--accent-glow) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.page-hero-has-bg {
    background-size: cover;
    background-position: center;
}
.page-hero-has-bg .page-hero-content h1 { color: #fff; }
.page-hero-has-bg .page-hero-subtitle { color: rgba(255,255,255,0.8); }
.page-hero-has-bg .page-hero-breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero-has-bg .page-hero-breadcrumb a:hover { color: #fff; }
.page-hero-has-bg .breadcrumb-sep { color: rgba(255,255,255,0.3); }
.page-hero-has-bg .breadcrumb-current { color: rgba(255,255,255,0.8); }
.page-hero-content {
    position: relative; z-index: 2; max-width: 720px; margin: 0 auto;
    animation: pageHeroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; margin-bottom: 1rem;
    animation: pageHeroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes pageHeroIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageHeroTextIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-hero-subtitle {
    font-size: 1.125rem; color: var(--text-secondary); line-height: 1.65;
    animation: pageHeroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    animation: pageHeroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.page-hero-breadcrumb a { color: var(--text-muted); }
.page-hero-breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb-sep { color: var(--text-muted); font-size: 0.75rem; }
.breadcrumb-current { color: var(--text-secondary); }

/* --- Section Styles --- */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.section-has-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    .section-has-bg { background-attachment: scroll; }
}
.section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.section-has-bg .section-header h2,
.section-has-bg .section-header p,
.section-has-bg .section-label,
.section-has-bg .card,
.section-has-bg .stat-item h3,
.section-has-bg .stat-item p,
.section-has-bg .testimonial-card,
.section-has-bg .cta-content h2,
.section-has-bg .cta-content p {
    color: #fff;
}
.section-has-bg .card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}
.section-has-bg .card h3 { color: #fff; }
.section-has-bg .card p { color: rgba(255,255,255,0.75); }
.section-has-bg .section-label {
    background: rgba(255,255,255,0.1);
    color: var(--accent-primary);
}

/* Scroll Reveal Animations — progressive enhancement: only hide when JS is confirmed loaded */
.js-loaded .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js-loaded .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    padding: 0.35rem 1rem;
    background: var(--accent-glow);
    border-radius: 100px;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    backdrop-filter: blur(10px);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.08), var(--shadow-md);
}
.card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.2);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }
.card-thumb {
    margin: -2rem -2rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    height: 160px;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Hero Section (Home) --- */
/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
    opacity: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.hero-slide.leaving {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.55, 0, 1, 0.45);
}

/* Ken Burns — subtle slow zoom while slide is visible */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: -5%;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1);
    transition: none;
}
.hero-slide.active::after {
    animation: kenBurns 8s ease-out forwards;
}
@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* Content stagger animation */
.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(30px);
}
.hero-slide.active .hero-content {
    animation: slideContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-slide.active .hero-content h1 {
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-slide.active .hero-content .hero-subtitle {
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
.hero-slide.active .hero-content .hero-buttons {
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

@keyframes slideContentIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes textReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Leaving slide — fade out + drift down */
.hero-slide.leaving .hero-content {
    animation: slideContentOut 0.6s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes slideContentOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-20px); }
}

/* Navigation dots with progress ring */
.hero-slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}
.hero-dot {
    position: relative;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.hero-dot:hover {
    border-color: rgba(255,255,255,0.7);
    transform: scale(1.2);
}
.hero-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    transform: scale(1.3);
}
.hero-dot.active::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.5;
    animation: dotPulse 0.6s ease-out;
}
@keyframes dotPulse {
    from { transform: scale(0.8); opacity: 0.8; }
    to   { transform: scale(1.4); opacity: 0; }
}

/* Progress bar under dots */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 10;
    width: 0;
    transition: none;
}
.hero-slider-progress.running {
    transition: width linear;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }
.hero-arrow-prev:active { transform: translateY(-50%) translateX(-2px); }
.hero-arrow-next:active { transform: translateY(-50%) translateX(2px); }
@media (max-width: 768px) {
    .hero-arrow { display: none; }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
    overflow: hidden;
}
.hero::before,
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 180, 216, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero-content h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
/* Hero title sizes (admin-controlled) */
.hero-title-small h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.hero-title-medium h1 { font-size: clamp(2rem, 5vw, 3rem); }
.hero-title-large h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.hero-title-xlarge h1 { font-size: clamp(3rem, 7vw, 5rem); }
.hero-sub-small .hero-subtitle { font-size: clamp(0.85rem, 1.5vw, 1rem); }
.hero-sub-medium .hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-sub-large .hero-subtitle { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
.hero-has-image .hero-content h1 { color: #fff; }
.hero-has-image .hero-content h1 .gradient-text {
    background: none; -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff; background-clip: unset; color: #fff;
}
.hero-has-image .hero-subtitle { color: rgba(255, 255, 255, 0.85); }
.hero-has-image .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero-has-image .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(0, 180, 216, 0.04);
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.stat-item p { color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500; }

/* --- Testimonials --- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}
.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}
.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.8125rem; }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-glow), transparent 70%);
    pointer-events: none;
    animation: ctaPulseGlow 4s ease-in-out infinite alternate;
}
@keyframes ctaPulseGlow {
    0%   { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1;   transform: scale(1.1); }
}

/* Floating orbs */
.cta-banner::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    top: -80px; right: -60px;
    animation: ctaOrbFloat 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes ctaOrbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.15); }
}
.cta-orb-left {
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    bottom: -60px; left: -40px;
    animation: ctaOrbFloat2 7s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes ctaOrbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -15px) scale(1.2); }
}

/* Animated grid lines */
.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    animation: ctaGridShift 20s linear infinite;
    pointer-events: none;
}
@keyframes ctaGridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Shimmer line across the section */
.cta-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,180,216,0.4), transparent);
    animation: ctaShimmerSlide 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}
@keyframes ctaShimmerSlide {
    0%   { left: -60%; }
    100% { left: 100%; }
}

.cta-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}
.cta-content .section-label {
    animation: ctaLabelGlow 3s ease-in-out infinite alternate;
}
@keyframes ctaLabelGlow {
    0%   { box-shadow: 0 0 8px rgba(0,180,216,0); }
    100% { box-shadow: 0 0 20px rgba(0,180,216,0.15); }
}
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.0625rem; }
.cta-content .btn-primary {
    position: relative;
    overflow: hidden;
}
.cta-content .btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 70%  { left: -100%; }
    100%     { left: 100%; }
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin-top: 1rem; }
.footer h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--accent-primary); }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .contact-form select {
    background: rgba(0,0,0,0.03);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: var(--radius-md);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.contact-info-item:hover {
    transform: translateX(6px);
    background: var(--accent-glow);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .contact-info-icon {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,180,216,0.15);
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-text h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-info-text p { color: var(--text-secondary); font-size: 0.875rem; }
.map-container {
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.map-container iframe { width: 100%; height: 250px; border: 0; filter: grayscale(0.3); }

.contact-map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.contact-map-card:hover {
    box-shadow: 0 12px 40px rgba(0,180,216,0.08);
    border-color: var(--border-hover);
}
.contact-map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.contact-map-card .map-container {
    margin-top: 0;
    border: none;
    border-radius: 0;
}
.contact-map-card .map-container iframe {
    height: 400px;
    filter: grayscale(0.15);
    transition: filter 0.4s ease;
}
.contact-map-card:hover .map-container iframe {
    filter: grayscale(0);
}

/* Contact Ticket Section */
.contact-ticket-section {
    background: linear-gradient(135deg, #0a0a14 0%, #0f1628 40%, #0d0f1a 100%);
    border-top: none;
    position: relative;
    overflow: hidden;
}
.contact-ticket-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,180,216,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(124,58,237,0.08) 0%, transparent 50%);
    pointer-events: none;
}
[data-theme="light"] .contact-ticket-section {
    background: linear-gradient(135deg, #0a0a14 0%, #0f1628 40%, #0d0f1a 100%);
}
.contact-ticket-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
[data-theme="light"] .contact-ticket-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
.contact-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.contact-ticket-card:hover::before {
    transform: scaleX(1);
}
.contact-ticket-card:hover {
    border-color: rgba(0,180,216,0.3);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 16px 48px rgba(0,180,216,0.1);
}
.contact-ticket-card h2,
.contact-ticket-card p,
.contact-ticket-card .section-label {
    color: #fff;
}
.contact-ticket-card .section-label {
    background: rgba(0,180,216,0.15);
    color: #00b4d8;
}
.contact-ticket-card p {
    color: rgba(255,255,255,0.7);
}
.contact-ticket-card .btn-outline {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.contact-ticket-card .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.contact-ticket-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.contact-ticket-feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}
.contact-ticket-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-ticket-icon-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(124,58,237,0.12));
    border: 1px solid rgba(0,180,216,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00b4d8;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.contact-ticket-card:hover .contact-ticket-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(0,180,216,0.15);
}
/* Ticket icon pulse */
@keyframes ticketIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes ticketRingPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,180,216,0.15); }
    70% { box-shadow: 0 0 0 20px rgba(0,180,216,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,180,216,0); }
}
.contact-ticket-icon-wrap {
    animation: ticketIconFloat 4s ease-in-out infinite, ticketRingPulse 3s ease-out infinite;
}
.contact-ticket-card:hover .contact-ticket-icon-wrap {
    animation: none;
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 50px rgba(0,180,216,0.18);
}

/* Stagger feature items — gated by js-loaded */
.js-loaded .contact-ticket-feat {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-loaded .revealed .contact-ticket-feat:nth-child(1) { transition-delay: 0.2s; }
.js-loaded .revealed .contact-ticket-feat:nth-child(2) { transition-delay: 0.35s; }
.js-loaded .revealed .contact-ticket-feat:nth-child(3) { transition-delay: 0.5s; }
.js-loaded .revealed .contact-ticket-feat {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons stagger — gated by js-loaded */
.js-loaded .contact-ticket-card .hero-buttons {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}
.js-loaded .contact-ticket-card.revealed .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Accent line shimmer on hover */
.contact-ticket-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0,180,216,0.6), rgba(124,58,237,0.6), transparent);
    transition: left 0.8s cubic-bezier(0.22,1,0.36,1);
    z-index: 1;
}
.contact-ticket-card:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .contact-ticket-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    .contact-ticket-features { justify-content: center; }
    .contact-ticket-visual { order: -1; }
    .contact-ticket-icon-wrap { width: 100px; height: 100px; }
    .contact-ticket-icon-wrap svg { width: 44px; height: 44px; }
    .hero-buttons { justify-content: center; }
}

/* --- Team Grid --- */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.team-card .position { color: var(--accent-primary); font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.75rem; }
.team-card .bio { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }
.team-social { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.team-social a {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all var(--transition);
}
.team-social a:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.team-social a svg { width: 14px; height: 14px; }

/* --- Services Grid --- */
.services-grid-section {
    position: relative;
}
.services-grid-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,216,0.04) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: svcOrbDrift 10s ease-in-out infinite alternate;
    pointer-events: none;
}
.services-grid-section::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.03) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    animation: svcOrbDrift2 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes svcOrbDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.15); }
}
@keyframes svcOrbDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -25px) scale(1.1); }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease;
    overflow: hidden;
}

/* Ambient glow behind card */
.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(124,58,237,0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

/* Top accent line */
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 0 0 2px 2px;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.service-card:hover {
    border-color: rgba(0, 180, 216, 0.25);
    transform: translateY(-8px);
    box-shadow:
        0 12px 40px rgba(0, 180, 216, 0.1),
        0 0 60px -10px rgba(0, 180, 216, 0.06);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }

/* Icon float on hover */
.service-card .card-icon {
    margin-bottom: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
}
.service-card:hover .card-icon {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

/* Idle icon breathing */
.service-card.revealed .card-icon {
    animation: iconBreathe 3s ease-in-out infinite;
}
@keyframes iconBreathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
.service-card:hover .card-icon { animation: none; }

/* Image */
.service-card-image {
    margin: -2rem -2rem 1.5rem;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-image img { transform: scale(1.08); }

/* Text */
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.service-card:hover h3 { color: var(--accent-primary); }
.service-card .subtitle {
    color: var(--accent-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Expand detail */
.service-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s ease,
                margin 0.4s ease,
                border-top-width 0.2s ease,
                opacity 0.4s ease;
    border-top: 0 solid var(--border-color);
    margin-top: 0;
    opacity: 0;
}
.service-card.expanded .service-detail {
    max-height: 600px;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top-width: 1px;
    opacity: 1;
}
.service-detail p { margin-bottom: 1rem; }

/* Expand hint */
.service-expand-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-top: 1rem;
    transition: gap 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-expand-hint { gap: 0.6rem; }
.service-expand-hint svg {
    width: 14px; height: 14px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card.expanded .service-expand-hint svg { transform: rotate(180deg); }

/* Expanded card style */
.service-card.expanded {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.08);
}
.service-card.expanded::after { transform: scaleX(1); }
.service-card.expanded .card-icon { animation: none; }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-open { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-progress { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-resolved { background: rgba(16,185,129,0.15); color: #10b981; }
.badge-closed { background: rgba(107,114,128,0.15); color: #6b7280; }
.badge-new { background: rgba(0,180,216,0.15); color: #00b4d8; }
.badge-read { background: rgba(107,114,128,0.15); color: #6b7280; }
.badge-replied { background: rgba(16,185,129,0.15); color: #10b981; }
.badge-spam { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-low { background: rgba(107,114,128,0.15); color: #6b7280; }
.badge-normal { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-high { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-urgent { background: rgba(239,68,68,0.15); color: #ef4444; }

/* --- Ticket Styles --- */
.ticket-form { max-width: 700px; margin: 0 auto; }
.ticket-form .form-group { margin-bottom: 1.25rem; }
.ticket-form label {
    display: block; font-size: 0.8125rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.ticket-form input,
.ticket-form textarea,
.ticket-form select {
    width: 100%; padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary);
    font-size: 0.9375rem; font-family: var(--font-body);
    transition: border-color var(--transition);
}
[data-theme="light"] .ticket-form input,
[data-theme="light"] .ticket-form textarea,
[data-theme="light"] .ticket-form select { background: rgba(0,0,0,0.03); }
.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.ticket-form textarea { min-height: 120px; resize: vertical; }

.ticket-thread { max-width: 700px; margin: 2rem auto 0; }
.ticket-reply {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem;
}
.ticket-reply.admin-reply { border-left: 3px solid var(--accent-primary); }
.ticket-reply-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem; font-size: 0.8125rem;
}
.ticket-reply-sender { font-weight: 600; }
.ticket-reply-time { color: var(--text-muted); }
.ticket-reply-body { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* --- Cookie Consent --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.show { display: block; }
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.cookie-inner p { color: var(--text-secondary); font-size: 0.875rem; flex: 1; }
.cookie-inner p a { color: var(--accent-primary); }
.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* --- Animations --- gated by js-loaded */
.js-loaded .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-loaded .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 20px 5px var(--accent-glow); }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed; top: calc(var(--nav-height) + 1rem); right: 1.5rem;
    z-index: 10000; display: flex; flex-direction: column; gap: 0.75rem;
}
.toast {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 1rem 1.5rem;
    min-width: 300px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.75rem;
    animation: slideInRight 0.3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent-primary); }
.toast-message { flex: 1; font-size: 0.9rem; }
.toast-close {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 0.25rem; font-size: 1.2rem;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Privacy Page --- */
.privacy-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.privacy-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.privacy-content h2:first-of-type { border-top: none; padding-top: 0; }
.privacy-content p, .privacy-content li { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.8; margin-bottom: 1rem; }
.privacy-content ul { padding-left: 1.5rem; }
.privacy-content li { margin-bottom: 0.5rem; }

/* --- Responsive --- */
/* ==========================================================================
   ABOUT PAGE – Hero Card, Mission/Vision, Team Animations
   ========================================================================== */

.about-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
}
.about-hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,180,216,0.12);
}
.about-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.about-hero-card:hover .about-hero-img {
    transform: scale(1.05);
}
.about-hero-stat {
    padding: 2rem;
    position: relative;
}
.about-hero-stat-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.about-hero-card:hover .about-hero-stat-glow {
    opacity: 1;
}
.about-hero-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-hero-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Mission / Vision cards */
.about-mv-card {
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.5s ease,
                border-color 0.4s ease;
}
.about-mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,180,216,0.10);
    border-color: var(--accent-primary);
}
.about-mv-img-wrap {
    overflow: hidden;
    height: 180px;
}
.about-mv-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.about-mv-card:hover .about-mv-img-wrap img {
    transform: scale(1.08);
}
.about-mv-card .card-icon {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-mv-card:hover .card-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,180,216,0.15);
}
.about-mv-card.revealed .card-icon {
    animation: iconBreathe 3s ease-in-out infinite;
}
.about-mv-card:hover .card-icon {
    animation: none;
}

/* Team card enhancements */
.team-card {
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.5s ease,
                border-color 0.4s ease;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,180,216,0.10);
    border-color: var(--accent-primary);
}
.team-card .team-avatar {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.team-card:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0,180,216,0.18);
}
.team-card .team-social a {
    transition: transform 0.3s ease, color 0.3s ease;
}
.team-card .team-social a:hover {
    transform: translateY(-3px);
    color: var(--accent-primary);
}

/* Light-theme overrides for about page */
[data-theme="light"] .about-hero-number {
    -webkit-text-fill-color: unset;
    background: none;
    color: #0891b2;
}
[data-theme="light"] .about-hero-card {
    border-color: #e2e8f0;
}
[data-theme="light"] .about-mv-card {
    border-color: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE — Comprehensive Mobile-First Overhaul
   ========================================================================== */

/* Global overflow guard */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ---------- 1024px – Tablet landscape ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: 85vh; }
    .hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .cta-content { max-width: 90%; }
    .about-grid { gap: 2.5rem !important; }
    .contact-ticket-card { gap: 2rem; padding: 2.5rem; }
}

/* ---------- 768px – Tablet portrait / Small tablets ---------- */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    /* Navigation – mobile: hamburger left, logo right */
    .nav-links { display: none; }
    .nav-actions { order: -1; gap: 0.5rem; flex-direction: row-reverse; }
    .nav-logo { order: 1; }
    .mobile-toggle { display: flex; }
    .nav-logo-img { height: 30px; }
    .theme-toggle { width: 36px; height: 36px; }
    .theme-toggle svg { width: 16px; height: 16px; }
    .lang-toggle { padding: 0.35rem 0.6rem; font-size: 0.7rem; }
    .lang-toggle svg { width: 12px; height: 12px; }

    /* When sidebar is open: raise navbar above the backdrop overlay */
    .navbar.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 15, 0.98);
        z-index: 10002;
    }

    /* ===== MOBILE SIDEBAR ===== */
    .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 82vw;
        background: #12121e !important;
        padding: calc(var(--nav-height) + 1.5rem) 1rem 2rem;
        gap: 0.15rem;
        z-index: 10001;
        border-right: 1px solid rgba(255,255,255,0.1);
        box-shadow: 6px 0 40px rgba(0,0,0,0.6);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(0);
        animation: sidebarSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    @keyframes sidebarSlideIn {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }
    [data-theme="light"] .nav-links.mobile-open { background: #12121e !important; }

    .nav-links.mobile-open li { width: 100% !important; list-style: none !important; }

    /* Main nav links — force white text */
    .nav-links.mobile-open li a,
    .nav-links.mobile-open > li > a,
    [data-theme="light"] .nav-links.mobile-open li a,
    [data-theme="light"] .nav-links.mobile-open > li > a {
        display: block !important;
        padding: 14px 16px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #fff !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        background: transparent !important;
    }
    .nav-links.mobile-open li a:hover,
    .nav-links.mobile-open li a.active,
    [data-theme="light"] .nav-links.mobile-open li a:hover,
    [data-theme="light"] .nav-links.mobile-open li a.active {
        color: #00e5ff !important;
        background: rgba(0,229,255,0.1) !important;
    }

    /* More dropdown toggle */
    .nav-links.mobile-open .nav-dropdown-toggle,
    [data-theme="light"] .nav-links.mobile-open .nav-dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #fff !important;
        border-radius: 10px !important;
        width: 100% !important;
        cursor: pointer !important;
        background: transparent !important;
    }
    .nav-links.mobile-open .nav-dropdown-toggle:hover,
    [data-theme="light"] .nav-links.mobile-open .nav-dropdown-toggle:hover {
        color: #00e5ff !important;
        background: rgba(0,229,255,0.1) !important;
    }
    .nav-links.mobile-open .nav-dropdown-toggle svg {
        display: inline-block !important;
        color: rgba(255,255,255,0.5) !important;
    }

    /* Dropdown submenu items */
    .nav-links.mobile-open .nav-dropdown-parent { width: 100% !important; }
    .nav-links.mobile-open .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 4px 0 8px 16px !important;
        min-width: 0 !important;
        backdrop-filter: none !important;
        display: block !important;
        pointer-events: auto !important;
        border-left: 2px solid rgba(0,229,255,0.2) !important;
        margin-left: 16px !important;
    }
    .nav-links.mobile-open .nav-dropdown-menu li a,
    [data-theme="light"] .nav-links.mobile-open .nav-dropdown-menu li a {
        padding: 10px 14px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: rgba(255,255,255,0.8) !important;
    }
    .nav-links.mobile-open .nav-dropdown-menu li a:hover,
    .nav-links.mobile-open .nav-dropdown-menu li a.active,
    [data-theme="light"] .nav-links.mobile-open .nav-dropdown-menu li a:hover,
    [data-theme="light"] .nav-links.mobile-open .nav-dropdown-menu li a.active {
        color: #00e5ff !important;
        background: rgba(0,229,255,0.08) !important;
    }

    .lang-dropdown { right: auto; left: 0; }

    /* Lock scroll when sidebar open */
    body.mobile-menu-open { overflow: hidden; }

    /* Hero Slider */
    .hero-slider { height: 75vh; min-height: 500px; }
    .hero-slide { padding: calc(var(--nav-height) + 1.5rem) 1rem 3rem; }
    .hero-content { max-width: 100%; padding: 0 0.5rem; }
    .hero-content h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 1rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; max-width: 100%; }
    .hero-buttons { gap: 0.75rem; }
    .hero-buttons .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9rem; }
    .hero-arrow { display: none; }
    .hero-slider-nav { bottom: 1.25rem; }
    .hero-dot { width: 10px; height: 10px; }

    /* Page Hero (inner pages) */
    .page-hero { min-height: 260px; padding: calc(var(--nav-height) + 2rem) 1rem 2rem; }
    .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
    .page-hero-subtitle { font-size: 0.95rem; }

    /* Sections */
    .section { padding: 3rem 0; }
    .container { padding: 0 1rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header p { font-size: 0.95rem; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Cards */
    .card { padding: 1.5rem; }
    .card-thumb { margin: -1.5rem -1.5rem 1.25rem; height: 140px; }

    /* Stats */
    .stat-item { padding: 1rem; }
    .stat-item h3 { font-size: 2rem; }

    /* CTA */
    .cta-content { max-width: 100%; }
    .cta-content h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
    .cta-content p { font-size: 0.95rem; }
    .cta-banner::after { width: 200px; height: 200px; top: -60px; right: -40px; }
    .cta-orb-left { width: 160px; height: 160px; }

    /* About page */
    .about-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .about-hero-number { font-size: 3rem; }
    .about-hero-label { font-size: 1rem; }
    .about-mv-img-wrap { height: 150px; }
    .about-mv-img-wrap img { height: 150px; }

    /* Services page */
    .service-card { padding: 1.5rem; }
    .service-card-image { margin: -1.5rem -1.5rem 1.25rem; height: 150px; }
    .services-grid-section::before,
    .services-grid-section::after { display: none; }

    /* Contact page */
    .contact-map-card .map-container iframe { height: 280px; }
    .contact-map-header { padding: 1rem; }
    .contact-ticket-card {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        text-align: center;
    }
    .contact-ticket-features { justify-content: center; flex-direction: column; align-items: center; }
    .contact-ticket-visual { order: -1; }
    .contact-ticket-icon-wrap { width: 90px; height: 90px; }
    .contact-ticket-icon-wrap svg { width: 40px; height: 40px; }

    /* Ticket page */
    .ticket-form { padding: 0; }
    .ticket-reply-header { flex-direction: column; gap: 0.25rem; align-items: flex-start; }

    /* Footer */
    .footer { padding: 3rem 0 0; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

    /* Cookie banner */
    .cookie-inner { flex-direction: column; text-align: center; gap: 1rem; }
    .cookie-buttons { width: 100%; justify-content: center; }

    /* Toast */
    .toast-container { right: 0.75rem; left: 0.75rem; }
    .toast { min-width: auto; }

    /* Inline grid overrides for about and tickets pages */
    .about-grid,
    .about-grid [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .tickets-layout { grid-template-columns: 1fr !important; }

    /* Chatbot */
    .chat-widget { right: 0.75rem !important; bottom: 0.75rem !important; max-width: calc(100vw - 1.5rem) !important; }

    /* Any table overflow */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- 480px – Small phones ---------- */
@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }

    /* Hero */
    .hero-slider { height: 70vh; min-height: 440px; }
    .hero-content h1 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.2; }
    .hero-subtitle { font-size: 0.875rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-buttons .btn-lg { padding: 0.8rem 1.25rem; font-size: 0.875rem; }

    /* Page hero */
    .page-hero { min-height: 220px; padding: calc(var(--nav-height) + 1.5rem) 0.75rem 1.5rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero-subtitle { font-size: 0.85rem; }
    .page-hero-breadcrumb { font-size: 0.7rem; gap: 0.35rem; }

    /* Sections */
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 1.75rem; }
    .section-label { font-size: 0.65rem; padding: 0.3rem 0.75rem; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-item { padding: 0.75rem; }
    .stat-item h3 { font-size: 1.75rem; }
    .stat-item p { font-size: 0.8rem; }

    /* Cards */
    .card { padding: 1.25rem; }
    .card h3 { font-size: 1.1rem; }
    .card p { font-size: 0.875rem; }

    /* CTA */
    .cta-content h2 { font-size: 1.35rem; }
    .cta-content p { font-size: 0.875rem; margin-bottom: 1.5rem; }

    /* About */
    .about-hero-number { font-size: 2.5rem; }
    .about-hero-stat { padding: 1.25rem; }

    /* Service cards */
    .service-card { padding: 1.25rem; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.85rem; }
    .service-card-image { margin: -1.25rem -1.25rem 1rem; height: 130px; }

    /* Contact */
    .contact-form label { font-size: 0.75rem; }
    .contact-form input, .contact-form textarea, .contact-form select { padding: 0.65rem 0.85rem; font-size: 0.875rem; }
    .contact-info-card { padding: 1.25rem; }
    .contact-info-text h4 { font-size: 0.8rem; }
    .contact-info-text p { font-size: 0.8rem; }
    .contact-map-card .map-container iframe { height: 220px; }
    .contact-ticket-card { padding: 1.25rem; }
    .contact-ticket-card h2 { font-size: 1.35rem; }

    /* Ticket page */
    .ticket-form input, .ticket-form textarea, .ticket-form select { font-size: 0.875rem; }

    /* Team cards */
    .team-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
    .team-card h3 { font-size: 1rem; }
    .team-card .bio { font-size: 0.8rem; }

    /* Footer */
    .footer-grid { gap: 1.5rem; }
    .footer h4 { font-size: 0.8rem; margin-bottom: 0.75rem; }
    .footer-links a { font-size: 0.85rem; }
    .footer-brand p { font-size: 0.85rem; }
    .footer-bottom { font-size: 0.75rem; padding: 1rem 0; }

    /* Privacy */
    .privacy-content { padding: 2rem 0.75rem; }
    .privacy-content h2 { font-size: 1.25rem; }
    .privacy-content p, .privacy-content li { font-size: 0.875rem; }

    /* Buttons */
    .btn { font-size: 0.85rem; padding: 0.65rem 1.25rem; }
    .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.875rem; }
    .btn-sm { padding: 0.45rem 1rem; font-size: 0.75rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem; }
    .testimonial-text { font-size: 0.875rem; }
    .testimonial-avatar { width: 36px; height: 36px; }
}

/* ---------- 360px – Very small screens ---------- */
@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.35rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .nav-logo-img { height: 26px; }
    .nav-actions { gap: 0.35rem; }
    .lang-toggle { padding: 0.3rem 0.5rem; }
}
