/* --- VARIABLES & RESET --- */
:root {
    --primary-pink: #060606;   /* Black */
    --accent-yellow: #154734;  /* Deep Green */
    --soft-pink: #f4d0d0;      
    --sage-green: #a8cba5;     
    --wall-grey: #b5b5b5;      
    
    /* Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border-light: rgba(255, 255, 255, 0.8);
    --glass-border-dark: rgba(0, 0, 0, 0.1);
    
    --text-dark: #1a1a1a;
    --text-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--wall-grey);
    background-image: 
        radial-gradient(circle at 10% 20%, var(--primary-pink) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, var(--accent-yellow) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, var(--sage-green) 0%, transparent 50%),
        linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    background-size: 150% 150%;
    color: var(--text-dark);
    overflow-x: hidden;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- DEEPER 3D GLASS EFFECT --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border-light);
    border-left: 1px solid var(--glass-border-light);
    border-bottom: 1px solid var(--glass-border-dark);
    border-right: 1px solid var(--glass-border-dark);
    box-shadow: 
        20px 20px 40px -10px rgba(0,0,0,0.3), 
        inset 0 0 20px rgba(255,255,255,0.3);
    border-radius: 24px;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1000px; 
    padding: 1rem 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000;
    background: rgba(21, 71, 52, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 50px;
}

.logo {
    font-size: 1.2rem; 
    font-weight: 800; 
    color: #FFFFFF; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    text-decoration: none; 
    color: #FFFFFF; 
    font-weight: 700; 
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-yellow); }

.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 3px;
    bottom: -5px; left: 0; background-color: var(--accent-yellow); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
header {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-image: url('images/hero.webp'); 
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

header::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255,255,255,0.5);
    border-left: 2px solid rgba(255,255,255,0.5);
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    will-change: transform, opacity;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
    opacity: 0; animation: fadeUp 1s forwards 0.5s;
}

p.hero-sub {
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0; animation: fadeUp 1s forwards 0.8s;
}

.cta-btn {
    padding: 15px 40px; font-size: 1.2rem;
    background: white; 
    color: var(--primary-pink); 
    border: none; border-radius: 50px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
    opacity: 0; animation: fadeUp 1s forwards 1.1s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.cta-btn:hover { transform: scale(1.05); background: var(--accent-yellow); color: white; }

/* --- SECTIONS --- */
section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 60px; color: var(--primary-pink); font-weight: 800; text-transform: uppercase; }

/* --- ABOUT --- */
.about-container { padding: 50px; text-align: center; }
.about-text { max-width: 800px; margin: 0 auto; font-size: 1.2rem; line-height: 1.8; color: #111; font-weight: 500; }

/* --- SERVICES --- */
.services-wrapper { display: flex; flex-direction: column; gap: 0; }
.service-row {
    display: flex; height: 500px; margin-bottom: 50px;
    border-radius: 30px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-text-block {
    flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center;
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.5);
}

.theme-style { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(230, 230, 230, 0.9)); }
.theme-color { background: linear-gradient(135deg, rgba(230, 240, 230, 0.9), rgba(200, 220, 210, 0.9)); }
.theme-treatments { background: linear-gradient(135deg, rgba(210, 230, 210, 0.9), rgba(180, 200, 180, 0.9)); }

.service-text-block h3 {
    font-size: 2.5rem; 
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 4px; text-align: center; margin-bottom: 30px; font-weight: 800;
}

.service-list { list-style: none; width: 100%; max-width: 400px; margin: 0 auto; }
.service-item {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 15px; padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0,0,0,0.3); font-weight: 700; color: #333;
}

.service-slideshow { flex: 1; position: relative; overflow: hidden; background: #000; cursor: crosshair; }

/* UPDATED: Images start grayscale */
.slide-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; 
    
    /* Add transition for filter so color fade is smooth */
    transition: opacity 1.5s ease-in-out, filter 0.5s ease;
    
    /* Default: Grayscale */
    filter: grayscale(100%) contrast(120%);
}

/* UPDATED: Hover on the slideshow container reveals full color */
.service-slideshow:hover .slide-img {
    filter: grayscale(0%) contrast(100%);
}

.slide-img.active { opacity: 1; }
.service-row.reverse { flex-direction: row-reverse; }

/* --- MEET THE TEAM --- */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px; 
    padding: 20px; 
    justify-content: center;
}

.team-card {
    padding: 50px 20px; text-align: center; 
    transition: transform 0.1s; 
    transform-style: preserve-3d; cursor: pointer; position: relative;
}

.member-img-wrapper {
    width: 180px; height: 180px; margin: 0 auto 25px auto;
    border-radius: 50%; overflow: hidden; 
    border: 4px solid white;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    transform: translateZ(30px);
    transition: transform 0.3s;
}

.member-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%); transition: filter 0.3s;
}

.team-card:hover .member-img-wrapper img { filter: grayscale(0%); }
.team-card h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--primary-pink); transform: translateZ(20px); }
.team-card p { color: var(--accent-yellow); font-weight: 700; font-size: 1rem; text-transform: uppercase; transform: translateZ(20px); }

/* --- CONTACT --- */
.contact-wrapper { max-width: 600px; margin: 0 auto; padding: 50px; }
form { display: flex; flex-direction: column; gap: 20px; }
input, textarea {
    padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.6); outline: none; transition: 0.3s;
    font-weight: 500; color: #000;
}
input:focus, textarea:focus { background: rgba(255,255,255,0.95); box-shadow: 0 0 15px var(--accent-yellow); }
footer { text-align: center; padding: 40px; color: #333; font-weight: 600; }

/* --- ANIMATIONS --- */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
    nav { justify-content: center; background: rgba(255,255,255,0.95); }
    .service-row, .service-row.reverse { flex-direction: column; height: auto; }
    .service-slideshow { height: 300px; }
    header { background-attachment: scroll; }
}

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1); /* Lighter glass background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255,255,255,0.5);
    border-left: 2px solid rgba(255,255,255,0.5);
    border-radius: 40px; /* Match hero content border-radius */
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); /* Match hero content box-shadow */
    
    margin: 5% auto; 
    padding: 40px; /* Adjusted padding */
    width: 90%; /* Adjusted width */
    max-width: 800px; /* Increased max-width for better readability */
    color: var(--text-dark); /* Ensure text is readable */
    position: relative; /* For absolute positioning of close button */
}

.close-button {
    color: var(--primary-pink);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-yellow);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-align: center;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-content p, .modal-content li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

.modal-content ul li {
    margin-bottom: 5px;
}

