/* =========================================
   Fonts & CSS Variables
========================================= */
@font-face {
    font-family: 'YearOfHandicrafts';
    src: url('../fonts/YearOfHandicrafts/TheYearofHandicrafts-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

/* Fallback for other weights if available */
@font-face {
    font-family: 'YearOfHandicrafts';
    src: url('../fonts/YearOfHandicrafts/TheYearofHandicrafts-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

:root {
    /* Fonts */
    --font-primary: 'YearOfHandicrafts', 'Inter', sans-serif;
    --font-arabic: 'YearOfHandicrafts', 'Inter', sans-serif;

    /* Light Theme Palette */
    --clr-bg-light: #f8fafc;
    --clr-alt-light: #ffffff;
    --clr-text-light: #0f172a;
    --clr-muted-light: #475569;
    --clr-primary-light: #0d9488;
    --clr-primary-hover-light: #0f766e;
    --clr-secondary-light: #0369a1;
    --clr-border-light: #e2e8f0;
    --clr-card-bg-light: rgba(255, 255, 255, 0.92);
    --clr-overlay-light: rgba(248, 250, 252, 0.92);

    /* Dark Theme Palette */
    --clr-bg-dark: #080d1a;
    --clr-alt-dark: #0e1623;
    --clr-text-dark: #f1f5f9;
    --clr-muted-dark: #94a3b8;
    --clr-primary-dark: #2dd4bf;
    --clr-primary-hover-dark: #5eead4;
    --clr-secondary-dark: #38bdf8;
    --clr-border-dark: #1a2540;
    --clr-card-bg-dark: rgba(14, 22, 35, 0.9);
    --clr-overlay-dark: rgba(5, 8, 18, 0.92);

    /* Default (Dark Mode) */
    --bg: var(--clr-bg-dark);
    --alt-bg: var(--clr-alt-dark);
    --text: var(--clr-text-dark);
    --muted: var(--clr-muted-dark);
    --primary: var(--clr-primary-dark);
    --primary-hover: var(--clr-primary-hover-dark);
    --secondary: var(--clr-secondary-dark);
    --border: var(--clr-border-dark);
    --card-bg: var(--clr-card-bg-dark);
    --overlay: var(--clr-overlay-dark);

    /* Premium Shadow System — 3 elevations */
    --shadow-low: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12);
    --shadow-mid: 0 8px 32px -4px rgba(0,0,0,0.38), 0 4px 16px -4px rgba(0,0,0,0.22);
    --shadow-high: 0 20px 60px -8px rgba(0,0,0,0.55), 0 8px 24px -4px rgba(0,0,0,0.35);
    --shadow: var(--shadow-mid);

    /* Glow System */
    --glow-sm: 0 0 12px rgba(45,212,191,0.18);
    --glow-md: 0 0 28px rgba(45,212,191,0.28);
    --glow-lg: 0 0 50px rgba(45,212,191,0.38);
    --glow: var(--glow-sm);

    /* Layout & Spacing */
    --nav-height: 60px;
    --section-pad-y: 3rem;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.18s ease;
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --bg: var(--clr-bg-light);
    --alt-bg: var(--clr-alt-light);
    --text: var(--clr-text-light);
    --muted: var(--clr-muted-light);
    --primary: var(--clr-primary-light);
    --primary-hover: var(--clr-primary-hover-light);
    --secondary: var(--clr-secondary-light);
    --border: var(--clr-border-light);
    --card-bg: var(--clr-card-bg-light);
    --overlay: var(--clr-overlay-light);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    zoom: 0.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.section-padding {
    padding: var(--section-pad-y) 0;
}

.alt-bg {
    background-color: var(--alt-bg);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.1rem;
}

/* =========================================
   Arabic Typography Utilities
========================================= */
.arabic-text {
    font-family: var(--font-arabic);
}

.arabic-text.large {
    font-size: 1.25rem;
    line-height: 1.8;
}

.arabic-text.medium {
    font-size: 1rem;
    line-height: 1.7;
}

.arabic-text.small {
    font-size: 0.85rem;
    line-height: 1.6;
}


/* =========================================
   Typography & Buttons
========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text);
}

.btn-primary, .btn-secondary, .btn-outline, .btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

/* Premium ripple effect on click */
.btn-primary::after, .btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn-primary:active::after, .btn-outline:active::after { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(20,184,166,0.35), 0 1px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .btn-primary { color: #0a0f1e; }
[data-theme="light"] .btn-primary { color: #fff; }

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(20,184,166,0.45), 0 2px 8px rgba(0,0,0,0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(20,184,166,0.3);
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(20,184,166,0.25);
}

[data-theme="dark"] .btn-primary-small { color: #0a0f1e; }
[data-theme="light"] .btn-primary-small { color: #ffffff; }

.btn-primary-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20,184,166,0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--alt-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-low);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20,184,166,0.3);
}

[data-theme="dark"] .btn-outline:hover { color: #0a0f1e; }
[data-theme="light"] .btn-outline:hover { color: #fff; }

/* Social Auth Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    transition: var(--transition);
    min-height: 48px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-social:hover {
    border-color: var(--primary);
    background: rgba(45,212,191,0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-low);
}

.btn-social .social-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-social.google:hover { border-color: #4285f4; box-shadow: 0 4px 16px rgba(66,133,244,0.2); }
.btn-social.facebook:hover { border-color: #1877f2; box-shadow: 0 4px 16px rgba(24,119,242,0.2); }


/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.navbar::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: var(--card-bg);
    z-index: -1;
}

.nav-container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Auth button in nav — compact on mobile */
.auth-btn-nav {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    min-height: 32px;
    white-space: nowrap;
}

.nav-links {
    display: none; /* Mobile first */
}

/* Nav actions: fills remaining space, right-aligns controls */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    margin-left: 0.5rem;
    overflow: hidden;
}

/* Hide user name text on mobile to save space */
@media (max-width: 767px) {
    #user-name-display { display: none !important; }
    .nav-actions { gap: 0.3rem; }
    #my-courses-nav-btn { font-size: 0.7rem !important; padding: 0.2rem 0.45rem !important; }
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--primary);
}

#theme-icon-light { display: none; }
#theme-icon-dark { display: block; }

[data-theme="light"] #theme-icon-light { display: block; }
[data-theme="light"] #theme-icon-dark { display: none; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    background: rgba(45, 212, 191, 0.1);
}

.hamburger span {
    width: 22px;
    height: 2.5px;
    background-color: var(--text);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.btn-primary-mobile {
    background-color: var(--primary);
    border-radius: var(--border-radius-sm);
}

[data-theme="dark"] .btn-primary-mobile {
    color: #0a0f1e;
}
[data-theme="light"] .btn-primary-mobile {
    color: #fff;
}

/* Modern Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

.scroll-indicator .arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -4px;
}

.scroll-indicator .arrow-chevron {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: -3px 0;
    animation: scrollArrow 2s infinite;
}

.scroll-indicator .arrow-chevron:nth-child(2) {
    animation-delay: -0.2s;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(16px); }
}

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* =========================================
   Hero Section
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 2rem);
    position: relative;
    overflow: hidden;
}

/* Background blob */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.15;
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-text .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-text .subtitle {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-text .intro {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.profile-image-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary-hover), var(--primary));
    background-size: 300% 300%;
    padding: 8px;
    box-shadow: 0 20px 40px -10px rgba(20, 184, 166, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.booking-poster {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 2px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 10px 30px -5px rgba(20, 184, 166, 0.2);
    animation: floatPoster 6s ease-in-out infinite;
    transition: var(--transition);
}

.booking-poster:hover {
    border-color: var(--primary);
}

.profile-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--alt-bg);
    display: none; /* hidden until src is added */
}

/* Show image if src is not empty */
.profile-img-placeholder:not([src=""]) {
    display: block;
}

/* Hide fallback if image is shown */
.profile-img-placeholder:not([src=""]) + .profile-icon-fallback {
    display: none;
}

.profile-icon-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--alt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon-fallback i {
    font-size: 8rem;
    color: var(--muted);
}

.animate-profile {
    animation: floatProfile 6s ease-in-out infinite, gradientFrame 8s ease infinite;
}

@keyframes floatProfile {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); box-shadow: 0 30px 50px -10px rgba(20, 184, 166, 0.5); }
    100% { transform: translateY(0px); }
}

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

@keyframes floatPoster {
    0% { transform: translateY(0px); box-shadow: 0 10px 30px -5px rgba(20, 184, 166, 0.2); }
    50% { transform: translateY(-12px); box-shadow: 0 25px 45px -5px rgba(20, 184, 166, 0.4); }
    100% { transform: translateY(0px); box-shadow: 0 10px 30px -5px rgba(20, 184, 166, 0.2); }
}

/* =========================================
   About Section
========================================= */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.about-text strong {
    color: var(--text);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,212,191,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,0.4); box-shadow: var(--shadow-mid), var(--glow-sm); }
.stat-card:hover::before { opacity: 1; }

.stat-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.stat-card p { font-size: 0.85rem; color: var(--muted); }

/* =========================================
   Expertise Section (Tabs)
========================================= */
.expertise-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-card, .service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.skill-card::after, .service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    transform-origin: left;
}

.skill-card:hover, .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-mid), var(--glow-sm);
    border-color: rgba(45,212,191,0.35);
}

