/*
Theme Name: Voyagera
Theme URI: https://example.com/voyagera
Author: Voyagera Team
Author URI: https://example.com
Description: A premium, multi-purpose travel & tourism WordPress theme. Designed for hotels, tours, camping, hiking, adventure agencies, and travel bloggers. Fully responsive, accessible, and optimized for conversions.
Version: 2.0.0
Text Domain: voyagera
Tags: travel, tourism, camping, hiking, adventure, ecommerce, rtl-ready, accessibility-ready
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ================================================================
   TABLE OF CONTENTS
   1. Design Tokens & Variables (The System)
   2. Reset & Base Styles
   3. Typography Scale (Fluid)
   4. Premium Container System (Upgraded)
   5. Utility Classes (Layout, Spacing, Colors)
   6. Components (Buttons, Forms, Cards)
   7. Section Architectures
   8. Accessibility & RTL Logic
   9. Page Loader
   10. Dark Mode Support (New)
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS & VARIABLES (Default: Light Mode)
   ================================================================ */
:root {
    /* --- 1.1 Color System --- */
    /* Brand Core */
    --color-primary: #0F4C5C;      /* Deep Teal - Stability */
    --color-primary-light: #165f73;
    --color-primary-dark: #092e39;
    
    --color-secondary: #2E5D4B;    /* Forest Green - Nature */
    
    /* Integration: Professional Blue & Warm Yellow */
    --color-blue-deep: #1E3A8A;    /* Premium Travel Blue */
    --color-blue-light: #191a1c;   /* Sky Blue */
    
    --color-yellow-warm: #D97706;   /* Amber/Sun - High contrast */
    --color-yellow-light: #FCD34D; /* Sand/Pastel */
    
    /* UI Colors */
    --color-bg-body: #ffffff;
    --color-bg-surface: #F8FAFC;   /* Very light cool gray */
    --color-bg-offset: #F1F5F9;    /* Section contrast */
    
    --color-text-main: #0F172A;    /* Slate 900 */
    --color-text-muted: #64748B;   /* Slate 500 */
    --color-text-light: #94A3B8;
    
    --color-border: #E2E8F0;
    --color-white: #ffffff;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue-deep) 100%);
    --grad-sunrise: linear-gradient(135deg, var(--color-blue-deep) 0%, var(--color-secondary) 100%);
    --grad-warm: linear-gradient(135deg, var(--color-yellow-warm) 0%, #b45309 100%);

    /* --- 1.2 Typography Scale (Fluid) --- */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Manrope', sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    
    --text-h6: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-h5: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-h4: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-h3: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --text-h2: clamp(2.25rem, 2rem + 1.5vw, 3.5rem);
    --text-h1: clamp(2.5rem, 2rem + 3vw, 4.5rem);

    --leading-tight: 1.15;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* --- 1.3 Spacing System (8px Grid) --- */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.5rem;   /* 24px */
    --space-6: 2rem;     /* 32px */
    --space-8: 3rem;     /* 48px */
    --space-10: 4rem;    /* 64px */
    --space-12: 5rem;    /* 80px */
    --space-14: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */

    /* --- 1.4 Effects & Radius --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-focus: 0 0 0 3px rgba(198, 156, 109, 0.3);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ================================================================
   2. RESET & BASE STYLES
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    transition: background-color 0.4s ease, color 0.4s ease;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* Text Selection */
::selection {
    background-color: var(--color-blue-deep);
    color: #fff;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-blue-deep);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-text-main);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-h1); margin-bottom: var(--space-5); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-5); }
h3 { font-size: var(--text-h3); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-h4); margin-bottom: var(--space-3); }
h5 { font-size: var(--text-h5); margin-bottom: var(--space-3); }
h6 { 
    font-size: var(--text-h6); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: var(--color-primary); 
}

p {
    margin-bottom: var(--space-5);
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

/* Text Utilities */
.text-lead { font-size: var(--text-lg); color: var(--color-text-main); max-width: 65ch; }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-muted); }

/* ================================================================
   4. PREMIUM CONTAINER SYSTEM
   ================================================================ */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* RTL Safe: Logical Properties for Padding */
    padding-inline-start: var(--space-4); 
    padding-inline-end: var(--space-4);
}

/* Responsive Container Padding */
@media (min-width: 640px) {
    .container {
        padding-inline-start: var(--space-5); 
        padding-inline-end: var(--space-5);
    }
}
@media (min-width: 1024px) {
    .container {
        padding-inline-start: var(--space-6); 
        padding-inline-end: var(--space-6);
    }
}
@media (min-width: 1280px) {
    .container {
        padding-inline-start: var(--space-8); 
        padding-inline-end: var(--space-8);
    }
}

