/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #8e44ad;   /* Royal Purple */
    --secondary: #4a235a; /* Deep Plum */
    --accent: #f1c40f;    /* Gold */
    --bg-light: #fdfbfb;
    --text-dark: #2c3e50;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================================
   2. CORE LAYOUT (Top Bar, Header, Footer)
   ========================================= */

/* Top Bar (Contacts) */
.top-bar {
    background-color: var(--secondary);
    color: white;
    padding: 12px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Header/Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

/* Footer (Moved to top to prevent errors) */
footer {
    background-color: #4a235a; /* Hardcoded color to ensure it works */
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 80px;
    width: 100%;
    display: block;
}

/* =========================================
   3. BUTTONS & HERO
   ========================================= */
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.5); 
}

.hero {
    height: 90vh;
    background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.4)), url('https://images.unsplash.com/photo-1555252333-9f8e92e65df9?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.9);
}

/* =========================================
   4. SLIDERS (Homepage Reviews & Gallery)
   ========================================= */
.slider-section {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.slider-viewport {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
}

/* Review Card Styling */
.review-card {
    background: white;
    min-width: 320px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent);
    flex-shrink: 0;
}

/* Homepage Gallery Slider Images (Fixed Size) */
.gallery-slider-item {
    height: 250px;      
    width: auto;        
    max-width: 400px;   
    object-fit: cover;  
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* =========================================
   5. GALLERY PAGE GRID & LIGHTBOX
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover { transform: scale(1.03); }

/* Lightbox (Zoom Popup) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 20px white;
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: #f1c40f; }

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* =========================================
   6. CARDS & ANIMATIONS
   ========================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--primary);
    text-align: center;
}

/* Animations */
.animate-up { animation: fadeIn 1s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }