/* ═══════════════════════════════════════════════════════════════════
   Nadics Digital Solution — Core Design System
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ──────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary: #4717db;
    --primary-light: #6b3ff5;
    --primary-dark: #3510a8;
    --accent: #a739b3;
    --accent-light: #c560cf;
    --accent-dark: #842e8e;
    --soft: #faecf5;
    --soft-alt: #f3e0f0;

    /* Neutrals */
    --dark: #0d0b1a;
    --dark-alt: #1a1730;
    --dark-card: #211e35;
    --text: #2d2a3e;
    --text-light: #8b87a0;
    --text-muted: #b0adc0;
    --border: #e5e0ef;
    --border-light: #f0ecf7;
    --white: #ffffff;
    --off-white: #faf9fc;

    /* State Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4717db 0%, #a739b3 100%);
    --gradient-primary-r: linear-gradient(135deg, #a739b3 0%, #4717db 100%);
    --gradient-soft: linear-gradient(135deg, #faecf5 0%, #e8d5f5 50%, #ddd0fa 100%);
    --gradient-dark: linear-gradient(135deg, #0d0b1a 0%, #1a1730 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(71,23,219,0.15), transparent 70%);
    --gradient-hero: linear-gradient(160deg, #0d0b1a 0%, #1a1130 40%, #231540 70%, #0d0b1a 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13,11,26,0.06), 0 1px 2px rgba(13,11,26,0.04);
    --shadow-md: 0 4px 14px rgba(13,11,26,0.08), 0 2px 6px rgba(13,11,26,0.04);
    --shadow-lg: 0 12px 40px rgba(13,11,26,0.12), 0 4px 12px rgba(13,11,26,0.06);
    --shadow-xl: 0 20px 60px rgba(13,11,26,0.16), 0 8px 20px rgba(13,11,26,0.08);
    --shadow-glow: 0 0 30px rgba(71,23,219,0.25);
    --shadow-glow-accent: 0 0 30px rgba(167,57,179,0.25);

    /* Typography */
    --font-heading: 'Clash Display', system-ui, -apple-system, sans-serif;
    --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --nav-height: 80px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
    background-color: var(--dark);
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
    width: 100%;
    max-width: 100%;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(71, 23, 219, 0.15);
    color: var(--primary);
}


/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.02em;
}

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

p + p { margin-top: var(--space-md); }


/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section--soft {
    background: var(--gradient-soft);
}

.section--dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}


/* ─── Section Header ─────────────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-header__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-header__label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.section-header__title {
    margin-bottom: var(--space-md);
}

.section-header__desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section--dark .section-header__desc {
    color: var(--text-muted);
}

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


/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.btn svg {
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md), 0 4px 15px rgba(71,23,219,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(71,23,219,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.btn-outline--dark {
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline--dark:hover {
    background: var(--soft);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 0;
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}


/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all var(--duration-normal) var(--ease-out);
}

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

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}


/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--soft);
    color: var(--primary);
    letter-spacing: 0.02em;
}

.badge--accent {
    background: rgba(167,57,179,0.1);
    color: var(--accent);
}


/* ─── Preloader ──────────────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    text-align: center;
}

.preloader__logo {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.preloader__letter {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloaderBounce 1.4s calc(var(--i) * 0.1s) ease-in-out infinite;
}

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

.preloader__bar {
    width: 160px;
    height: 3px;
    background: var(--dark-alt);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader__progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: preloaderProgress 1.8s var(--ease-out) forwards;
}

@keyframes preloaderProgress {
    0% { width: 0%; }
    60% { width: 75%; }
    100% { width: 100%; }
}


/* ─── Navigation ─────────────────────────────────────────────────── */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-header.scrolled {
    background: rgba(13, 11, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0,0,0,0.2);
    height: 70px;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.nav__logo-icon {
    flex-shrink: 0;
}

.nav__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav__logo-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.nav__logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-out);
    transform: translateX(-50%);
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
}

.nav__link.active::after,
.nav__link:hover::after {
    width: 20px;
}

.nav__cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    text-align: center;
}

.mobile-menu__links {
    margin-bottom: var(--space-2xl);
}

.mobile-menu__links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    transition-delay: calc(var(--i) * 80ms + 200ms);
}

.mobile-menu.open .mobile-menu__links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__link {
    display: block;
    padding: var(--space-md) 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: color var(--duration-fast) var(--ease-out);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    color: var(--white);
}

