/**
 * MIUCOCO - Premium Boutique Fitness Studio
 * Design System v2.0 - Luxury Minimal Aesthetic
 * 
 * Color Palette:
 * - Background: Off-White (#FAF9F7), Warm Cream (#F5F2EE)
 * - Accent: Sand (#E8E2DA), Taupe (#D4CCC4), Dusty Rose (#E5D5D0)
 * - Text: Anthracite (#1A1A1A), Muted (#6B6B6B)
 * - Course Colors: Sage, Dusty Rose, Sand, Taupe, Lavender
 */

/* ============================================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Colors - Primary Palette */
    --color-bg: #FAF9F7;
    --color-bg-warm: #F5F2EE;
    --color-bg-accent: #EDE8E3;
    
    /* Colors - Neutrals */
    --color-white: #FFFFFF;
    --color-sand: #E8E2DA;
    --color-taupe: #D4CCC4;
    --color-border: #E5E0DB;
    --color-border-light: #F0EBE6;
    
    /* Colors - Text */
    --color-text: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #8A8A8A;
    --color-text-light: #B0B0B0;
    
    /* Colors - Course Categories */
    --color-barre: #D4A5A5;
    --color-barre-light: #F5E6E6;
    --color-pilates: #A5B8A5;
    --color-pilates-light: #E6F0E6;
    --color-mental: #B8A5C4;
    --color-mental-light: #F0E6F5;
    --color-yoga: #C4B8A5;
    --color-yoga-light: #F5F0E6;
    --color-hiit: #A5C4C4;
    --color-hiit-light: #E6F5F5;
    
    /* Colors - UI States */
    --color-success: #7A9A7A;
    --color-success-light: #E8F0E8;
    --color-error: #C47A7A;
    --color-error-light: #F5E8E8;
    --color-warning: #C4A87A;
    --color-warning-light: #F5F0E8;
    --color-info: #7A9AC4;
    --color-info-light: #E8F0F5;
    
    /* Legacy color variables for compatibility */
    --color-primary: #1A1A1A;
    --color-primary-dark: #000000;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --text-xs: 1rem;
    --text-sm: 1rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.04);
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.10);
    --shadow-xl: 0 16px 48px rgba(26, 26, 26, 0.12);
    
    /* Transitions - SLOWER for floating feel */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-float: cubic-bezier(0.23, 1, 0.32, 1);
    --duration-fast: 300ms;
    --duration-normal: 500ms;
    --duration-slow: 800ms;
    --duration-slower: 1200ms;
    
    /* Layout */
    --header-height: 96px;
    --container-max: 1280px;
    --container-narrow: 960px;
}

/* ============================================================
   CSS RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

h1 em, h2 em, h3 em, h4 em {
    font-style: italic;
    font-weight: 400;
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

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

.text-small {
    font-size: var(--text-sm);
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

main {
    min-height: calc(100vh - var(--header-height));
}

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

.section--compact {
    padding: var(--space-16) 0;
}

.section--large {
    padding: var(--space-32) 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(250, 249, 247, 1) 0%, rgba(250, 249, 247, 0.5) 70%, rgba(250, 249, 247, 0) 100%);
    z-index: 1000;
    transition: background 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.header--scrolled {
    background: linear-gradient(180deg, rgba(250, 249, 247, 1) 0%, rgba(250, 249, 247, 0.8) 70%, rgba(250, 249, 247, 0) 100%);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header__logo-img {
    height: 40px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--duration-normal) var(--ease-out);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-text);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__login-btn {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    transition: color var(--duration-fast) var(--ease-out);
}

.header__login-btn:hover {
    color: var(--color-text);
}

.header__user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    transition: background var(--duration-fast) var(--ease-out);
}

.header__user-btn:hover {
    background: var(--color-sand);
}

.header__user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-taupe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.header__user-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.header__cta {
    margin-left: var(--space-2);
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) var(--ease-out);
}

.header__mobile-toggle:hover {
    background: var(--color-sand);
}

.header__mobile-toggle-bar {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.header__mobile-toggle.is-active .header__mobile-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__mobile-toggle.is-active .header__mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.is-active .header__mobile-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU - BENTO STYLE
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease-out;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    min-height: 100%;
    background: #FAF9F7;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__logo img {
    height: 28px;
}

.mobile-menu__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-sand);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.mobile-menu__close:hover {
    background: var(--color-taupe);
}

/* Bento Grid */
.mobile-menu__bento {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: var(--space-6);
    background: #FAF9F7;
}

