/* ========================================
   DRA. RENATA RABELO - PREMIUM MEDICAL SITE
   Modern, Elegant & Dynamic Design
   ======================================== */

:root {
    /* Color Palette - Warm Earthy Tones with Gold Accents */
    --color-primary: #8B7355;
    --color-primary-light: #A89076;
    --color-primary-dark: #6D5A42;
    --color-accent: #C9A66B;
    --color-accent-light: #E0C99A;
    
    --color-bg: #FAF8F5;
    --color-bg-alt: #F3EEE8;
    --color-surface: #FFFFFF;
    --color-surface-elevated: rgba(255, 255, 255, 0.9);
    
    --color-text: #3D352C;
    --color-text-muted: #6B6259;
    --color-text-light: #9A9088;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #C9A66B 0%, #8B7355 100%);
    --gradient-dark: linear-gradient(135deg, #3D352C 0%, #6D5A42 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(201, 166, 107, 0.3) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-spacing: 160px;
    --section-spacing-mobile: 80px;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 53, 44, 0.06);
    --shadow-md: 0 8px 30px rgba(61, 53, 44, 0.08);
    --shadow-lg: 0 20px 60px rgba(61, 53, 44, 0.12);
    --shadow-glow: 0 0 60px rgba(201, 166, 107, 0.3);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   AMBIENT BACKGROUND
   ======================================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 166, 107, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 144, 118, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Particles */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.6; }
}

/* ========================================
   CURSOR EFFECTS
   ======================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-smooth), opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 166, 107, 0.08) 0%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-smooth);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-glow {
        display: none;
    }
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-spacing-mobile) 0;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.5s var(--ease-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
    overflow: hidden;
}

.nav-item span {
    display: inline-block;
    transition: transform 0.4s var(--ease-smooth);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-smooth);
}

.nav-item:hover span {
    transform: translateY(-2px);
}

.nav-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 100px;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(201, 166, 107, 0.3);
}

.btn-nav i {
    font-size: 0.7rem;
    transition: transform 0.3s var(--ease-smooth);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 166, 107, 0.4);
}

.btn-nav:hover i {
    transform: translateX(4px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-smooth);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-item {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    transition: color 0.3s;
}

.mobile-nav-item:hover {
    color: var(--color-accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 166, 107, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
}

.title-accent {
    font-style: italic;
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-subtitle .highlight {
    color: var(--color-primary);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: var(--shadow-lg);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--ease-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 70px rgba(61, 53, 44, 0.2);
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.15);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 100px;
    transition: all 0.4s var(--ease-smooth);
}

.btn-secondary i {
    font-size: 0.8rem;
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-light);
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.deco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 166, 107, 0.1);
}

.ring-1 {
    width: 400px;
    height: 400px;
    animation: ring-pulse 8s infinite ease-in-out;
}

.ring-2 {
    width: 600px;
    height: 600px;
    animation: ring-pulse 8s infinite ease-in-out 1s;
}

.ring-3 {
    width: 800px;
    height: 800px;
    animation: ring-pulse 8s infinite ease-in-out 2s;
}

@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.2; }
}

/* Stagger Animations */
.stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5, .stagger-6, .stagger-7 {
    opacity: 0;
    transform: translateY(40px);
    animation: stagger-in 1s var(--ease-out-expo) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.8s; }

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION LABELS & TITLES
   ======================================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.section-label.center {
    justify-content: center;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--gradient-primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section-title.center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.text-gradient-light {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.frame-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.5s var(--ease-smooth);
}

.about-image-container:hover .frame-accent {
    transform: translate(10px, 10px);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.about-image {
    width: 100%;
    height: auto;
    transition: transform 1s var(--ease-smooth);
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(61, 53, 44, 0.3));
    pointer-events: none;
}

/* Floating Experience Card */
.floating-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-surface);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-card 4s infinite ease-in-out;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.4;
}

/* About Content */
.about-content {
    padding-right: 2rem;
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
    margin: 1.8rem 0 0.8rem;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 500;
}