.mobile-menu__link.active {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu__cta {
    margin-bottom: var(--space-2xl);
}

.mobile-menu__info {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 2;
}


/* ─── Page Hero (inner pages) ────────────────────────────────────── */
.page-hero {
    padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Optional admin-uploaded background overlay image.
   Sits behind the glows and text, with a dark brand-tinted wash on top
   so the white heading and breadcrumb stay perfectly legible. */
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;      /* fill the hero, keep aspect ratio, never stretch */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13,11,26,0.55) 0%, rgba(13,11,26,0.72) 55%, rgba(13,11,26,0.92) 100%),
        linear-gradient(120deg, rgba(71,23,219,0.45) 0%, rgba(26,17,48,0.30) 45%, rgba(167,57,179,0.35) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(71,23,219,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167,57,179,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero__title {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb a {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.page-hero__breadcrumb a:hover {
    color: var(--white);
}

.page-hero__breadcrumb span {
    color: var(--accent-light);
}


/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-top: 60px;
}

.footer__wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    /* Match the dark footer so the wave blends in — the sections above the
       footer are dark, so a white wave would leave a white blob behind the
       brand logo/name. */
    color: var(--dark);
    line-height: 0;
    pointer-events: none;
    z-index: 0;
}

.footer__wave svg {
    width: 100%;
    height: 80px;
}

.section--soft + .footer .footer__wave {
    color: var(--soft);
}

.footer__content {
    padding-top: var(--space-3xl);
    /* Sit above the decorative wave so it can never clip the brand/logo */
    position: relative;
    z-index: 1;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
}

.footer__socials {
    display: flex;
    gap: var(--space-sm);
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.footer__social:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-normal) var(--ease-out);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__links a:hover::before {
    width: 12px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-light);
}

.footer__contact a {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer__bottom-links a {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__bottom-links a:hover {
    color: var(--white);
}


/* ─── Back to Top ────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), 0 8px 25px rgba(71,23,219,0.4);
}

.back-to-top__progress {
    position: absolute;
    inset: -4px;
    transform: rotate(-90deg);
}

.back-to-top__progress circle {
    stroke: rgba(255,255,255,0.3);
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 50ms linear;
}


/* ─── Scroll Reveal Animations ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for children */
.stagger-children > * {
    transition-delay: calc(var(--child-index, 0) * 100ms);
}


/* ─── Keyframes ──────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(71,23,219,0.2); }
    50% { box-shadow: 0 0 40px rgba(71,23,219,0.4); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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


/* ─── Utility Classes ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }


/* ─── Responsive ─────────────────────────────────────────────────── */

/* Tablet & below */
@media (max-width: 1024px) {
    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .footer__grid {
        /* Two columns on mobile so Quick Links and Our Services sit side by
           side instead of stacking with empty space beside them. */
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl) var(--space-lg);
    }

    /* Brand block spans the full width above the two link columns */
    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .page-hero {
        padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .btn-lg {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
    }

    .mobile-menu__link {
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   CTA Banner (shared — Home, Services, About, Contact)
   ═══════════════════════════════════════════════════════════════════ */
.cta-banner {
    padding: var(--space-5xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft decorative glows */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -12%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 65%);
    border-radius: 50%;
    z-index: -1;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
    border-radius: 50%;
    z-index: -1;
}

.cta-banner__content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner__title {
    color: var(--white);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.cta-banner__desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

/* White, high-contrast button that pops on the gradient */
.cta-banner .btn-outline {
    color: var(--primary);
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(13, 11, 26, 0.18);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                background var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
}

.cta-banner .btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    box-shadow: 0 16px 40px rgba(13, 11, 26, 0.28);
}


/* ═══════════════════════════════════════════════════════════════════
   Service Details Modal (shared — Home & Services pages)
   ═══════════════════════════════════════════════════════════════════ */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility 0s linear var(--duration-normal);
}

.service-modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.service-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 11, 26, 0.55);
    backdrop-filter: blur(4px);
}

.service-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out);
}

.service-modal.is-open .service-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.service-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.service-modal__close svg { width: 18px; height: 18px; }

.service-modal__close:hover {
    transform: rotate(90deg);
    background: var(--white);
}

.service-modal__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-modal__media--noimg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,0.22), transparent 45%),
        radial-gradient(circle at 20% 85%, rgba(255,255,255,0.12), transparent 40%);
}

.service-modal__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-modal__media--noimg .service-modal__img { display: none; }

.service-modal__badge {
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(71, 23, 219, 0.35);
}

.service-modal__badge svg { width: 30px; height: 30px; color: var(--white); }

.service-modal__body {
    padding: calc(var(--space-2xl) + 8px) var(--space-2xl) var(--space-2xl);
    text-align: center;
}

.service-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.service-modal__subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.service-modal__desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.service-modal__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    text-align: left;
    margin-bottom: var(--space-xl);
}

.service-modal__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text);
}

.service-modal__feature svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
}

.service-modal__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.service-modal__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 8px 22px rgba(71, 23, 219, 0.35);
}

@media (max-width: 560px) {
    .service-modal__features { grid-template-columns: 1fr; }
    .service-modal__body { padding: calc(var(--space-xl) + 8px) var(--space-lg) var(--space-xl); }
}