.bento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.is-open .bento-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.mobile-menu.is-open .bento-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .bento-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .bento-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .bento-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .bento-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open .bento-item:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.is-open .bento-item:nth-child(7) { transition-delay: 0.4s; }

.bento-item:hover {
    background: var(--color-sand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bento-item--highlight {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
    grid-column: span 2;
}

.bento-item--highlight:hover {
    background: var(--color-text-secondary);
}

.bento-item__icon {
    margin-bottom: var(--space-2);
}

.bento-item__label {
    font-size: var(--text-sm);
    font-weight: 500;
}

.bento-item--highlight .bento-item__label {
    font-size: var(--text-base);
}

/* Footer */
.mobile-menu__footer {
    padding: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-menu__user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-text);
    font-weight: 500;
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.mobile-menu__user:hover {
    background: var(--color-sand);
}

.mobile-menu__avatar {
    width: 48px;
    height: 48px;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-lg);
}

.mobile-menu__user-info {
    display: flex;
    flex-direction: column;
}

.mobile-menu__user-name {
    font-weight: 600;
    font-size: var(--text-base);
}

.mobile-menu__user-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 400;
}

.mobile-menu__login {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.mobile-menu__cta {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    .header__actions {
        display: none;
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Dark */
.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-text-secondary);
    border-color: var(--color-text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary Button - Outline */
.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-sand);
    border-color: var(--color-taupe);
}

/* Light Button - For dark backgrounds */
.btn-light {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
}

.btn-light:hover:not(:disabled) {
    background: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-sand);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

/* Button with Icon */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238A8A8A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 16px;
    padding-right: var(--space-12);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-text);
}

.form-checkbox label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================================
   INFO BOXES (UX Helper)
   ============================================================ */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-taupe);
}

.info-box__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.info-box__content {
    flex: 1;
}

.info-box__title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.info-box__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.info-box--success {
    background: var(--color-success-light);
    border-color: var(--color-success);
}

.info-box--warning {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
}

.info-box--error {
    background: var(--color-error-light);
    border-color: var(--color-error);
}

.info-box--info {
    background: var(--color-info-light);
    border-color: var(--color-info);
}

/* ============================================================
   ALERTS & FLASH MESSAGES
   ============================================================ */
/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.flash-message {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    padding: var(--space-4) var(--space-5);
    padding-right: var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 400px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border-light);
}

.flash-message::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.flash-message--success::before {
    background-color: var(--color-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.flash-message--error::before {
    background-color: var(--color-error);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

.flash-message--warning::before {
    background-color: var(--color-warning);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01'/%3E%3C/svg%3E");
}

.flash-message--info::before {
    background-color: var(--color-info);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 16h-1v-4h-1m1-4h.01'/%3E%3C/svg%3E");
}

.flash-message .container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    padding: 0;
    max-width: none;
}

.flash-message__close {
    position: absolute;
    top: 50%;
    right: var(--space-3);
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-message__close:hover {
    background: var(--color-sand);
    color: var(--color-text);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast closing animation */
.flash-message.is-closing {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive - mobile: bottom center, full width */
@media (max-width: 480px) {
    .flash-message {
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    @keyframes toastSlideIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes toastSlideOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }
}

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.alert-error {
    background: var(--color-error-light);
    color: var(--color-error);
}

/* ============================================================
   MODALS
   ============================================================ */
/* Modal styles moved to index.php for unified animation system */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-24);
    margin-top: 0;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center 30%;
    background: var(--color-sand);
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(250, 249, 247, 0.3) 0%, rgba(250, 249, 247, 0.1) 40%, rgba(250, 249, 247, 0.4) 100%);
}

.hero__content {
    position: relative;
    max-width: 700px;
    text-align: center;
}

.hero__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero__title em {
    font-style: italic;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.hero__actions .btn-primary {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__actions .btn-primary:hover {
    background: rgba(26, 26, 26, 1);
}

.hero__actions .btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: transparent;
}

.hero__actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero__btn-secondary {
    background: transparent;
    border-color: var(--color-text);
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        padding: var(--space-16) 0;
    }
    
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-lg);
    }
    
    .hero__image {
        object-position: center center;
        height: 100%;
    }
    
    .hero__image-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats {
    padding: var(--space-16) 0;
    background: var(--color-white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stats__item {
    text-align: center;
}

.stats__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stats__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* ============================================================
   COURSES PREVIEW
   ============================================================ */
.courses-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.courses-preview__action {
    text-align: center;
}

.course-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card__image-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-sand);
}

.course-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.course-card:hover .course-card__image-wrap img {
    transform: scale(1.05);
}

.course-card__content {
    padding: var(--space-6);
}

.course-card__tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.course-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.course-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .courses-preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .courses-preview__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview {
    background: var(--color-bg);
}

.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-preview__images {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-sand);
    aspect-ratio: 4/3;
    transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 1.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.about-preview__images:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(26, 26, 26, 0.1);
}

