﻿/* ============================================================
   AYAR TRAVEL — MASTER STYLESHEET
   Clean, single-source, no duplicates, fully documented
   ============================================================ */

/* ─── 1. GOOGLE FONTS IMPORT ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* ─── 2. DESIGN TOKENS ───────────────────────────────────── */
:root {
    /* Brand Colors */
    --clr-dark:       #071A1A;   /* deep teal (almost black) */
    --clr-mid:        #134548;   /* richer teal-green */
    --clr-cyan:       #1FB6AE;   /* brighter cyan accent for better contrast */
    --clr-gold:       #D4AF37;   /* clearer gold accent */
    --clr-cyan-rgb:   31, 182, 174;   /* same as --clr-cyan, as r,g,b for rgba() */
    --clr-gold-rgb:   212, 175, 55;   /* same as --clr-gold, as r,g,b for rgba() */

    /* Shadows for gold/cyan buttons */
    --clr-cyan-shadow: #52969b;
    --clr-gold-shadow: #8c7340;

    /* Text */
    --txt-light:  #F4F7F6;   /* off-white — on dark backgrounds */
    --txt-dark:   #2C3E50;   /* near-black — on light backgrounds */
    --txt-muted:  #556877;   /* secondary text on light bg */

    /* Surfaces */
    --bg-page:   #F0F4F4;   /* light gray page background */
    --bg-white:  #FFFFFF;

    /* Whatsapp */
    --wa-green:        #25d366;
    --wa-green-shadow: #1da851;

    /* Spacing */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  80px;

    /* Radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  15px;
    --radius-xl:  20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-mid:  0.3s ease;
    --transition-slow: 0.4s ease-out;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* smooth "settle" curve for premium hover motion */

    /* Typography */
    --font-body: 'Tajawal', sans-serif;
    --lh-heading: 1.25; /* tighter line-height for multi-line headings than the 1.7 body default */

    /* Shadow system — tinted with the brand's dark teal instead of flat black,
       so elevation reads as "branded depth" rather than a generic drop shadow */
    --shadow-tint: 8, 28, 28;
    --shadow-sm: 0 2px 10px rgba(var(--shadow-tint), 0.10);
    --shadow-md: 0 10px 30px rgba(var(--shadow-tint), 0.12), 0 2px 8px rgba(var(--shadow-tint), 0.08);
    --shadow-lg: 0 22px 55px rgba(var(--shadow-tint), 0.18), 0 6px 16px rgba(var(--shadow-tint), 0.10);
    --shadow-glow-cyan: 0 14px 32px rgba(31, 182, 174, 0.25);
    --shadow-glow-gold: 0 14px 32px rgba(212, 175, 55, 0.25);
}

/* ─── 3. RESET & BASE ────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--clr-cyan) var(--bg-page);
    scrollbar-width: thin;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--bg-page);
    color: var(--txt-dark);
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Tighter, more deliberate rhythm for headings than the airy 1.7 body line-height,
   plus a nicer last-line break on wrapped titles where the browser supports it */
h1, h2, h3 {
    line-height: var(--lh-heading);
    text-wrap: balance;
}

/* Branded text selection + scrollbar, instead of the browser default blue/gray */
::selection {
    background: var(--clr-cyan);
    color: var(--clr-dark);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--clr-cyan), var(--clr-mid));
    border-radius: 10px;
    border: 3px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-cyan);
}

/* ─── 4. NAVBAR ──────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(7, 29, 29, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo-img {
    height: 60px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-mid);
}

.logo-img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--txt-light);
    font-size: 16px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-mid),
                background-color var(--transition-mid);
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--clr-dark);
    background-color: var(--clr-cyan);
}

/* Hamburger toggle — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--clr-gold);
    border-radius: 2px;
    transition: transform var(--transition-mid),
                opacity var(--transition-mid);
}

/* ─── 5. HERO SECTION ────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
    min-height: 85vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: right;
    color: var(--txt-light);
    padding: 50px 5%;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* Soft cyan/gold "spotlight" glow behind the hero content — pure lighting,
   sits below the network canvas (z-index 1) and content (z-index 2) since
   it carries no z-index of its own and is painted first in source order */
