/* ================================================
   SERENDIB JOURNEYS - GLOBAL CSS
   Reusable components for all pages
   ================================================ */

/* ================================================
   CSS VARIABLES & RESET
   ================================================ */
:root {
    /* Brand Colors */
    --jungle-green: #0D9488;
    --ocean-teal: #14B8A6;
    --cinnamon-gold: #C77E28;
    --sand: #F5F7FA;
    --slate-dark: #334155;
    --slate-medium: #64748B;
    --slate-light: #94A3B8;
    --white: #FFFFFF;
    --black: #0F172A;

    /* 3D Colors */
    --gradient-primary: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    --gradient-gold: linear-gradient(135deg, #C77E28 0%, #F59E0B 100%);
    --gradient-dark: linear-gradient(135deg, #334155 0%, #1E293B 100%);

    /* Shadows & Glows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.25);
    --glow-primary: 0 0 40px rgba(13, 148, 136, 0.4);
    --glow-gold: 0 0 40px rgba(199, 126, 40, 0.4);

    /* Spacing */
    --header-height: 80px;
    --mobile-header: 70px;
    --section-padding: 100px;
    --container-max: 1320px;
    --container-padding: 24px;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================================
   USER MENU 3D (GLOBAL)
   Session-aware user menu with dropdown
   ================================================ */
.user-menu-3d {
    position: relative;
}

.user-avatar-3d {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-weight-bold);
    transition: transform 0.3s ease;
}

.user-avatar-3d:hover {
    transform: scale(1.1);
}

.avatar-text {
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.user-avatar-3d:hover .avatar-glow {
    opacity: 0.5;
}

.user-dropdown-3d {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-3d:hover .user-dropdown-3d,
.user-menu-3d:focus-within .user-dropdown-3d,
.user-dropdown-3d.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.user-name {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.user-email {
    display: block;
    font-size: 0.875rem;
    color: var(--slate-medium);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    border-radius: var(--radius-md);
    color: var(--slate-dark);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.dropdown-item:hover {
    background: rgba(13, 148, 136, 0.1);
    transform: translateX(5px);
}

.dropdown-item .icon {
    font-size: 1.125rem;
}

.notification-badge {
    margin-left: auto;
    background: var(--cinnamon-gold);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ================================================
   FLOATING PARTICLES - GLOBAL
   Used across all pages for ambient animation
   ================================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ocean-teal);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Optional: Different particle sizes */
.particle.small {
    width: 2px;
    height: 2px;
}

.particle.medium {
    width: 4px;
    height: 4px;
}

.particle.large {
    width: 6px;
    height: 6px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-medium);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Currency Toggle Styles - Updated to support JavaScript currency-converter.js */
.currency-toggle-3d,
.currency-selector .currency-toggle {
    position: relative;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-toggle-3d:hover,
.currency-selector .currency-toggle:hover {
    background: linear-gradient(135deg, #63b4ae 0%, #14B8A6 100%);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.currency-toggle-3d.active,
.currency-selector .currency-toggle.active {
    background: var(--gradient-primary);
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.currency-current,
.currency-selector .currency-code {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

.currency-toggle-3d::after {
    content: '▼';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.currency-toggle-3d.active::after {
    transform: rotate(180deg);
}

/* Currency Dropdown */
.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(50, 159, 146, 0.4);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 100px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.4);
}

.currency-toggle-3d.active .currency-dropdown,
.currency-toggle-3d:hover .currency-dropdown,
.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown span,
.currency-dropdown .currency-option {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
    text-align: left;
}

.currency-dropdown span:hover,
.currency-dropdown .currency-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-left-color: #fff;
}

.currency-dropdown span[data-currency].active,
.currency-dropdown .currency-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .currency-toggle-3d {
        padding: 6px 12px;
        font-size: 13px;
    }

    .currency-dropdown {
        right: -10px;
    }
}

/* Price Animation */
[data-price],
[data-price-lkr] {
    transition: all 0.3s ease;
}

[data-price].updating,
[data-price-lkr].updating {
    opacity: 0.6;
    transform: scale(0.98);
}

/* Currency Symbol Styling */
.price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.currency-symbol {
    font-weight: 600;
    opacity: 0.9;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--slate-dark);
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: var(--white);
    color: var(--jungle-green);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    z-index: 10000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
    box-shadow: var(--shadow-xl);
}

/* ================================================
   3D HEADER STYLES (GLOBAL)
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo 3D */
.logo-3d {
    position: relative;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.logo-main {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: var(--font-weight-black);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 3px;
    color: var(--slate-medium);
    margin-top: -4px;
}

.logo-accent {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.logo-3d:hover .logo-text {
    transform: rotateY(-15deg);
}

.logo-3d:hover .logo-accent {
    transform: scaleX(1);
}

/* Navigation 3D */
.nav-3d {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
    perspective: 1000px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.nav-text {
    position: relative;
    font-weight: var(--font-weight-medium);
    z-index: 2;
}

.nav-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transform: translateY(100%);
    transition: var(--transition-base);
    opacity: 0.1;
}

.nav-item:hover .nav-hover {
    transform: translateY(0);
}

.nav-item:hover .nav-link {
    transform: translateZ(10px);
    color: var(--jungle-green);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Auth Buttons 3D */
.auth-buttons-3d {
    display: flex;
    gap: 12px;
}

.btn-glass {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gradient {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: var(--transition-base);
}

.btn-gradient:hover::before {
    transform: translateX(0);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* Mobile Menu Toggle */
.menu-toggle-3d {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-burger {
    width: 28px;
    height: 20px;
    position: relative;
}

.menu-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--slate-dark);
    border-radius: 2px;
    transition: var(--transition-base);
    transform-origin: center;
}

.menu-burger span:nth-child(1) {
    top: 0;
}

.menu-burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-burger span:nth-child(3) {
    bottom: 0;
}

.menu-toggle-3d.active .menu-burger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-3d.active .menu-burger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle-3d.active .menu-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================================
   3D BUTTON STYLES (GLOBAL)
   ================================================ */
.btn-3d-primary,
.btn-3d-secondary,
.btn-3d-outline,
.btn-3d-glass,
.btn-3d-float,
.btn-3d-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: var(--font-weight-medium);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.btn-3d-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-3d-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.btn-3d-float {
    perspective: 1000px;
}

.btn-3d-float .btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn-3d-float .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-base);
}

.btn-3d-float:hover .btn-glow {
    opacity: 1;
    width: 150%;
    height: 150%;
}

.btn-3d-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-3d-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) rotateX(-10deg);
}

.btn-3d-outline {
    background: transparent;
    border: 2px solid var(--jungle-green);
    color: var(--jungle-green);
}

.btn-3d-outline:hover {
    background: var(--jungle-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* ================================================
   GLASS MORPHISM EFFECTS
   ================================================ */
.glass-morph {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ================================================
   3D CARDS (GLOBAL)
   ================================================ */
[data-tilt] {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.card-3d-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(20px);
    transition: var(--transition-base);
    z-index: -1;
}

[data-tilt]:hover .card-3d-glow {
    opacity: 0.5;
}

/* ================================================
   FOOTER 3D (GLOBAL)
   ================================================ */
.footer-3d {
    position: relative;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 30px;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.footer-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 126, 40, 0.1) 0%, transparent 50%);
}

.footer-content-3d {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
}

.footer-logo .logo-sub {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--ocean-teal);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column a {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--ocean-teal);
    transform: translateX(4px);
}

.contact-info {
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-info a {
    color: var(--ocean-teal);
}

/* Footer Trust Badges (TripAdvisor, etc.) */
.footer-trust-badges {
    padding: 20px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    max-height: 80px;
    overflow: hidden;
}

.trust-badge-item a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    max-width: 100%;
    max-height: 100%;
}

.trust-badge-item a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.trust-badge-item img {
    filter: brightness(1.2) saturate(0.8);
    transition: filter 0.3s ease;
    max-width: 180px !important;
    max-height: 60px !important;
    width: auto !important;
    height: 50px !important;
    object-fit: contain !important;
}

.trust-badge-item a:hover img {
    filter: brightness(1.5) saturate(1.2);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ================================================
   RESPONSIVE UTILITIES
   ================================================ */
@media (max-width: 1024px) {
    .nav-3d {
        display: none;
    }

    .menu-toggle-3d {
        display: block;
    }

    .footer-content-3d {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--mobile-header);
        --section-padding: 60px;
        --container-padding: 20px;
    }

    .auth-buttons-3d {
        display: none;
    }

    .currency-toggle-3d {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
}

/* ================================================
   ACCESSIBILITY - MOTION PREFERENCES
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ================================================
   LOADING & PRELOADER
   ================================================ */
body.loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-scene {
    text-align: center;
}

.preloader-globe {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 30px;
}

.globe-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate-ring 2s linear infinite;
}

.globe-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-delay: 0.2s;
    animation-direction: reverse;
}

.globe-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 0.4s;
}

@keyframes rotate-ring {
    from {
        transform: rotateY(0deg) rotateX(30deg);
    }

    to {
        transform: rotateY(360deg) rotateX(30deg);
    }
}

.loading-text {
    color: var(--white);
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 20px;
    display: block;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: var(--white);
    width: 0;
    animation: progress 2s ease forwards;
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {

    .site-header,
    .footer-3d,
    .back-to-top-3d,
    .preloader {
        display: none !important;
    }
}

/* ================================================
   SERENDIB GLOBAL CSS - REUSABLE COMPONENTS
   ================================================ */

:root {
    /* Brand Colors */
    --jungle-green: #0D9488;
    --ocean-teal: #14B8A6;
    --cinnamon-gold: #C77E28;
    --sand: #F5F7FA;
    --slate-dark: #334155;
    --slate-medium: #64748B;
    --slate-light: #94A3B8;
    --white: #FFFFFF;
    --black: #0F172A;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    --gradient-gold: linear-gradient(135deg, #C77E28 0%, #F59E0B 100%);
    --gradient-dark: linear-gradient(135deg, #334155 0%, #1E293B 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.25);
    --glow-primary: 0 0 40px rgba(13, 148, 136, 0.4);
    --glow-gold: 0 0 40px rgba(199, 126, 40, 0.4);

    /* Layout */
    --header-height: 80px;
    --mobile-header: 70px;
    --section-padding: 100px;
    --container-max: 1320px;
    --container-padding: 24px;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-medium);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--slate-dark);
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Accessibility */
.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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: var(--white);
    color: var(--jungle-green);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    z-index: 10000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
    box-shadow: var(--shadow-xl);
}

/* Header Component - Reusable */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Button Components - Reusable */
.btn-3d-primary,
.btn-3d-secondary,
.btn-3d-outline,
.btn-3d-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: var(--font-weight-medium);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-3d-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-3d-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.btn-3d-outline {
    background: transparent;
    border: 2px solid var(--jungle-green);
    color: var(--jungle-green);
}

.btn-3d-outline:hover {
    background: var(--jungle-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Card Components - Reusable */
[data-tilt] {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

/* Glass Morphism Effect - Reusable */
.glass-morph {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Section Headers - Reusable */
.section-header-3d {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title-3d {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--slate-dark);
}

/* Footer Component - Reusable */
.footer-3d {
    position: relative;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 30px;
    overflow: hidden;
}


/* Back to Top Component - Reusable */
.back-to-top-3d {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top-3d.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Preloader Component - Reusable */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--mobile-header);
        --section-padding: 60px;
        --container-padding: 20px;
    }
}

/* ================================================
   GLOBAL LISTING CARD 3D (Replaced Vehicle Card)
   ================================================ */
.listing-card-3d {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.listing-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.card-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.listing-card-3d:hover .card-image {
    transform: scale(1.1);
}

/* Badge on TOP RIGHT */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--jungle-green);
    z-index: 2;
}

.card-rating {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: var(--font-weight-medium);
    z-index: 2;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--slate-medium);
    margin-bottom: 16px;
    display: block;
}

/* Attributes / Specs */
.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.spec-item {
    text-align: center;
}

.spec-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.spec-value {
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    display: block;
}

.spec-label {
    font-size: 12px;
    color: var(--slate-medium);
}

/* Tags */
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.card-tag {
    padding: 4px 12px;
    background: var(--sand);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--slate-medium);
}

.card-tag.featured {
    background: var(--gradient-gold);
    color: var(--white);
}

.card-description {
    color: var(--slate-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    flex-grow: 1;
}

/* Footer with Price and Actions */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
    margin-top: auto;
}

.card-price-container {
    display: flex;
    flex-direction: column;
}

.card-price-container .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-medium);
    margin-bottom: 4px;
    font-weight: 600;
}

.card-price-amount {
    font-size: 26px;
    font-weight: 800;
    /* Extra bold */
    color: var(--jungle-green);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.card-btn-outline {
    padding: 12px 20px;
    background: transparent;
    border: 1.5px solid var(--jungle-green);
    border-radius: 12px;
    /* Rounded rectangle */
    color: var(--jungle-green);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    font-size: 14px;
}

.card-btn-outline:hover {
    background: var(--jungle-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-3d-primary {
    padding: 12px 20px;
    background: var(--jungle-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    /* Rounded rectangle */
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-3d-primary:hover {
    background: #00796b;
    /* Darker teal on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

/* Global Grid Utilities */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-row.no-border {
    border-bottom: none !important;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-icon {
    color: var(--jungle-green);
}

.full-width {
    grid-column: 1 / -1;
}

/* ================================================
   GLOBAL MODAL 3D
   ================================================ */
.global-modal-3d {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.global-modal-3d[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content-3d {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xxl);
    overflow: auto;
    box-shadow: var(--shadow-3d);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-close-3d {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
}

.modal-close-3d:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.modal-gallery {
    position: relative;
    height: 500px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.gallery-thumb.active {
    border-color: var(--ocean-teal);
    transform: scale(1.1);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}

.modal-title-section h2 {
    font-size: 2.5rem;
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.modal-brand {
    font-size: 18px;
    color: var(--slate-medium);
}

.modal-pricing-box {
    text-align: right;
}

.modal-price {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--jungle-green);
}

.modal-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-section {
    padding: 30px;
    background: var(--sand);
    border-radius: var(--radius-lg);
}

.modal-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--slate-dark);
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--sand);
}

.modal-actions button {
    flex: 1;
    padding: 16px;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-content-3d {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .modal-gallery {
        height: 300px;
    }

    .modal-details {
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        gap: 20px;
    }

    .modal-pricing-box {
        text-align: left;
    }
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .amenity-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ================================================
   ELEPHANT PRELOADER - FAMILY WALK ANIMATION
   ================================================ */

.preloader-elephants {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.elephant-walk-container {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    position: absolute;
    left: -100%;
    animation: walk-across 12s linear infinite;
}

/* Walk across screen animation */
@keyframes walk-across {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Individual elephant sizes and positioning */
.elephant {
    position: relative;
    flex-shrink: 0;
}

/* FLIP ELEPHANTS TO FACE RIGHT */
.elephant svg {
    transform: scaleX(-1);
}

/* Mother elephant - leads the family */
.elephant-mother {
    width: 160px;
    height: 140px;
    animation: realistic-walk-mother 1.4s ease-in-out infinite;
}

/* Baby elephant - follows mother */
.elephant-baby {
    width: 120px;
    height: 110px;
    margin-bottom: 15px;
    animation: realistic-walk-baby 1s ease-in-out infinite;
    animation-delay: 0.2s;
    /* Slightly offset for natural following */
}

/* Father elephant - protects from behind */
.elephant-father {
    width: 170px;
    height: 145px;
    animation: realistic-walk-father 1.6s ease-in-out infinite;
    animation-delay: 0.4s;
    /* Offset to follow baby */
}

/* REALISTIC BODY MOVEMENT */

/* Mother - Steady, mature walk */
@keyframes realistic-walk-mother {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) translateX(-2px) rotate(-0.8deg);
    }

    50% {
        transform: translateY(-8px) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) translateX(2px) rotate(0.8deg);
    }
}

/* Baby - Playful with little jumps */
@keyframes realistic-walk-baby {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    20% {
        transform: translateY(-3px) translateX(-1px) rotate(-0.5deg);
    }

    45% {
        transform: translateY(-12px) translateX(0) rotate(0deg);
        /* Baby jumps higher */
    }

    70% {
        transform: translateY(-3px) translateX(1px) rotate(0.5deg);
    }
}

/* Father - Powerful, steady walk */
@keyframes realistic-walk-father {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) translateX(-3px) rotate(-1deg);
    }

    50% {
        transform: translateY(-7px) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-4px) translateX(3px) rotate(1deg);
    }
}

/* REALISTIC LEG MOVEMENT - Diagonal Pairs */
.leg-front-1,
.leg-back-2 {
    animation: leg-diagonal-pair-1 1.2s ease-in-out infinite;
    transform-origin: center top;
}

.leg-front-2,
.leg-back-1 {
    animation: leg-diagonal-pair-2 1.2s ease-in-out infinite;
    transform-origin: center top;
}

@keyframes leg-diagonal-pair-1 {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(5px) translateY(-4px) rotate(8deg);
    }

    50% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    75% {
        transform: translateX(-3px) translateY(-2px) rotate(-5deg);
    }
}

@keyframes leg-diagonal-pair-2 {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(-3px) translateY(-2px) rotate(-5deg);
    }

    50% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    75% {
        transform: translateX(5px) translateY(-4px) rotate(8deg);
    }
}

/* TRUNK NATURAL SWING */
.trunk {
    animation: trunk-natural-swing 2.6s ease-in-out infinite;
    transform-origin: 50% 10%;
}

@keyframes trunk-natural-swing {

    0%,
    100% {
        transform: rotate(-3deg) translateX(0) translateY(0);
    }

    20% {
        transform: rotate(2deg) translateX(2px) translateY(-1px);
    }

    45% {
        transform: rotate(6deg) translateX(3px) translateY(1px);
    }

    70% {
        transform: rotate(-5deg) translateX(-2px) translateY(-1px);
    }
}

/* TAIL REALISTIC SWISH */
.tail {
    animation: tail-swish-realistic 2s ease-in-out infinite;
    transform-origin: 0% 50%;
}

@keyframes tail-swish-realistic {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    15% {
        transform: rotate(10deg) translateY(-2px);
    }

    40% {
        transform: rotate(5deg) translateY(1px);
    }

    65% {
        transform: rotate(-12deg) translateY(-1px);
    }

    85% {
        transform: rotate(-5deg) translateY(0);
    }
}

/* Dynamic shadow that follows elephants */
.elephant::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    animation: shadow-realistic 1.2s ease-in-out infinite;
    z-index: -1;
}

@keyframes shadow-realistic {

    0%,
    100% {
        transform: scale(1, 1);
        opacity: 0.3;
    }

    25% {
        transform: scale(1.1, 0.8);
        opacity: 0.4;
    }

    50% {
        transform: scale(1, 1);
        opacity: 0.3;
    }

    75% {
        transform: scale(0.9, 1.1);
        opacity: 0.35;
    }
}

/* Responsive sizing */
@media (max-width: 768px) {
    .elephant-walk-container {
        gap: 30px;
        animation-duration: 10s;
    }

    .elephant-mother {
        width: 120px;
        height: 105px;
    }

    .elephant-baby {
        width: 90px;
        height: 82px;
    }

    .elephant-father {
        width: 127px;
        height: 108px;
    }
}

@media (max-width: 480px) {
    .elephant-walk-container {
        gap: 20px;
        animation-duration: 9s;
    }

    .elephant-mother {
        width: 90px;
        height: 78px;
    }

    .elephant-baby {
        width: 65px;
        height: 60px;
    }

    .elephant-father {
        width: 95px;
        height: 82px;
    }
}

/* ================================================
   MOBILE MENU 3D STYLES
   Add this to your global CSS or use as separate file
   ================================================ */

.mobile-menu-3d {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 90vw);
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-3d[aria-hidden="false"],
.mobile-menu-3d.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 40px 30px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-3d {
    margin-top: 60px;
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.mobile-nav-item:hover::before,
.mobile-nav-item.active::before {
    left: 0;
}

.mobile-nav-item .item-number {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--ocean-teal);
    min-width: 30px;
}

.mobile-nav-item .item-text {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-display);
}

.mobile-nav-item:hover {
    padding-left: 10px;
    color: var(--ocean-teal);
}

.mobile-nav-item.active {
    padding-left: 10px;
    color: var(--ocean-teal);
}

.mobile-nav-item.active .item-number {
    color: var(--white);
}

.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .btn-3d-primary {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    justify-content: center;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-auth {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.mobile-auth a {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.mobile-auth a:hover {
    background: var(--ocean-teal);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-menu-3d {
        width: 100vw;
    }

    .mobile-nav-item .item-text {
        font-size: 18px;
    }
}

/* ================================================
   ACTIVE NAVIGATION STATES
   Add this section to your serendib_global_3d_css.css
   ================================================ */

/* Active state for desktop navigation */
.nav-item.active .nav-link {
    color: var(--jungle-green);
    font-weight: var(--font-weight-bold);
}

.nav-item.active .nav-hover {
    transform: translateY(0);
    opacity: 0.15;
}

.nav-item.active .nav-text {
    position: relative;
}

.nav-item.active .nav-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced hover for non-active items */
.nav-item:not(.active):hover .nav-text {
    color: var(--ocean-teal);
}

/* Focus states for accessibility */
.nav-link:focus {
    outline: 2px solid var(--jungle-green);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.nav-link:focus:not(:focus-visible) {
    outline: none;
}

/* Active state indicator alternative style */
.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    opacity: 0;
}

.nav-item.active:hover .nav-link::before {
    opacity: 1;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50%) translateX(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* ================================================
   WHATSAPP FLOATING BUTTON - GLOBAL
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 999;
    animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes whatsapp-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 85px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

/* Mobile User Section - Styled like nav items */
.mobile-user-section {
    padding: 15px 20px;
    margin: 0 20px 5px !important;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-lg);
    border-left: 4px solid #0D9488;
}

.mobile-user-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: white;
    text-align: center;
    display: block;
}