.about-preview__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-preview__images:hover img {
    transform: scale(1.05);
}

.about-preview__content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.about-preview__content .btn {
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .about-preview__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    text-align: center;
    background: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 200px;
    line-height: 1;
    color: var(--color-taupe);
    opacity: 0.08;
    pointer-events: none;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial {
    padding: var(--space-8);
    transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial:hover {
    transform: scale(1.02);
}

.testimonial__text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-8);
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.testimonial__author span:first-child {
    font-weight: 600;
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    text-align: center;
    padding: var(--space-24) 0;
    background: var(--color-text);
    color: var(--color-white);
}

.cta-section h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.cta-section h2 em {
    font-style: italic;
}

.cta-section p {
    font-size: var(--text-lg);
    opacity: 0.8;
    margin-bottom: var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-bg-warm);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    display: block;
    margin-bottom: var(--space-4);
}

.footer__logo img {
    height: 24px;
    width: auto;
    opacity: 1;
}

.footer__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer__title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--color-text);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .footer__brand {
        grid-column: span 2;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
    opacity: 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.w-full { width: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

/* Smooth Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Hero - no individual animations (main fade handles it) */
.hero__content,
.hero__label,
.hero__title,
.hero__subtitle,
.hero__actions {
    /* Inherit from main fade-in */
}

/* Section header - no animation */
.section-header {
    /* Inherit from main fade-in */
}

/* Card Hover Effects - VERY SLOW & SMOOTH */
.course-card,
.pricing-card,
.blog-card,
.team-card,
.value-card,
.stat-box,
.dashboard-card,
.course-item {
    transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 1.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
}

.course-card:hover,
.pricing-card:hover,
.blog-card:hover,
.team-card:hover,
.course-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(26, 26, 26, 0.1);
}

.value-card:hover,
.stat-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.08);
}

.dashboard-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 32px rgba(26, 26, 26, 0.06);
}

/* Testimonials - smooth zoom */
.testimonial {
    transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.testimonial:hover {
    transform: scale(1.02) !important;
    box-shadow: none !important;
}

/* Button Transitions - SLOW & SMOOTH */
.btn {
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.15);
}

.btn:active {
    transform: translateY(-2px) scale(1.01);
    transition-duration: 0.15s;
}

/* Secondary/outline buttons - subtler effect */
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-4px) scale(1.02) rotate3d(0, 1, 0, 2deg);
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.1);
}