.hero::before,
.hero-bg-extended::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(31, 182, 174, 0.20), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.14), transparent 50%);
    pointer-events: none;
}

/* Semi-tall dark hero variant (used in sub-pages) */
.hero-bg-extended {
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
    min-height: 50vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: right;
    color: var(--txt-light);
    padding: 50px 5%;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* Interactive network canvas — sits behind content */
#hero-network,
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* FIXED: was blocking touch scroll on mobile */
}

/* Allow canvas mouse interaction ONLY on non-touch devices */
@media (hover: hover) {
    #hero-network,
    .network-bg {
        pointer-events: auto;
    }
}

/* Ensure hero content sits above canvas */
.relative-z {
    position: relative;
    z-index: 2;
}

/* Hero text block */
.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--clr-cyan);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--txt-light);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* gap handled by .btn-3d margin */
}

/* Quick trust signals under the hero CTAs — real numbers from the site itself */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.hero-trust-badges span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--txt-light);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Animated scroll cue at the bottom of the hero */
.scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--txt-light);
    opacity: 0.7;
    animation: scrollBounce 1.8s ease-in-out infinite;
    pointer-events: none;
}

.scroll-cue .icon-inline {
    width: 28px;
    height: 28px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* Icon badge on the homepage's two main service cards */
.home-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-cyan), var(--clr-mid));
    border-radius: 50%;
    color: var(--txt-light);
}

.home-card-icon .icon-inline {
    width: 30px;
    height: 30px;
}

/* ─── 6. UTILITY COLOR CLASSES ───────────────────────────── */
.gold-text {
    color: var(--clr-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.light-text {
    color: var(--txt-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ─── 7. 3D BUTTONS ──────────────────────────────────────── */
.btn-3d {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    margin: 10px;
    cursor: pointer;
    position: relative;
    top: 0;
    overflow: hidden;
    transition: top var(--transition-fast),
                box-shadow var(--transition-fast);
}

/* Diagonal light-sweep on hover — premium button feel */
.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-3d:hover::before {
    left: 125%;
}

.primary-btn {
    background-color: var(--clr-cyan);
    color: var(--clr-dark);
    box-shadow: 0 6px 0 var(--clr-cyan-shadow),
                0 10px 20px rgba(var(--shadow-tint), 0.35);
}

.primary-btn:hover {
    background-color: #85ccd2;
}

/* Pulsing glow ring — draws the eye to the hero's main call-to-action, no interaction needed */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 0 var(--clr-cyan-shadow),
                    0 10px 20px rgba(0, 0, 0, 0.3),
                    0 0 0 0 rgba(var(--clr-cyan-rgb), 0.5);
    }
    50% {
        box-shadow: 0 6px 0 var(--clr-cyan-shadow),
                    0 10px 20px rgba(0, 0, 0, 0.3),
                    0 0 0 14px rgba(var(--clr-cyan-rgb), 0);
    }
}

.hero-buttons .primary-btn {
    animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-buttons .primary-btn:hover {
    animation-play-state: paused;
}

.primary-btn:active {
    top: 6px;
    box-shadow: 0 0 0 var(--clr-cyan-shadow),
                0 2px 5px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: var(--clr-gold);
    color: var(--clr-dark);
    box-shadow: 0 6px 0 var(--clr-gold-shadow),
                0 10px 20px rgba(var(--shadow-tint), 0.35);
}

.secondary-btn:hover {
    background-color: #d4b070;
}

.secondary-btn:active {
    top: 6px;
    box-shadow: 0 0 0 var(--clr-gold-shadow),
                0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ─── 8. 3D FLOATING LOGO ────────────────────────────────── */
.scene {
    width: 350px;
    height: 350px;
    perspective: 1200px;
    position: relative;
    z-index: 2;
}

/* Floating hero badge — used on sub-pages that don't have the homepage's 3D logo scene.
   Always-on animation (no scroll/hover needed) so it's visible the instant the page loads. */
.hero-float-card {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: 20px;
}

.hero-float-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--clr-cyan);
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-float-icon {
    width: 0.65em;
    height: 0.65em;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.object-3d {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.logo-3d {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
    transform: translateZ(50px);
}

.floating-logo {
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%,
    100% { transform: translateZ(50px) translateY(0px) rotateZ(0deg); }
    50%   { transform: translateZ(50px) translateY(-28px) rotateZ(1.5deg); }
}

/* ─── 9. SECTION SCAFFOLDING ─────────────────────────────── */
.services-section {
    padding: var(--space-xl) 5%;
    text-align: center;
}

.gray-section  { background: linear-gradient(180deg, var(--bg-page), #E7EDED); }
.white-section { background-color: var(--bg-white); }

.section-title h1,
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--clr-dark);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--txt-muted);
    margin-bottom: 50px;
}

/* Small centered accent underline beneath in-page section headings — a quiet
   "designed" touch instead of text floating with no visual anchor.
   Scoped to h2 only: every hero <h1> lives in a right-aligned flex layout
   where a centered bar would float away from the (right-aligned) text. */
.section-title h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-gold));
}

/* ─── 10. CARDS GRID ─────────────────────────────────────── */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.glass-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--clr-gold);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 100%;
    max-width: 320px;
    box-shadow: var(--shadow-md);
}

