@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Obsidian & Gold Theme */
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --primary-gold: #D4AF37;
    --secondary-gold: #C5A028;
    --accent-gold: #FFD700;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F1D37E 50%, #C5A028 100%);
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.3);
    --border-gold: 1px solid rgba(212, 175, 55, 0.2);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 5px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

section {
    padding: 6rem 0;
}

/* Glassmorphism */
.glass {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-gold);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), var(--gold-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-gold);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Service Cards */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--gold-glow);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-top: 1rem;
    display: block;
}

/* Form Styling */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-sans);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Selection Grids (Booking Slots) */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.slot {
    padding: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.slot:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.slot.selected {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Context Menu Protection */
.protection-msg {
    position: fixed;
    z-index: 10000;
    background: var(--bg-card);
    border: var(--border-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    color: var(--primary-gold);
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translate(-50%, -100%);
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000; /* Increased z-index */
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Response Media Queries (NUCLEAR FIX) */
@media (max-width: 992px) {
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(5, 5, 5, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2.5rem !important;
        transition: 0.4s ease-in-out !important;
        z-index: 1000 !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .menu-toggle {
        display: flex !important;
        z-index: 2000 !important;
    }

    .nav-links a {
        font-size: 1.8rem !important;
        color: white !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    /* Admin Mobile View (Cards instead of Table) */
    table, thead, tbody, th, td, tr {
        display: block !important;
    }

    #appointments-list tr {
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 2rem;
        padding: 1.5rem;
        border: var(--border-gold);
        border-radius: 8px;
    }

    #appointments-list td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    }

    #appointments-list td:last-child {
        border-bottom: none !important;
        padding-top: 1.5rem !important;
        justify-content: center;
    }

    #appointments-list td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--primary-gold);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    thead {
        display: none; /* Hide headers on mobile */
    }

    .delete-btn {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-content {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}