/* Credentials */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: all 0.3s var(--ease-smooth);
}

.credential-item:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.credential-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.credential-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 4px;
}

.credential-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Highlights */
.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(201, 166, 107, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-primary-dark);
}

.highlight-item i {
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .floating-card {
        bottom: -20px;
        right: 20px;
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(139, 115, 85, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.section-header {
    margin-bottom: 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.services-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Service Card */
.service-card {
    position: relative;
    background: var(--color-surface);
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease-smooth);
    cursor: pointer;
}

.card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.1);
}

.card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

.service-card:hover .card-bg {
    opacity: 1;
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: transform 0.4s var(--ease-smooth);
}

.service-card:hover .card-content {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s var(--ease-bounce);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    flex: 1;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-top: 1.5rem;
    transition: gap 0.3s var(--ease-smooth);
}

.service-card:hover .card-link {
    gap: 12px;
}

/* Card Effects */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 166, 107, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 3;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(201, 166, 107, 0) 0%, rgba(201, 166, 107, 0.3) 50%, rgba(201, 166, 107, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 4;
}

.service-card:hover .card-border {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   INSTAGRAM SECTION
   ======================================== */
.instagram-section {
    background: var(--color-bg);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.instagram-card {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.instagram-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.instagram-card-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.instagram-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text);
}

.instagram-card-cta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.instagram-cta {
    display: flex;
    justify-content: center;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    background: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(201, 166, 107, 0.3);
}

.testimonial-quote {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 166, 107, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 144, 118, 0.15) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 10px 40px rgba(201, 166, 107, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(201, 166, 107, 0.5);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--color-surface);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Contact Info Panel */
.contact-info-panel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.panel-bg {
    position: absolute;
    inset: 0;
}

.panel-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 53, 44, 0.95) 0%, rgba(109, 90, 66, 0.9) 100%);
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.panel-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-smooth);
}

.contact-item:hover .item-icon {
    background: var(--color-accent);
    color: var(--color-text);
}

.item-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 6px;
}

.item-value {
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-3px);
}

/* Contact Form Panel */
.contact-form-panel {
    padding: 3.5rem;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-text-muted);
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.form-group label i {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s var(--ease-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(201, 166, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s var(--ease-smooth);
}

.form-group:focus-within .input-line {
    width: 100%;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.4s var(--ease-smooth);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 166, 107, 0.3);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.btn-submit.loading span,
.btn-submit.loading i {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        min-height: 400px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-bg-alt);
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text);
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.footer-copy p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-ping 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: var(--color-surface);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s var(--ease-smooth);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ========================================
   MAGNETIC ELEMENT
   ======================================== */
.magnetic-element {
    transition: transform 0.3s var(--ease-smooth);
}

/* ========================================
   WHATSAPP CHAT MODAL
   ======================================== */
.whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 100px 30px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
}

.whatsapp-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chat-container {
    position: relative;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s var(--ease-smooth);
}

.whatsapp-modal.active .chat-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #075E54;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.chat-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat Body */
.chat-body {
    position: relative;
    flex: 1;
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
}

.chat-bg-pattern {
    position: absolute;
    inset: 0;
    background-color: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.chat-messages {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Message Bubbles */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: message-in 0.4s var(--ease-out-expo);
    position: relative;
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message.received {
    align-self: flex-start;
    background: white;
    color: #303030;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.received::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 12px 12px;
    border-color: transparent transparent white transparent;
}

.chat-message.sent {
    align-self: flex-end;
    background: #DCF8C6;
    color: #303030;
    border-bottom-right-radius: 4px;
}

.message-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #999;
    margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 70px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: message-in 0.3s var(--ease-out-expo);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        background: #999;
    }
    30% {
        transform: translateY(-6px);
        background: #25D366;
    }
}

/* Chat Footer */
.chat-footer {
    padding: 16px 20px;
    background: #F0F0F0;
    border-top: 1px solid #E0E0E0;
}