.glass-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 10px;
}

.glass-card p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--txt-dark);
    line-height: 1.6;
}

/* Team member cards (homepage "من نحن" section) */
.team-card {
    text-align: center;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--txt-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.team-role {
    color: var(--clr-gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.team-btn {
    margin-top: 15px;
}

/* Real fleet photo gallery (tourism-services.html) */
.fleet-tier-title {
    text-align: center;
    color: var(--clr-dark);
    font-size: 1.3rem;
    font-weight: 800;
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 5%;
}

.fleet-gallery {
    margin-bottom: 10px;
}

.fleet-gallery .card-img {
    height: 220px;
    object-position: top;
}

.fleet-gallery h3 {
    text-align: center;
    font-size: 1.1rem;
}

.fleet-cta {
    text-align: center;
    margin-top: 30px;
}

/* Courses CTA card (student-services.html) — links out to the dedicated courses.html page */
.courses-cta-section {
    display: flex;
    justify-content: center;
}

.courses-cta-card {
    display: block;
    max-width: 480px;
    width: 100%;
    text-align: center;
    background: var(--bg-white);
    border: 2px solid var(--clr-cyan);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(var(--clr-cyan-rgb), 0.2);
    color: inherit;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.courses-cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(var(--clr-cyan-rgb), 0.35);
}

.courses-cta-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.courses-cta-card h3 {
    color: var(--clr-dark);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.courses-cta-card p {
    color: var(--txt-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Courses catalogue — search/filter sidebar + results list */
.courses-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: right;
}

.courses-filters {
    flex: 0 0 270px;
    background: var(--bg-white);
    border-top: 4px solid var(--clr-cyan);
    border-radius: var(--radius-lg);
    padding: 25px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-md);
}

.courses-filters h3 {
    color: var(--clr-dark);
    margin-bottom: 5px;
}

.courses-filters label {
    display: block;
    font-weight: 700;
    margin: 16px 0 6px;
    color: var(--txt-dark);
    font-size: 0.9rem;
}

.courses-filters input,
.courses-filters select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--txt-dark);
    background: var(--bg-page);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid);
}

.courses-filters input:focus,
.courses-filters select:focus {
    outline: none;
    border-color: var(--clr-cyan);
    box-shadow: 0 0 0 3px rgba(var(--clr-cyan-rgb), 0.2);
}

.courses-results-wrap {
    flex: 1 1 500px;
    min-width: 280px;
}

.courses-count-label {
    margin-bottom: 18px;
    color: var(--txt-muted);
    font-weight: 700;
    font-size: 1.05rem;
}

.courses-count-label span {
    color: var(--clr-mid);
    font-weight: 900;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-white);
    border-right: 4px solid var(--clr-cyan);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}

.course-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.course-uni-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px;
    flex-shrink: 0;
}

.course-row-info {
    flex: 1;
    min-width: 0;
}

