/* ====================================================
   DAZZLER GLOBAL ENHANCEMENTS
   Premium Mobile App Feel - Loading, Transitions, Polish
   ==================================================== */

/* ====================================================
   RESPONSIVE FOUNDATION
   ==================================================== */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* ====================================================
   1) TEXT-ONLY SPLASH SCREEN (FIRST LOAD ONLY)
   ==================================================== */
.page-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5EFE7;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: all;
}

.page-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8B4513;
    margin-bottom: 20px;
    animation: splashFadeIn 0.8s ease both;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.splash-subtitle {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(0.875rem, 2.5vw, 1.5rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.2em;
    text-transform: capitalize;
    color: #8B4513;
    margin-bottom: 50px;
    animation: splashFadeIn 0.8s ease 0.2s both;
}

.splash-loader {
    display: flex;
    gap: 12px;
    align-items: center;
    animation: splashFadeIn 0.8s ease 0.4s both;
}

.splash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #8B4513;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.splash-dot:nth-child(1) { animation-delay: 0s; }
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

/* Larger splash on desktop */
@media (min-width: 1024px) {
    .splash-text {
        font-size: clamp(4rem, 12vw, 9rem);
        letter-spacing: 0.35em;
        margin-bottom: 30px;
    }
    
    .splash-subtitle {
        font-size: clamp(1.125rem, 3vw, 2rem);
        letter-spacing: 0.25em;
        margin-bottom: 60px;
    }
    
    .splash-dot {
        width: 14px;
        height: 14px;
    }
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ====================================================
   2) TEXT-ONLY PAGE TRANSITION LOADER
   ==================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5EFE7;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-loader.active {
    opacity: 1;
    pointer-events: all;
}

.loader-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #1A1A1A;
    animation: loaderPulse 1.2s infinite ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .loader-text {
        font-size: clamp(3.5rem, 10vw, 7rem);
        letter-spacing: 0.35em;
    }
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====================================================
   3) FUNCTIONAL NAVIGATION MENU - PREMIUM DRAWER
   ==================================================== */

/* Logo container with tagline */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.5rem, 1.5vw, 0.75rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #8B4513;
    text-transform: capitalize;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .logo-tagline {
        font-size: clamp(0.625rem, 1.8vw, 0.875rem);
        letter-spacing: 0.12em;
    }
}

@media (min-width: 1024px) {
    .logo-tagline {
        font-size: clamp(0.75rem, 2vw, 1rem);
        letter-spacing: 0.15em;
    }
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-menu.active {
    opacity: 1;
    pointer-events: all;
}

.nav-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.nav-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: min(75vw, 320px);
    height: 100%;
    background-color: #F5EFE7;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active .nav-menu-content {
    transform: translateX(0);
}

.nav-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.nav-menu-close:active {
    transform: scale(0.95);
}

.nav-menu-close span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1A1A1A;
    transition: all 0.3s ease;
}

.nav-menu-close span:first-child {
    transform: rotate(45deg) translateY(4px);
}

.nav-menu-close span:last-child {
    transform: rotate(-45deg) translateY(-4px);
}

.nav-menu-close:hover span {
    background-color: #8B4513;
}

.nav-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.nav-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1A1A1A;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    opacity: 0;
    transform: translateX(-20px);
}

/* Stagger animation for menu links */
.nav-menu.active .nav-menu-link {
    animation: slideInLink 0.4s ease forwards;
}

.nav-menu.active .nav-menu-link:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active .nav-menu-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.active .nav-menu-link:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.active .nav-menu-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInLink {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #8B4513;
    transition: width 0.3s ease;
}

.nav-menu-link:hover,
.nav-menu-link.active {
    color: #8B4513;
    padding-left: 20px;
}

.nav-menu-link:hover::before,
.nav-menu-link.active::before {
    width: 15px;
}

@media (max-width: 480px) {
    .nav-menu-content {
        width: 80vw;
        padding: 60px 30px 30px;
    }
    
    .nav-menu-links {
        gap: 28px;
    }
}