/* Container Widths */
.container-narrow { max-width: 680px; }
.container-medium { max-width: 960px; }
.container-wide { max-width: 1280px; }
.container-site { max-width: 1440px; }

.container-fluid {
    width: 100%;
    padding-inline-start: var(--space-4);
    padding-inline-end: var(--space-4);
}

/* ================================================================
   5. LAYOUT UTILITIES
   ================================================================ */

/* Section Spacing */
.section-sm { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section-md { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.section-lg { padding-top: var(--space-14); padding-bottom: var(--space-14); }
.section-xl { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Backgrounds */
.bg-surface { background-color: var(--color-bg-surface); }
.bg-offset { background-color: var(--color-bg-offset); }
.bg-primary { background-color: var(--color-primary); color: #fff; }
.bg-blue { background-color: var(--color-blue-deep); color: #fff; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-2-1 { grid-template-columns: 2fr 1fr; }
}

/* ================================================================
   6. COMPONENTS
   ================================================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-blue-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--color-yellow-warm);
    color: white;
}
.btn-accent:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text-main);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-bg-surface);
}

.btn-blue {
    background-color: var(--color-blue-deep);
    color: white;
}
.btn-blue:hover {
    background-color: var(--color-blue-light);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: var(--color-bg-body);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--text-h4);
    margin-bottom: var(--space-2);
    color: var(--color-text-main);
}

.card-meta {
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--color-blue-deep);
    font-weight: 600;
    margin-bottom: var(--space-3);
    display: block;
}

.card-price {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}
.badge-blue { background: #DBEAFE; color: var(--color-blue-deep); }
.badge-yellow { background: #FEF3C7; color: #92400E; }

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    margin-bottom: var(--space-4);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

/* ================================================================
   7. SECTION ARCHITECTURES
   ================================================================ */

/* Hero Section */
.section-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('https://picsum.photos/seed/voyagera-hero/1920/1080');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 76, 92, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 { color: white; margin-bottom: var(--space-6); }
.hero-content p { color: #E2E8F0; font-size: var(--text-lg); margin-bottom: var(--space-8); }

/* Split Section */
.section-split {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .section-split { grid-template-columns: 1fr 1fr; }
    .split-reverse { direction: rtl; }
    .split-reverse > * { direction: ltr; }
}

.split-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* CTA Section */
.section-cta {
    background: var(--grad-primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-xl);
    padding: var(--space-14) var(--space-6);
    margin: var(--space-14) auto;
}
.section-cta h2 { color: white; }
.section-cta p { color: rgba(255,255,255, 0.9); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ================================================================
   8. GLOBAL HEADER & FOOTER BASICS
   ================================================================ */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    color: white;
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
}

/* Dark Mode Header Adjustment */
[data-theme="dark"] .site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    color: var(--color-text-main);
}

.site-footer {
    background-color: var(--color-bg-offset);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ================================================================
   9. RTL & LOGICAL PROPERTY OVERRIDES
   ================================================================ */

[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}

/* ================================================================
   10. DARK MODE SUPPORT
   ================================================================ */
/* 
 * Automatically switches variables when data-theme="dark" 
 * is present on the <html> tag.
 */

[data-theme="dark"] {
    /* --- Re-defining Color Tokens for Dark Mode --- */
    
    /* Brand Colors (Slightly brighter for dark contrast) */
    --color-primary: #2DD4BF;       /* Brighter Teal */
    --color-primary-light: #5EEAD4;
    --color-primary-dark: #14B8A6;
    
    --color-secondary: #4ADE80;     /* Brighter Green */
    
    --color-blue-deep: #3B82F6;     /* Brighter Blue */
    --color-blue-light: #60A5FA;
    
    --color-yellow-warm: #FBBF24;   /* Brighter Amber */
    --color-yellow-light: #FDE047;

    /* UI Colors (Dark Surfaces) */
    --color-bg-body: #0F172A;       /* Slate 900 - Main Background */
    --color-bg-surface: #1E293B;    /* Slate 800 - Elevated Surfaces */
    --color-bg-offset: #334155;     /* Slate 700 - Highest Contrast Elements */
    
    /* Text Colors */
    --color-text-main: #F8FAFC;     /* Slate 50 */
    --color-text-muted: #94A3B8;    /* Slate 400 */
    --color-text-light: #64748B;    /* Slate 500 */
    
    --color-border: #334155;        /* Slate 700 */
    --color-white: #0F172A;         /* Inverted for logic convenience */

    /* Gradients (Dark Mode variants) */
    --grad-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-blue-deep) 100%);
    --grad-warm: linear-gradient(135deg, var(--color-yellow-warm) 0, #d97706 100%);

    /* Effects (Dark Mode) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-focus: 0 0 0 3px rgba(45, 212, 191, 0.4); /* Focus ring using Primary color */
}

/* --- Specific Component Adjustments for Dark Mode --- */

[data-theme="dark"] .card {
    background: var(--color-bg-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .card:hover {
    border-color: var(--color-primary);
}

[data-theme="dark"] .badge-blue { 
    background: rgba(59, 130, 246, 0.2); 
    color: var(--color-blue-light); 
}

[data-theme="dark"] .badge-yellow { 
    background: rgba(251, 191, 36, 0.2); 
    color: var(--color-yellow-warm); 
}

/* Inputs need explicit dark bg */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--color-bg-surface);
    border-color: var(--color-border);
    color: var(--color-text-main);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

/* Images can be slightly dimmed in dark mode to reduce glare */
[data-theme="dark"] img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] img:hover {
    opacity: 1;
}

/* ================================================================
   11. PREMIUM ANIMATION & 3D UI SYSTEM (ADD-ON)
   ================================================================ */

/* --- 11.1 Advanced Design Tokens --- */
:root {
    /* 3D & Depth */
    --perspective-depth: 1200px;
    --tilt-angle-x: 8deg;
    --tilt-angle-y: 8deg;
    
    /* Motion */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(15, 76, 92, 0.4);
    --glow-accent: 0 0 30px rgba(217, 119, 6, 0.3);
    
    /* Duration Scale */
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
}

/* ================================================================
   12. GLOBAL ANIMATION CLASSES (SCROLL-TRIGGERED)
   ================================================================ */

/* Base State (Hidden) */
.anim-fade-up,
.anim-fade-in,
.anim-scale-in,
.anim-slide-right {
    opacity: 0;
    transition: all var(--duration-slow) var(--ease-out-expo);
    will-change: transform, opacity;
}

.anim-fade-up {
    transform: translateY(40px);
}

.anim-fade-in {
    transition-duration: var(--duration-slow);
}

.anim-scale-in {
    transform: scale(0.9);
}

.anim-slide-right {
    transform: translateX(-40px);
}

/* Active State (Visible) 
   Triggered by JS IntersectionObserver adding .is-visible */
.anim-fade-up.is-visible,
.anim-fade-in.is-visible,
.anim-scale-in.is-visible,
.anim-slide-right.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger Children Delay */
.anim-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.10s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.20s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.25s; }

/* ================================================================
   13. PREMIUM 3D CARD SYSTEM
   ================================================================ */

/* Base Card Enhancements */
.card {
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Elevated Card on Hover */
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Floating Card Style */
.card-floating {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

[data-theme="dark"] .card-floating {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Tilt Effect (Requires JS for dynamic tilt, fallback to CSS hover) */
.card-3d {
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.card-3d:hover {
    transform: perspective(var(--perspective-depth)) rotateX(var(--tilt-angle-x)) rotateY(calc(var(--tilt-angle-y) * -1)) translateZ(10px);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1), -5px -5px 20px rgba(255,255,255,0.8);
}

/* Card Shine Effect */
.card-shine {
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s;
    z-index: 1;
    pointer-events: none;
}

.card-shine:hover::before {
    transform: rotate(45deg) translate(0, 0);
}

/* ================================================================
   14. PREMIUM BUTTON INTERACTIONS
   ================================================================ */

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Liquid Fill Effect */
.btn::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    z-index: -1;
}

.btn:hover::after {
    transform: translateY(0);
}

/* Ripple Effect Trigger (JS adds .ripple-active) */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Magnetic Hover Effect */
.btn-magnetic {
    transition: transform 0.2s linear;
}

/* ================================================================
   15. GALLERY & IMAGE INTERACTIONS
   ================================================================ */

/* 3D Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
}

.gallery-item img {
    transition: transform var(--duration-slow) var(--ease-out-expo), opacity 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1) translateZ(20px);
}

/* Overlay Reveal */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-normal) var(--ease-smooth);
    display: flex;
    align-items: flex-end;
    padding: var(--space-6);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   16. HERO & PARALLAX EFFECTS
   ================================================================ */

.hero-parallax {
    position: relative;
    overflow: hidden;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-position: center;
    background-size: cover;
    will-change: transform;
    z-index: -1;
}

/* Floating Elements in Hero */
.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ================================================================
   17. SCROLLBAR & MISC UI
   ================================================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-offset);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Cursor Follower (Optional - needs JS) */
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.15s ease-out;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower.hovering {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* ================================================================
   18. PERFORMANCE & ACCESSIBILITY
   ================================================================ */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .anim-fade-up, .anim-fade-in, .anim-scale-in {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Performance Adjustments */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: translateY(-5px); /* Disable 3D tilt on mobile for performance */
        box-shadow: var(--shadow-lg);
    }
    
    .anim-fade-up {
        transform: translateY(20px); /* Reduce travel distance */
    }
}