.course-row-info h4 {
    color: var(--clr-dark);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-row-uni {
    color: var(--clr-mid);
    font-weight: 700;
    font-size: 0.9rem;
}

.course-row-meta {
    color: var(--txt-muted);
    font-size: 0.85rem;
    margin-top: 3px;
}

.course-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.course-row-actions .btn {
    margin: 0;
    padding: 9px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
}

.no-results {
    text-align: center;
    color: var(--txt-muted);
    padding: 50px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(0, 0, 0, 0.15);
}

/* Clickable card wrapper */
a.card,
.interactive-card {
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    top: 0;
    transition: transform 0.4s var(--ease-premium),
                box-shadow 0.4s var(--ease-premium),
                border-top-color var(--transition-mid);
}

a.card:hover,
.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-cyan);
    border-top-color: var(--clr-cyan);
}

a.card:active,
.interactive-card:active {
    top: 4px;
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card images */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

/* Tall poster/brochure images */
.poster-img {
    height: 350px;
    object-position: top;
}

/* Official logo images (wordmarks/crests) — shown whole on a clean tile, never cropped */
.card-img.logo-tile {
    object-fit: contain;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
}

/* For logos that include white/transparent elements not visible on a white tile */
.card-img.logo-tile-dark {
    object-fit: contain;
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
}

/* Placeholder logo badge — used for entries with no photo on file */
.uni-badge {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--txt-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    padding: 10px;
}

.badge-1 { background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid)); }
.badge-2 { background: linear-gradient(135deg, var(--clr-mid), var(--clr-cyan)); }
.badge-3 { background: linear-gradient(135deg, var(--clr-dark), var(--clr-gold)); }
.badge-4 { background: linear-gradient(135deg, #2C3E50, var(--clr-cyan)); }

/* Rating + specialty line shown on catalogue cards */
.card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.card-meta .location {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-mid);
}

.card-meta .rating {
    color: var(--clr-gold);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.card-meta .rating b {
    color: var(--txt-dark);
    margin-right: 4px;
    font-weight: 700;
    letter-spacing: 0;
}

.card-meta .specialty {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--txt-muted);
    background: var(--bg-page);
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1.5;
}

/* Rating / specialty / badge inside the details modal */
.modal-badge {
    height: 150px;
    font-size: 2.2rem;
}

.modal-location {
    color: var(--clr-mid);
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-rating {
    color: var(--clr-gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-rating b {
    color: var(--txt-dark);
    letter-spacing: 0;
}

.modal-specialty {
    background: var(--bg-page);
    border-right: 3px solid var(--clr-cyan);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: var(--txt-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ─── 11. MODAL ──────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;           /* shorthand for top/right/bottom/left: 0 */
    z-index: 2000;
    background-color: rgba(7, 29, 29, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
}

.glass-modal {
    background: var(--bg-white);
    border-top: 5px solid var(--clr-cyan);
    border-radius: var(--radius-xl);
    margin: 5% auto;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: right;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-btn {
    color: #888;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-mid),
                transform var(--transition-mid);
}

.close-btn:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

#modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 15px;
}

#modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain; /* never crops — shows full brochure */
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    background-color: var(--bg-page); /* neutral bg behind portrait images */
}

#modal-details {
    font-size: 1rem;
    color: var(--txt-dark);
    font-weight: 400;
}

#modal-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-mid);
    margin: 20px 0 10px;
}

#modal-details ul {
    padding-right: 20px;
    list-style: disc;
    margin-bottom: 15px;
}

#modal-details ul li {
    margin-bottom: 8px;
}

.price-tag {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: var(--clr-gold);
    color: var(--clr-dark);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color var(--transition-mid), transform var(--transition-fast);
}

a.price-tag:hover {
    background-color: #d4b070;
    transform: translateY(-2px);
}

/* ─── 12. WHATSAPP FLOATING BUTTON ───────────────────────── */
.wa-float-3d {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    border-radius: 50%;
    box-shadow: 0 6px 0 var(--wa-green-shadow),
                0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.wa-float-3d:hover {
    transform: scale(1.1) rotate(8deg);
}

.wa-float-3d:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 var(--wa-green-shadow);
}

.wa-icon {
    width: 38px;
    height: 38px;
    fill: white;
}

/* ─── 13. FOOTER ─────────────────────────────────────────── */
footer {
    background-color: var(--clr-dark);
    color: var(--txt-light);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.phone-number {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-gold);
    margin-top: 10px;
    direction: ltr; /* phone numbers always LTR */
}

/* ─── 14. SCROLL FADE-IN ANIMATION ──────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(55px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── 15. RESPONSIVE — TABLET & MOBILE (≤ 768px) ─────────── */
@media screen and (max-width: 768px) {

    /* Show hamburger, hide nav links */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: rgba(7, 29, 29, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        clip-path: circle(0% at top right);
        transition: clip-path var(--transition-slow);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.active {
        clip-path: circle(150% at top right);
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 90%;
        text-align: center;
        padding: 12px;
    }

    /* Hero */
    .hero,
    .hero-bg-extended {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-3d {
        width: 90%;
        margin: 8px 0;
        text-align: center;
    }

    /* 3D logo smaller on mobile */
    .scene {
        width: 250px;
        height: 250px;
        margin: 20px auto 0;
    }

    .hero-float-card {
        width: 160px;
        height: 160px;
        margin: 20px auto 0;
    }

    .hero-float-inner {
        font-size: 4rem;
    }

    /* Section titles */
    .section-title h1,
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Cards — single column */
    .cards-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .glass-card {
        max-width: 100%;
        padding: 20px;
    }

    .card-img {
        height: 180px;
    }

    .uni-badge {
        height: 180px;
        font-size: 1.6rem;
    }

    /* WhatsApp button smaller */
    .wa-float-3d {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .wa-icon {
        width: 30px;
        height: 30px;
    }

    /* Modal */
    .glass-modal {
        padding: 25px 15px;
        margin: 15% auto;
        width: 95%;
        max-width: none;
    }

    #modal-img {
        max-height: 60vh;
    }

    /* Mobile scroll-to-top button */
    .scroll-to-top.show {
        bottom: 90px;
        right: 20px;
    }

    /* Courses catalogue on mobile — stack filters above results */
    .courses-layout {
        flex-direction: column;
        padding: 0 15px;
    }

    .courses-filters {
        position: static;
        flex-basis: auto;
        width: 100%;
        min-width: 0;
    }

    .courses-results-wrap {
        min-width: 0;
        width: 100%;
    }

    .courses-filters input,
    .courses-filters select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        text-overflow: ellipsis;
    }

    .course-row {
        flex-wrap: wrap;
    }

    .course-row-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 10px;
    }

    .course-row-actions .btn {
        flex: 1;
    }

    .courses-count-label {
        text-align: center;
    }
}
/* =========================================================
   إصلاحات صفحة السياحة (الألوان، التخطيط، والوضوح)
========================================================= */

/* 1. إصلاح قسم "لماذا تختارنا" - توسيط وبطاقات واضحة */
.why-us-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 40px auto 0 !important;
    padding: 0 5% !important;
}