/* Modal Animations */
.modal {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal__content {
    animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navigation Link Hover */
.nav__link {
    position: relative;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-text);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

/* Schedule Week Navigation Animation */
.day-column {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.day-column:nth-child(1) { animation-delay: 0.05s; }
.day-column:nth-child(2) { animation-delay: 0.1s; }
.day-column:nth-child(3) { animation-delay: 0.15s; }
.day-column:nth-child(4) { animation-delay: 0.2s; }
.day-column:nth-child(5) { animation-delay: 0.25s; }
.day-column:nth-child(6) { animation-delay: 0.3s; }
.day-column:nth-child(7) { animation-delay: 0.35s; }

/* Course Card in Schedule */
.course-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.12);
}

/* Filter Pills Animation */
.filter-pill,
.view-toggle__btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover,
.view-toggle__btn:hover {
    transform: translateY(-1px);
}

.filter-pill.is-active,
.view-toggle__btn.is-active {
    transform: scale(1.02);
}

/* Day Header Hover */
.day-header {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.day-header:not(.is-today):hover {
    background: var(--color-sand);
    transform: scale(1.02);
}

/* Input Focus Animation */
.form-input,
.form-select {
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus,
.form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

/* Tab Panel Transitions */
.booking-modal__panel {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.booking-modal__panel.is-active {
    opacity: 1;
}

/* Staggered List Animation */
.schedule-list .list-day {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.schedule-list .list-day:nth-child(1) { animation-delay: 0.1s; }
.schedule-list .list-day:nth-child(2) { animation-delay: 0.15s; }
.schedule-list .list-day:nth-child(3) { animation-delay: 0.2s; }
.schedule-list .list-day:nth-child(4) { animation-delay: 0.25s; }
.schedule-list .list-day:nth-child(5) { animation-delay: 0.3s; }

/* Image Hover Zoom */
.hero__image,
.course-card__image-wrap img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card__image-wrap img {
    transform: scale(1.05);
}

/* Pricing Card Highlight */
.pricing-card--featured {
    animation: pulse 3s ease-in-out infinite;
}

/* Toast/Flash Message Animation */
.flash {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth Scroll Indicator */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Loading Spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-warm) 0%,
        var(--color-white) 50%,
        var(--color-bg-warm) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    height: 120px;
    margin-bottom: var(--space-4);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-2);
    border-radius: var(--radius-sm);
}

.skeleton-text--title {
    height: 24px;
    width: 60%;
}

.skeleton-text--short {
    width: 40%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-course {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.skeleton-course__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.skeleton-course__time {
    width: 60px;
    height: 20px;
}

.skeleton-course__spots {
    width: 40px;
    height: 16px;
}

.skeleton-course__title {
    height: 22px;
    width: 80%;
    margin-bottom: var(--space-2);
}

.skeleton-course__trainer {
    height: 14px;
    width: 50%;
}

/* Loading state for schedule */
.schedule-loading {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-4);
}

.schedule-loading__day {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.schedule-loading__header {
    height: 80px;
    border-radius: var(--radius-xl);
}

/* ============================================================
   PAGE TRANSITIONS & ELEMENT ANIMATIONS
   ============================================================ */

/* Body should not animate - only main content */
body {
    opacity: 1;
}

/* Main content wrapper - simple fade control */
main {
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

main.fade-out {
    opacity: 0;
}

/* Sections should NOT have separate animation - causes flash */
.section {
    /* No animation here - main handles it */
}

/* Grid/Card - no stagger animation (causes flash) */
/* Cards inherit visibility from main fade-in */

/* Link transitions */
a {
    transition: color 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Images - no initial animation, just transitions */
img {
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image hover effect - VERY SMOOTH */
.course-card__image-wrap img,
.blog-card__image img,
.team-card__image img,
.course-item__image img {
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.course-card:hover .course-card__image-wrap img,
.blog-card:hover .blog-card__image img,
.course-item:hover .course-item__image img {
    transform: scale(1.05);
}

/* Nav links - smooth */
.nav__link,
.header__nav-link,
.dashboard-nav__link {
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__link:hover,
.header__nav-link:hover {
    transform: translateY(-2px);
}

/* Filter pills - smooth */
.filter-pill,
.view-toggle__btn,
.courses-filter__btn {
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-pill:hover,
.view-toggle__btn:hover,
.courses-filter__btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.filter-pill.is-active,
.view-toggle__btn.is-active {
    transform: scale(1.02);
}

/* Form inputs floating focus */
.form-input,
.form-select,
.form-textarea {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 30px rgba(26, 26, 26, 0.1);
}

/* Schedule day column hover with rotation */
.day-column {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.day-column:hover {
    transform: translateY(-6px) rotate3d(0, 1, 0, 2deg);
}

/* Day header floating with rotation */
.day-header {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.day-header:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* Icon hover effects */
.stat-box__icon,
.value-card__icon {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-box:hover .stat-box__icon,
.value-card:hover .value-card__icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Logo hover */
.header__logo {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.header__logo:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* Footer links */
.footer a {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

.footer a:hover {
    transform: translateY(-2px) rotate(-1deg);
}

/* Schedule navigation buttons */
.schedule-nav__btn {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.schedule-nav__btn:hover {
    transform: scale(1.1) rotate(-3deg);
}

/* Course card in schedule with rotation */
.bento-grid .course-card {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-grid .course-card:hover {
    transform: translateY(-8px) scale(1.03) rotate3d(1, 1, 0, 2deg);
    box-shadow: 0 25px 50px rgba(26, 26, 26, 0.15);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body, main, section, img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .skeleton {
        animation: none;
    }
}