.chat-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #25D366;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.chat-cta-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.chat-cta-btn i {
    font-size: 1.2rem;
}

/* Hide button until messages are shown */
.chat-cta-btn {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s var(--ease-out-expo);
}

.chat-cta-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .whatsapp-modal {
        padding: 80px 15px 15px;
    }
    
    .chat-container {
        width: 100%;
        max-height: calc(100vh - 100px);
        border-radius: 16px;
    }
    
    .chat-body {
        min-height: 250px;
    }
}
/* ========================================
   MOBILE OPTIMIZATIONS & FIXES
   ======================================== */
@media (max-width: 768px) {

    /* Hero Layout Fix */
    .hero {
        min-height: 100dvh;
        padding: 100px 20px 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 3rem;
        /* Fallback */
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-subtitle br {
        display: none;
    }

    /* Animations - REMOVED for Mobile (Instant Load) */

    /* Force all staggered elements to be visible immediately */
    .stagger-1,
    .stagger-2,
    .stagger-3,
    .stagger-4,
    .stagger-5,
    .stagger-6,
    .stagger-7,
    .reveal-up,
    .reveal-slide-left,
    .reveal-slide-right,
    .service-card,
    .title-word,
    .hero-badge,
    .hero-cta,
    .scroll-indicator {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    /* Hide ONLY extremely heavy elements */
    #heroCanvas {
        display: none !important;
    }

    /* Static particles if wanted, or hidden */
    .particles-container {
        display: none !important;
    }

    /* Navbar Mobile */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Grid Adjustments */
    .about-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }
}
/* ========================================
   NAVBAR MOBILE OPTIMIZATION (STATIC)
   ======================================== */
@media (max-width: 768px) {

    .navbar,
    .navbar.scrolled {
        position: fixed !important;
        top: 0 !important;
        padding: 15px 0 !important;
        background-color: #FAF8F5 !important;
        /* Solid color, no alpha */
        backdrop-filter: none !important;
        /* Remove heavy blur */
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(139, 115, 85, 0.1) !important;
        transition: none !important;
        /* Remove transition lag */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    }

    /* Ensure logo and toggle don't jump */
    .nav-container {
        height: auto !important;
    }
}
/* ========================================
   HERO STABILITY FIX (MOBILE)
   ======================================== */
@media (max-width: 768px) {
    .hero {
        /* Use static vh instead of dvh to avoid layout trashing 
           when mobile address bar expands/contracts */
        min-height: 100vh !important;
        height: 100vh !important;
        /* Force fixed height */

        /* Ensure no transitions on dimensions */
        transition: none !important;

        /* Prevent background shifts */
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}
/* ========================================
   GLOBAL MOBILE STABILITY FIXES
   ======================================== */
@media (max-width: 768px) {

    /* Prevent ANY fixed background which causes repaint/lag on scroll */
    *,
    *::before,
    *::after {
        background-attachment: scroll !important;
    }

    /* Improve scroll performance */
    html,
    body {
        overscroll-behavior-y: none;
        /* Prevent bounce effect if desired, or 'auto' */
        -webkit-overflow-scrolling: touch;
    }
}
/* ========================================
   REMOVE HEAVY BACKGROUNDS (MOBILE)
   ======================================== */
@media (max-width: 768px) {

    /* These elements use heavy filters (blur) and fixed positioning */
    .ambient-bg,
    .hero-decoration,
    .gradient-orb,
    .deco-ring {
        display: none !important;
    }
}
/* ========================================
   CHAT BACKGROUND FIX
   ======================================== */
.chat-container {
    position: relative;
    overflow: hidden;
    /* Clip background */
}

.chat-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Behind everything */
    height: 100%;
    width: 100%;
    /* Ensure opacity is correct as it was inline before */
    opacity: 0.5;
    pointer-events: none;
}

.chat-header,
.chat-footer {
    position: relative;
    z-index: 2;
    /* Above background */
}

.chat-body {
    position: relative;
    z-index: 1;
    /* Above background */
    background: transparent !important;
    /* Let pattern show through */
}