.why-us-item {
    background: rgba(255, 255, 255, 0.95) !important; /* خلفية بيضاء صلبة لوضوح النص */
    padding: 25px !important;
    border-radius: 15px !important;
    flex: 1 1 250px !important;
    max-width: 280px !important;
    border-top: 4px solid var(--clr-cyan) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    text-align: center !important;
}

    /* إجبار ألوان النصوص لتكون داكنة ومقروءة */
    .why-us-item h3 {
        color: #071D1D !important;
        margin-bottom: 15px !important;
        font-size: 1.3rem !important;
        font-weight: 800 !important;
    }

    .why-us-item p {
        color: #444444 !important;
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        font-weight: 600 !important;
    }

/* 2. إصلاح قسم "الإحصائيات" - شريط أفقي داكن */
.stats-section {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 40px !important;
    background-color: rgba(7, 29, 29, 0.95) !important;
    padding: 40px 5% !important;
    border-top: 2px solid var(--clr-gold) !important;
    border-bottom: 2px solid var(--clr-gold) !important;
    width: 100% !important;
}

.stat-box {
    text-align: center !important;
}

    .stat-box h3, .stat-box span {
        color: var(--clr-gold) !important;
        font-size: 3rem !important;
        display: inline-block !important;
        font-weight: bold !important;
        margin: 0 !important;
    }

    .stat-box p {
        color: #F4F7F6 !important;
        font-size: 1.2rem !important;
        margin-top: 5px !important;
        font-weight: 700 !important;
    }

