/* ===== FAVICON STYLES ===== */
link[rel="icon"] {
    background: transparent;
    border: none;
    outline: none;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable hardware acceleration */
body,
.header,
.hero,
.service-card,
.gallery-item,
.cta-button,
.whatsapp-float {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize animations */
.service-card,
.gallery-item,
.cta-button,
.nav-link {
    will-change: transform, opacity;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-behavior: smooth;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* ===== RESET AND BASE STYLES ===== */

:root {
    /* Colors */
    --white: #ffffff;
    --beige: #f5f2ed;
    --light-beige: #faf8f5;
    --gold: #d4af37;
    --light-gold: #f4e5c2;
    --rose: #fde8e8;
    --light-rose: #ffe8e8;
    --gray-dark: #2c3e50;
    --gray-light: #6c757d;
    --gray-medium: #495057;
    --black: #000000;
    --platinum: #e5e4e2;
    --champagne: #f7e7ce;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-luxury: 0 20px 60px rgba(212, 175, 55, 0.2);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--light-gold));
    --gradient-rose: linear-gradient(135deg, var(--rose), var(--light-rose));
    --gradient-dark: linear-gradient(135deg, var(--gray-dark), var(--gray-medium));
    --gradient-platinum: linear-gradient(135deg, var(--platinum), var(--champagne));
    --gradient-luxury: linear-gradient(135deg, #d4af37, #f4e5c2, #e5e4e2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--champagne) 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--gray-dark);
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-beige);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 228, 226, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 231, 206, 0.95));
    box-shadow: var(--shadow-luxury);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-icon:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: var(--shadow-luxury);
}

.logo h1 {
    font-size: 2.2rem;
    color: var(--gray-dark);
    margin-bottom: 0.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--gold);
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                url("isa spa center/hero.jpg") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(244, 229, 194, 0.1) 50%, 
        rgba(229, 228, 226, 0.05) 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s ease;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--white), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease 0.2s;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-luxury);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-luxury);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease 0.4s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    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.4s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease;
}

.section-header h2 {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--champagne) 50%, var(--platinum) 100%);
    position: relative;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(244, 229, 194, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-luxury);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-rose) 0%, rgba(253, 232, 232, 0.8) 100%);
    position: relative;
}

.service-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--white) 0%, var(--champagne) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.service-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-luxury);
}

.service-header h3 {
    color: var(--gray-dark);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-content.active {
    max-height: 500px;
}

.service-list {
    list-style: none;
    padding: 2rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-list li:hover {
    padding-left: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
}

.service-list li i {
    color: var(--gold);
    font-size: 0.9rem;
    min-width: 20px;
}

.service-toggle {
    padding: 1.5rem;
    text-align: center;
    background: var(--light-beige);
}

.toggle-btn {
    background: var(--gradient-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.toggle-btn.active {
    background: var(--gradient-dark);
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 6rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 0;
}

.gallery-info {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
    background: var(--light-beige);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-light);
    margin: 0;
}

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

.contact-social h3 {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-info p {
    color: var(--light-gold);
    margin-bottom: 0.5rem;
}

.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-gold);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-gold);
    margin: 0;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Allow normal scrolling */
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        touch-action: manipulation;
    }
    
    /* Remove fixed position from html */
    html {
        overflow-x: hidden;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-strong);
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .logo p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}
