/* ═══════════════════════════════════════════════════════════
   Assessment Centre Poland – Ultra Premium Design System
   Version 3.0 | 2026
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────── */
:root {
    --navy: #0A2540;
    --navy-deep: #061425;
    --accent: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --secondary: #1E3A8A;
    --surface: #F6F9FC;
    --surface-alt: #EEF2F7;
    --text: #0A2540;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 8px 32px rgba(10, 37, 64, 0.08);
    --card-shadow-hover: 0 16px 48px rgba(10, 37, 64, 0.16);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark Mode */
.dark {
    --navy: #0A2540;
    --navy-deep: #020B14;
    --surface: #0F1A2E;
    --surface-alt: #162036;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ── Base ─────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
}

.dark body,
body.dark {
    background: var(--navy-deep);
    color: var(--text);
}

/* ── Typography ──────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #6366F1 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glass Cards ─────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-4px);
}

/* ── Premium Cards ───────────────────────────── */
.premium-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.dark .premium-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
}

.premium-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.premium-card:hover::before {
    opacity: 1;
}

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent), #00B8D4);
    color: var(--navy);
    font-weight: 700;
    border-radius: 0.75rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    border: 2px solid var(--text);
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.dark .btn-secondary {
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--navy);
    color: white;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* ── Mega Menu ────────────────────────────────── */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(10, 37, 64, 0.15);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 600px;
    z-index: 100;
}

.dark .mega-menu {
    background: var(--surface);
    border: 1px solid var(--glass-border);
}

.mega-trigger:hover .mega-menu,
.mega-trigger:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ── Sticky Header ────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.dark .site-header {
    background: rgba(10, 37, 64, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Hero ──────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 40%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-5%, 10%) scale(1.2);
    }
}

/* ── Section Transitions ─────────────────────── */
.section-gradient {
    background: linear-gradient(180deg, var(--surface) 0%, white 100%);
}

.dark .section-gradient {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--surface) 100%);
}

/* ── Accreditation Bar ────────────────────────── */
.accreditation-logo {
    height: 3rem;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.accreditation-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ── Swiper Custom ────────────────────────────── */
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

/* ── Stats Counter ────────────────────────────── */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Pulse Glow ───────────────────────────────── */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 0 12px transparent;
    }
}

/* ── Dark Mode Toggle ─────────────────────────── */
.dark-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.dark-toggle:hover {
    background: var(--accent);
    color: var(--navy);
    border-color: var(--accent);
}

/* ── Newsletter ──────────────────────────────── */
.newsletter-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: white;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Pricing Calculator ──────────────────────── */
.calc-input {
    background: var(--surface-alt);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.dark .calc-input {
    background: var(--glass-bg);
    color: white;
    border-color: var(--glass-border);
}

.calc-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Mobile Menu ──────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ── Utility ──────────────────────────────────── */
.text-balance {
    text-wrap: balance;
}

.lang-active {
    font-weight: bold;
    text-decoration: underline;
}

/* AOS Overrides */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ── Responsive Helpers ──────────────────────── */
@media (max-width: 768px) {
    .hero-gradient::before {
        width: 90vw;
        height: 90vw;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
}