/* 3. إصلاح قسم "خطوات الحجز" - بطاقات أفقية متجاورة */
.steps-section {
    background-color: #FFFFFF !important;
    padding: 80px 5% !important;
    text-align: center !important;
}

.steps-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 40px auto 0 !important;
}

.step {
    background: #F0F4F4 !important;
    padding: 30px 20px !important;
    border-radius: 15px !important;
    flex: 1 1 280px !important;
    max-width: 350px !important;
    border: 2px dashed var(--clr-cyan) !important;
    position: relative !important;
    text-align: center !important;
}

.step-number {
    width: 60px !important;
    height: 60px !important;
    background-color: var(--clr-cyan) !important;
    color: #071D1D !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    margin: 0 auto 20px !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.step h3 {
    color: #071D1D !important;
    margin-bottom: 15px !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
}

.step p {
    color: #444444 !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

/* Steps can also be clickable links (used on the homepage journey) */
a.step {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

a.step:hover {
    transform: translateY(-6px);
    border-color: var(--clr-gold) !important;
    box-shadow: 0 15px 30px rgba(var(--clr-cyan-rgb), 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-STACKING CARDS — homepage "رحلتك معنا خطوة بخطوة"
   Each card sticks in place while the next one scrolls up to
   cover it; the covered card shrinks/fades back for a real
   sense of depth (JS drives the per-scroll scale/opacity).
═══════════════════════════════════════════════════════════════ */
.stack-cards {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5%;
}

.stack-card-wrap {
    min-height: 58vh;
    position: relative;
}

.stack-card-wrap:last-child {
    min-height: 0;
}

.stack-step.step {
    display: block !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 110px;
    width: 100%;
    max-width: 100% !important;
    flex: none !important;
    min-height: 220px;
    padding: 45px 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    background: var(--bg-white) !important;
    border: none !important;
    border-top: 6px solid var(--clr-cyan) !important;
    transform-origin: center top;
    will-change: transform, opacity;
}

.stack-card-wrap:nth-child(2) .stack-step { top: 130px; border-top-color: var(--clr-gold) !important; }
.stack-card-wrap:nth-child(3) .stack-step { top: 150px; }
.stack-card-wrap:nth-child(4) .stack-step { top: 170px; border-top-color: var(--clr-gold) !important; }

.stack-step .step-number {
    width: 70px !important;
    height: 70px !important;
    font-size: 2rem !important;
}

/* Small numbered badges for non-"step" cards (e.g. visa document checklist) */
.visa-step-card {
    text-align: center;
}

.mini-step-number {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.4rem !important;
}

.stack-step h3 {
    font-size: 1.7rem !important;
}

.stack-step p {
    font-size: 1.05rem !important;
    max-width: 520px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .stack-card-wrap {
        min-height: 42vh;
    }

    .stack-step.step {
        padding: 30px 24px !important;
        min-height: 180px;
    }

    .stack-step h3 {
        font-size: 1.3rem !important;
    }

    .stack-step p {
        font-size: 0.95rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOURISM PAGE — CONTENT & TRUST SECTIONS
═══════════════════════════════════════════════════════════════ */

/* Hero lead paragraph width */
.hero-lead {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Force the hero headline/lead to light text on this dark hero variant */
.network-section .gold-text {
    color: var(--txt-light);
}

/* White "why us" band directly under the hero */
.why-us-section {
    padding-top: var(--space-lg);
}

.why-us-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Long-form informational text blocks (city guide, travel tips) */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: justify;
    line-height: 1.9;
    color: var(--txt-dark);
}

.content-block {
    margin-bottom: var(--space-md);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-container h3 {
    color: var(--clr-mid);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.info-list {
    list-style-type: disc;
    margin-right: 20px;
}

.info-list li {
    margin-bottom: 15px;
}

.info-list strong {
    color: var(--clr-dark);
}

/* Testimonials */
.testimonials-section .glass-card p:first-child {
    color: var(--clr-gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.testimonials-section .glass-card p em {
    color: var(--txt-muted);
    font-style: normal;
}

.testimonial-author {
    display: block;
    color: var(--clr-gold);
    font-weight: 700;
    margin-top: 15px;
}

/* FAQ accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--clr-dark);
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-mid);
}

.faq-question:hover {
    background-color: var(--bg-page);
}

.toggle-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--clr-cyan);
    color: var(--clr-dark);
    font-weight: 900;
    transition: transform var(--transition-mid);
}

.faq-item.open .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-mid);
    padding: 0 22px;
    color: var(--txt-muted);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 22px 20px;
}

/* Eye-comfort modal variant used on the tourism page */
.eye-comfort-modal {
    background: #FAF8F3;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON — Intelligent & Smooth
═══════════════════════════════════════════════════════════════ */
.scroll-to-top {
    position: fixed;
    bottom: -100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--clr-cyan), var(--clr-cyan-shadow));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: bottom 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(var(--clr-cyan-rgb), 0.3);
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.scroll-to-top.show {
    bottom: 100px;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--clr-cyan-rgb), 0.5);
}

.scroll-to-top:active {
    transform: translateY(2px) scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS & TRANSITIONS
═══════════════════════════════════════════════════════════════ */

/* Smooth page load animation */
body.page-loading {
    opacity: 0;
}

body {
    animation: fadeInPage 0.6s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced card animations */
.glass-card,
.interactive-card {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.35s; }
.glass-card:nth-child(5) { animation-delay: 0.4s; }
.glass-card:nth-child(6) { animation-delay: 0.45s; }

/* Better card hover with gradient overlay */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--clr-cyan-rgb), 0.1), rgba(var(--clr-gold-rgb), 0.1));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-mid);
    pointer-events: none;
    z-index: -1;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Enhanced button hover effects */
.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:active,
.secondary-btn:active {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   IMPROVED TYPOGRAPHY & SPACING
═══════════════════════════════════════════════════════════════ */

/* Better section spacing */
.services-section {
    transition: background-color var(--transition-slow);
}

.section-title {
    margin-bottom: 40px;
}

.section-title h1,
.section-title h2 {
    letter-spacing: -0.5px;
    word-spacing: 2px;
}

.section-title p {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Enhanced text readability */
paragraph,
.glass-card p,
li {
    letter-spacing: 0.2px;
}

/* ═══════════════════════════════════════════════════════════════
   ADVANCED INTERACTIVE EFFECTS
═══════════════════════════════════════════════════════════════ */

/* Ripple effect on click */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Glow effect on focus */
.btn-3d:focus,
.interactive-card:focus,
.faq-question:focus {
    outline: 3px solid var(--clr-cyan);
    outline-offset: 2px;
}

/* Smooth modal animations */
.modal {
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.glass-modal {
    animation: slideDownModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDownModal {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS & POLISH
═══════════════════════════════════════════════════════════════ */

/* Smooth image loading */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.05) contrast(1.05);
}

/* Enhanced link interactions */
a {
    transition: color var(--transition-mid);
}

/* Better focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 3px solid var(--clr-cyan);
    outline-offset: 2px;
}

/* Navbar smooth transitions */
.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

body.nav-scrolled .navbar {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--clr-cyan-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--clr-cyan);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — respect prefers-reduced-motion
   The tilt/parallax JS effects already check this in Script.js;
   this covers the pure-CSS animations (float, pulse, fade-in, ripple).
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Reveal content immediately instead of relying on the (now instant) transition */
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Inline functional icons (replacing emoji per UI/UX skill's no-emoji-icons rule) —
   sized to the surrounding text and colored via currentColor so they inherit context */
.icon-inline {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    display: inline-block;
    fill: currentColor;
}

/* Container cap on ultra-wide monitors so card grids don't stretch absurdly thin/wide */
.services-section .cards-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}