.skill-card:hover::after, .service-card:hover::after { transform: scaleX(1); }

.skill-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-card .icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card ul li {
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-card ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--bg);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.timeline-content .date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

/* =========================================
   Courses Section
========================================= */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.course-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(45,212,191,0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-high), var(--glow-sm);
    border-color: rgba(45,212,191,0.3);
}

.course-card:hover::before { opacity: 1; }

.course-thumbnail {
    aspect-ratio: 16 / 9;
    height: auto;
    background: linear-gradient(135deg, var(--border) 0%, var(--alt-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.course-thumbnail i.ph-image {
    font-size: 3rem;
    color: var(--muted);
    opacity: 0.5;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    left: 0;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.course-card:hover .course-thumbnail img { transform: scale(1.06); }

.course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-badge {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.course-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.course-info h3 small {
    color: var(--muted);
    font-weight: 400;
}

.course-info p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.subscribe-btn {
    width: 100%;
}

/* =========================================
   Booking Section
========================================= */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.booking-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.booking-text p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.booking-embed {
    height: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--alt-bg);
}

.external-booking-btn {
    display: inline-flex;
    margin-top: 1rem;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--alt-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--muted);
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--muted);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1px solid var(--border);
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .social-links a:hover {
    color: #0f172a;
}
[data-theme="light"] .social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================================
   Modal
========================================= */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(4, 7, 15, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(145deg, rgba(14,22,35,0.98) 0%, rgba(10,16,26,0.98) 100%);
    border: 1px solid rgba(45,212,191,0.15);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), var(--glow-sm);
    opacity: 0;
}

[data-theme="light"] .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(13,148,136,0.2);
    box-shadow: 0 32px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Auth Modal Premium Header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.auth-modal-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(45,212,191,0.3);
    margin: 0 auto 0.85rem;
    display: block;
    box-shadow: var(--glow-sm);
}

.auth-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.auth-modal-header p {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Divider with text */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Auth Tabs Premium */
.auth-tabs-premium {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: 3px;
    margin-bottom: 1.5rem;
    gap: 3px;
}

[data-theme="light"] .auth-tabs-premium {
    background: rgba(0,0,0,0.04);
}

.auth-tab-btn {
    flex: 1;
    padding: 0.55rem;
    background: none;
    border: none;
    border-radius: calc(var(--border-radius-sm) - 2px);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #0a0f1e;
    box-shadow: 0 2px 8px rgba(45,212,191,0.3);
}

[data-theme="light"] .auth-tab-btn.active { color: #fff; }

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

[data-theme="light"] .close-modal { background: rgba(0,0,0,0.04); }

.close-modal:hover {
    color: var(--text);
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h3 { margin-bottom: 1rem; }

.modal-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Premium Input Fields */
.subscription-form input,
.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="light"] .subscription-form input,
[data-theme="light"] .auth-input {
    background-color: rgba(0,0,0,0.03);
}

.subscription-form input:focus,
.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(45,212,191,0.04);
    box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}

.subscription-form input::placeholder,
.auth-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* =========================================
   Animations (Scroll Reveal + Micro-interactions)
========================================= */

/* Anchor offset — prevents headings hiding behind fixed nav */
section[id], [id] {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.animate-on-scroll {
    opacity: 0;
    /* Extremely smooth exponential-out easing curve for a premium feel */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modern Fade Up + Blur + Slight Scale (Apple-style reveal) */
.animate-on-scroll.fade-up {
    transform: translateY(30px) scale(0.98);
    filter: blur(8px);
}

/* Slide in from right */
.animate-on-scroll.fade-right {
    transform: translateX(40px);
    filter: blur(5px);
}

/* Slide in from left */
.animate-on-scroll.fade-left {
    transform: translateX(-40px);
    filter: blur(5px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    filter: blur(0);
}

/* Stagger children inside animated containers */
.animate-on-scroll.visible .skill-card:nth-child(1),
.animate-on-scroll.visible .service-card:nth-child(1),
.animate-on-scroll.visible .course-card:nth-child(1),
.animate-on-scroll.visible .stat-card:nth-child(1) { transition-delay: 0.05s; }

.animate-on-scroll.visible .skill-card:nth-child(2),
.animate-on-scroll.visible .service-card:nth-child(2),
.animate-on-scroll.visible .course-card:nth-child(2),
.animate-on-scroll.visible .stat-card:nth-child(2) { transition-delay: 0.12s; }

.animate-on-scroll.visible .skill-card:nth-child(3),
.animate-on-scroll.visible .service-card:nth-child(3),
.animate-on-scroll.visible .course-card:nth-child(3),
.animate-on-scroll.visible .stat-card:nth-child(3) { transition-delay: 0.19s; }

/* Card hover micro-interactions */
.skill-card, .service-card, .stat-card, .course-card, .glass-card {
    will-change: transform;
}

/* Primary button pulse on mobile CTA */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35); }
    50%       { box-shadow: 0 4px 28px rgba(45, 212, 191, 0.6); }
}

.hero-cta .btn-primary {
    animation: ctaPulse 3s ease-in-out infinite;
}

.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:active {
    animation: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
    .booking-poster, .profile-image-container { animation: none !important; }
}

/* Form inputs — smoother focus glow on mobile */
.contact-form input,
.contact-form textarea,
.subscription-form input {
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1rem; /* prevents iOS auto-zoom on focus */
}

.contact-form input:focus,
.contact-form textarea:focus,
.subscription-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* =========================================
   Responsive Media Queries — Mobile First
========================================= */

/* ── Extra Small Mobile: < 380px ── */
@media (max-width: 379px) {
    html { font-size: 14px; }

    .container { width: 95%; padding: 0; }

    .hero-text h1 { font-size: 1.7rem; letter-spacing: -0.5px; }
    .hero-text .subtitle { font-size: 0.9rem; }
    .hero-text .intro { font-size: 0.85rem; }

    .profile-image-container { width: 180px; height: 180px; }

    .section-header h2 { font-size: 1.4rem; }

    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .mobile-link { font-size: 0.88rem; }

    .modal-content { padding: 1.25rem; width: 95%; }
}

/* ── Small Mobile: 380px – 767px ── */
@media (max-width: 767px) {
    :root {
        --section-pad-y: 3.5rem;
    }

    .section-padding { padding: var(--section-pad-y) 0; }

    .container { width: 92%; }

    /* Buttons — full-width, touch-friendly */
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary,
    .hero-cta .btn-outline {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        min-height: 100vh;
        padding-bottom: 4rem;
        display: flex;
        align-items: center;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text { width: 100%; }

    .hero-text h1 {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
        line-height: 1.25;
    }

    .hero-text .subtitle { font-size: 1rem; line-height: 1.5; }
    .hero-text .intro { font-size: 0.92rem; margin: 0 auto 1.75rem; max-width: 320px; }

    .hero-text .badge { font-size: 0.78rem; }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero-visual { width: 100%; }

    .profile-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Section headers */
    .section-header h2 { font-size: 1.6rem; }
    .section-header { margin-bottom: 2rem; }
    .section-subtitle { font-size: 0.92rem; }

    /* About */
    .about-grid { flex-direction: column; gap: 1.5rem; }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .about-text p { font-size: 0.92rem; line-height: 1.7; }

    /* Stat cards */
    .stat-card { padding: 1.25rem; }
    .stat-card i { font-size: 1.4rem; margin-bottom: 0.75rem; }
    .stat-card h4 { font-size: 0.95rem; }

    /* Expertise tabs */
    .expertise-tabs { gap: 0.5rem; }
    .tab-btn { font-size: 0.95rem; padding: 0.4rem 0.75rem; }

    /* Grid layouts */
    .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 1rem; }

    .skill-card, .service-card { padding: 1.25rem; }
    .skill-card h3, .service-card h3 { font-size: 1rem; }
    .skill-card ul li { font-size: 0.88rem; }
    .service-card p { font-size: 0.88rem; }

    /* Courses */
    .courses-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .course-thumbnail { aspect-ratio: 16 / 9; height: auto; }
    .course-info { padding: 1.1rem; }
    .course-info h3 { font-size: 1rem; }
    .course-info p { font-size: 0.88rem; margin-bottom: 1rem; }

    /* Booking */
    .booking-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
        text-align: center;
    }
    .booking-text h2 { font-size: 1.6rem; }
    .booking-text p { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
    .booking-poster { max-height: 300px; }
    .external-booking-btn { width: 100%; justify-content: center; }

    /* Timeline */
    .timeline-content { padding: 1rem; }
    .timeline-content h3 { font-size: 0.95rem; }
    .timeline-content h4 { font-size: 0.85rem; }

    /* Glass card */
    .glass-card { padding: 1.25rem; }

    /* Modal */
    .modal-content { width: 93%; padding: 1.5rem; max-height: 90vh; overflow-y: auto; }

    /* Toast */
    .toast-container { right: 10px; bottom: 80px; left: 10px; }
    .toast { font-size: 0.88rem; padding: 0.75rem 1rem; }

    /* Pricing table */
    #pricing .container { padding: 0; }
    #pricing table th, #pricing table td { padding: 0.75rem 0.5rem; font-size: 0.82rem; }

    /* Blog / testimonials */
    #blog-posts-container, #home-testimonials-container { grid-template-columns: 1fr !important; }

    /* Contact form */
    .contact-wrapper { padding: 1.25rem !important; }
}

/* ── Tablet: 768px+ ── */
@media (min-width: 768px) {
    :root {
        --section-pad-y: 4rem;
        --nav-height: 70px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-container {
        width: 90%;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .auth-btn-nav {
        padding: 0.5rem 1.2rem;
        font-size: 1rem;
    }

    .nav-actions {
        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 1.5rem;
        margin-left: 0;
    }

    #theme-toggle {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    .hero-text .intro {
        font-size: 1.1rem;
    }

    .profile-image-container {
        width: 300px;
        height: 300px;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .course-thumbnail {
        height: 200px;
    }

    .course-thumbnail i.ph-image {
        font-size: 4rem;
    }

    .booking-embed {
        height: 500px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
        padding-right: 2rem;
    }

    .hero-cta {
        flex-direction: row;
    }

    .hero-visual {
        flex: 1;
    }

    .about-grid {
        flex-direction: row;
        align-items: center;
    }

    .about-text {
        flex: 3;
        padding-right: 2rem;
    }

    .about-stats {
        flex: 2;
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .nav-links a {
        font-weight: 500;
        font-size: 0.95rem;
    }

    .nav-links a:hover:not(.btn-primary-small) {
        color: var(--primary);
    }

    .hero::before {
        width: 500px;
        height: 500px;
        top: 10%;
        right: 0;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(4, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   Toast Notifications
========================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--alt-bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success i { color: var(--primary); }
.toast.success { border-left: 4px solid var(--primary); }
.toast.error i { color: #ef4444; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info i { color: #3b82f6; }
.toast.info { border-left: 4px solid #3b82f6; }

/* =========================================
   Modern Section Dividers
========================================= */
.modern-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(99%);
    z-index: 10;
}

.modern-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.modern-divider .shape-fill {
    fill: var(--alt-bg);
}

.alt-bg + .modern-divider .shape-fill {
    fill: var(--bg);
}

@media (min-width: 768px) {
    .modern-divider svg {
        height: 60px;
    }
}

/* glass-panel helper (used by booking section) */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* =========================================
   Footer Utilities
========================================= */
.footer-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.75;
    transition: opacity 0.2s, color 0.2s;
}
.footer-link:hover { opacity: 1; color: var(--primary); }

.footer-social-btn {
    width: 36px;
    height: 36px;
    background: var(--alt-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}
.footer-social-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(45,212,191,0.08); }

/* Footer inline-grid responsive override */
.footer-inline-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
    .footer-inline-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }
}
@media (max-width: 540px) {
        gap: 1.75rem;
        padding: 2rem 0 1.5rem;
    }
}

/* Mobile Menu Icons */
.mobile-link:hover { background: rgba(45,212,191,0.08); color: var(--primary); }
.mobile-link i { font-size: 1.05rem; color: var(--primary); flex-shrink: 0; }

/* WhatsApp button — shift up on mobile so it clears toasts */
@media (max-width: 767px) {
    .whatsapp-btn { bottom: 16px !important; left: 16px !important; width: 52px !important; height: 52px !important; font-size: 1.6rem !important; }
}

/* =========================================
   WhatsApp Premium Styling — High Visibility
========================================= */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.3) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.whatsapp-btn:hover {
    transform: scale(1.12) translateY(-3px) !important;
    box-shadow: 0 12px 36px rgba(37,211,102,0.6), 0 4px 12px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

.whatsapp-btn:active {
    transform: scale(0.96) !important;
}

/* Pulse animation for WhatsApp */
@keyframes whatsappPulse {
    0% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-btn { animation: whatsappPulse 2.5s infinite !important; }
.whatsapp-btn:hover { animation: none !important; }

/* Cookie banner mobile */
@media (max-width: 600px) {
    #cookie-consent-banner { width: 96% !important; padding: 1.1rem 1.25rem !important; border-radius: 12px !important; bottom: 80px !important; }
    #cookie-consent-banner p { font-size: 0.85rem !important; }
}

/* Legal Pages */
.legal-page { padding-top: calc(var(--nav-height) + 3rem); min-height: 100vh; padding-bottom: 5rem; }
.legal-hero { background: linear-gradient(135deg, rgba(45,212,191,0.07) 0%, transparent 60%); border-bottom: 1px solid var(--border); padding: 3rem 0 2.5rem; margin-bottom: 3rem; }
.legal-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-hero p { color: var(--muted); }
@media (max-width: 767px) {
    .legal-hero h1 { font-size: 1.5rem; }
    .legal-page { padding-top: calc(var(--nav-height) + 1.5rem); padding-bottom: 3rem; }
}
.legal-content h2 { font-size: 1.1rem; color: var(--text); margin: 2.5rem 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.legal-content h2 i { color: var(--primary); font-size: 1rem; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content ul li { margin-bottom: 0.4rem; }
.legal-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(45,212,191,0.1); color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-bottom: 1rem; }

/* =========================================
   Premium Page Load Animation
========================================= */
@keyframes pageReveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-text, .hero-visual {
    animation: pageReveal 0.8s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-visual { animation-delay: 0.15s; }

/* =========================================
   Email Verification Modal — Premium
========================================= */
.verify-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,7,15,0.92);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.4s ease;
}

.verify-modal-box {
    background: linear-gradient(145deg, rgba(14,22,35,0.99) 0%, rgba(8,13,26,0.99) 100%);
    border: 1px solid rgba(45,212,191,0.2);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7), var(--glow-md);
    animation: modalSpring 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

[data-theme="light"] .verify-modal-box {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf9 100%);
    border-color: rgba(13,148,136,0.25);
}

@keyframes modalSpring {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.verify-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(45,212,191,0.15) 0%, rgba(45,212,191,0.05) 100%);
    border: 2px solid rgba(45,212,191,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--primary);
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.25); }
    50% { box-shadow: 0 0 0 12px rgba(45,212,191,0); }
}

.verify-modal-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.verify-modal-box p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.verify-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45,212,191,0.1);
    border: 1px solid rgba(45,212,191,0.25);
    color: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    word-break: break-all;
}