@media (min-width: 768px) {
    .nav-menu-content {
        width: min(60vw, 380px);
    }
}

/* ====================================================
   4) SMOOTH PAGE TRANSITIONS & INITIAL LOAD
   ==================================================== */

/* Smooth body reveal after splash */
body.loading-visible {
    animation: bodyFadeIn 0.8s ease forwards;
}

@keyframes bodyFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Page content smooth entrance */
.page-content {
    opacity: 0;
    animation: contentFadeIn 0.8s ease 0.2s forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar smooth entrance */
header, nav, .navbar {
    opacity: 0;
    animation: navbarSlideDown 0.6s ease 0.1s forwards;
}

@keyframes navbarSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section smooth reveal */
.hero, .hero-section, .main-section {
    opacity: 0;
    animation: heroFadeIn 1s ease 0.3s forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sections cascade in smoothly */
section {
    opacity: 0;
    animation: sectionFadeIn 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.4s; }
section:nth-child(2) { animation-delay: 0.5s; }
section:nth-child(3) { animation-delay: 0.6s; }
section:nth-child(4) { animation-delay: 0.7s; }

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   5) TYPOGRAPHY ENHANCEMENTS - SALON PROFESSIONAL
   ==================================================== */

/* Import elegant salon fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    font-kerning: normal;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Elegant heading hierarchy */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.2;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.3;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    line-height: 1.4;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "swsh" 1;
    font-weight: 600;
    color: #1A1A1A;
}

/* Body text - clean and readable */
p {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-bottom: 1.25em;
    color: #2A2A2A;
}

p:last-child {
    margin-bottom: 0;
}

/* Stylish accents and subtitles */
.subtitle, .tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #8B4513;
}

/* Better line breaks */
.text-balance {
    text-wrap: balance;
}

/* Desktop typography enhancements */
@media (min-width: 1024px) {
    h1 {
        font-size: clamp(3rem, 7vw, 5rem);
        letter-spacing: 0.1em;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: clamp(2.25rem, 5vw, 3.75rem);
        letter-spacing: 0.08em;
        margin-bottom: 1.25rem;
    }
    
    h3 {
        font-size: clamp(1.875rem, 4vw, 2.75rem);
        letter-spacing: 0.05em;
    }
    
    p {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.8;
        letter-spacing: 0.015em;
    }
}

/* ====================================================
   6) IMAGE TRANSITIONS & POLISH
   ==================================================== */
img {
    animation: imageFadeIn 0.7s ease;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger image animations */
img:nth-child(1) { animation-delay: 0.1s; }
img:nth-child(2) { animation-delay: 0.2s; }
img:nth-child(3) { animation-delay: 0.3s; }
img:nth-child(4) { animation-delay: 0.4s; }

/* Add subtle shadow to images for depth */
section img:not(.logo-image) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

section img:not(.logo-image):hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ====================================================
   7) BUTTON & INTERACTION ENHANCEMENTS
   ==================================================== */
button, .button, .cta-button, .submit-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
}

button:hover, .button:hover, .cta-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.35);
}

button:active, .button:active, .cta-button:active, .submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

/* Ripple effect on click */
button::after, .cta-button::after, .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::after, .cta-button:active::after, .submit-button:active::after {
    width: 200px;
    height: 200px;
}

/* Link hover effects */
a {
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

a:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

/* Focus states for accessibility */
button:focus-visible, 
.button:focus-visible, 
.cta-button:focus-visible, 
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #8B4513;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ====================================================
   8) RESPONSIVE SPACING & ALIGNMENT
   ==================================================== */
section {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    section {
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 1024px) {
    section {
        padding-left: 60px;
        padding-right: 60px;
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Remove default margins that create gaps */
section:first-of-type {
    margin-top: 0;
    padding-top: 20px;
}

section:last-of-type {
    margin-bottom: 0;
}

/* Ensure consistent card alignment */
.card, .service-card, .menu-category, .crew-member, .form-card {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

/* Enhanced text flow for editorial content */
.editorial-text {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Image wrapping for editorial layouts */
.editorial-image-float-right {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 45%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.editorial-image-float-left {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
    max-width: 45%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

@media (max-width: 640px) {
    .editorial-image-float-right,
    .editorial-image-float-left {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* ====================================================
   9) TOUCH TARGET OPTIMIZATION & MOBILE ENHANCEMENTS
   ==================================================== */
@media (hover: none) and (pointer: coarse) {
    button, .button, a, .menu-icon {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }
    
    /* Larger tap targets for mobile */
    .nav-menu-link {
        padding: 16px 0;
    }
    
    /* Remove hover effects on touch devices */
    button:hover, .button:hover, .cta-button:hover {
        transform: none;
    }
    
    /* Add active state feedback for touch */
    button:active, .button:active, .cta-button:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce animation intensity on mobile for performance */
    .scroll-fade-up, .scroll-fade-left, .scroll-fade-right {
        transform: translateY(20px) !important;
    }
    
    .scroll-fade-up.visible, 
    .scroll-fade-left.visible, 
    .scroll-fade-right.visible {
        transform: translateY(0) !important;
    }
}

/* ====================================================
   10) SMOOTH SCROLL BEHAVIOR & FLOATING ANIMATIONS
   ==================================================== */
html {
    scroll-behavior: smooth;
}

/* Scroll-triggered floating animations */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Floating effect for images on scroll */
.float-on-scroll {
    transition: transform 0.3s ease-out;
}

/* Parallax-like subtle movement */
.parallax-slow {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stagger delays for multiple elements */
.scroll-fade-up:nth-child(1) { transition-delay: 0s; }
.scroll-fade-up:nth-child(2) { transition-delay: 0.1s; }
.scroll-fade-up:nth-child(3) { transition-delay: 0.2s; }
.scroll-fade-up:nth-child(4) { transition-delay: 0.3s; }
.scroll-fade-up:nth-child(5) { transition-delay: 0.4s; }
.scroll-fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ====================================================
   11) BRAND SIGNATURE ELEMENT
   ==================================================== */
.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.brand-divider-line {
    width: 60px;
    height: 1px;
    background-color: #8B4513;
}

.brand-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #8B4513;
    animation: dotGlow 2s infinite ease-in-out;
}

@keyframes dotGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ====================================================
   12) MOMENT OF DELIGHT - SUBTLE ANIMATIONS
   ==================================================== */
.delight-fade-in {
    animation: delightFadeIn 0.8s ease;
}

@keyframes delightFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.delight-scale {
    animation: delightScale 0.6s ease;
}

@keyframes delightScale {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced card hover effects */
.card, .service-card, .crew-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .service-card:hover, .crew-member:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Smooth text reveal */
.text-reveal {
    overflow: hidden;
}

.text-reveal > * {
    animation: textSlideUp 0.8s ease both;
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   13) REDUCED MOTION SUPPORT
   ==================================================== */
@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;
    }
    
    .page-splash,
    .page-loader {
        display: none !important;
    }
}

/* ====================================================
   14) PERFORMANCE OPTIMIZATIONS
   ==================================================== */
img {
    will-change: transform, opacity;
}

.page-splash,
.page-loader,
.nav-menu {
    will-change: opacity;
}

/* Force GPU acceleration for smooth animations */
.page-splash,
.page-loader,
.nav-menu,
.nav-menu-content,
img,
button {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ====================================================
   15) RESPONSIVE IMAGE SCALING
   ==================================================== */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Prevent image distortion for logos */
.logo-image {
    object-fit: contain !important;
}

/* ====================================================
   16) PREVENT LAYOUT SHIFT
   ==================================================== */
body {
    overflow-x: hidden;
}

/* Prevent text overflow */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ====================================================
   17) LOADING STATE VISIBILITY & SMOOTH REVEAL
   ==================================================== */

/* Start with body hidden for smooth reveal */
body {
    visibility: hidden;
}

body.loading-hidden {
    visibility: visible;
    opacity: 0;
}

body.loading-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Ensure smooth reveal after splash */
body.loading-visible * {
    animation-play-state: running;
}