.verify-timer {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.verify-timer span {
    color: var(--primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.verify-resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
    padding: 0;
}

.verify-resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: none;
}

/* =========================================
   Account Exists Modal — Premium
========================================= */
.exists-modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(251,191,36,0.05) 100%);
    border: 2px solid rgba(251,191,36,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: #fbbf24;
}

/* =========================================
   Account Success Modal — Premium
========================================= */
.success-check-anim {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.06) 100%);
    border: 2px solid rgba(16,185,129,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.4rem;
    color: #10b981;
    animation: successBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes successBounce {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================================
   Premium Toast Upgrade
========================================= */
.toast {
    background: linear-gradient(135deg, rgba(14,22,35,0.98) 0%, rgba(10,16,26,0.98) 100%);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    max-width: 340px;
    backdrop-filter: blur(16px);
}

[data-theme="light"] .toast {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

/* =========================================
   Mobile Menu Icons
========================================= */
.mobile-link:hover { background: rgba(45,212,191,0.08); color: var(--primary); }
.mobile-link i { font-size: 1.05rem; color: var(--primary); flex-shrink: 0; }

/* =========================================
   Spinning Indicator
========================================= */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.ph-spinner { animation: spin 0.8s linear infinite; }

/* =========================================
   Auth Loading State
========================================= */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
