/* 1. BRAND VARIABLES */  
:root {
    --indigo-dark: #081031;
    --indigo-royal: #1A2A6C;
    --gold: #D4AF37;
    --white: #ffffff;
    --off-white: #f4f4f4;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* 1. GLOBAL RESET AND BRAND VARIABLES */

/* This is the magic line that applies smooth scrolling to the entire site */
html {
    scroll-behavior: smooth;
}

/* 2. GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--indigo-dark);
    font-family: var(--font-main);
    color: var(--white);
    overflow-x: hidden;
}

/* 3. NAVIGATION & LOGO */
.navbar {
    background: var(--indigo-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

/* --- HERO SECTION (Combined & Fixed) --- */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 40px;
    /* Verified Path: assets/images/hero/hero-bg.png */
    background: linear-gradient(rgba(8, 16, 49, 0.7), rgba(8, 16, 49, 0.7)), 
                url('../assets/images/hero/hero-bg.webp') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px); 
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: fadeIn 1s ease-out; 
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 8vw, 4rem); 
    margin-bottom: 20px;
    color: var(--white);
}

.highlight { color: var(--gold); }

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn, .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
}

/* 4. LOGO & LINKS */
.logo-link { text-decoration: none; display: inline-block; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-svg { width: 35px; height: 35px; }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: bold; color: var(--white); letter-spacing: 1px; }
.hub-accent { color: var(--gold); }

.nav-links { display: flex; list-style: none; }
.nav-links li a { color: var(--white); text-decoration: none; margin-left: 25px; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.nav-links li a:hover, .nav-links li a.active { color: var(--gold); }

/* 1. THE TOGGLE: Fixes the "One Long Line" icon */
.menu-toggle {
    display: none; /* Keep hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;       /* FIXED WIDTH: This stops it from stretching */
    height: 22px;      /* FIXED HEIGHT */
    z-index: 1001;     /* Sits on the navbar */
    position: relative;
}

.bar {
    display: block;
    width: 100%;       /* Each bar stays 30px wide */
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; right: -100%; top: 65px; flex-direction: column;
        background: var(--indigo-dark); width: 75%; height: 100vh;
        text-align: center; padding-top: 50px; transition: 0.4s ease; border-left: 2px solid var(--gold);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links li a { margin-left: 0; font-size: 1.2rem; }
}

/* 6. BUTTONS */
.btn { padding: 14px 28px; text-decoration: none; border-radius: 4px; font-weight: bold; display: inline-block; margin: 10px; transition: 0.3s; }
.btn-gold { background: var(--gold); color: var(--indigo-dark); }
.btn-gold:hover { background: #b8952e; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--indigo-dark); }

/* --- 7. GALLERY & CARDS --- */
.gallery-container { 
    padding: 140px 5% 60px; 
    min-height: 100vh;
}

.glass-header {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h1 { 
    font-family: var(--font-heading); 
    font-size: clamp(2rem, 5vw, 3rem); 
    margin-bottom: 15px; 
}

.filter-bar { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-top: 25px; 
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold);
    color: var(--indigo-dark);
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
}

.art-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(212, 175, 55, 0.1); 
    border-radius: 12px; 
    overflow: hidden; 
    transition: 0.4s; 
}

.art-card:hover { transform: translateY(-10px); border-color: var(--gold); }

.art-img { height: 320px; position: relative; overflow: hidden; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--indigo-royal); 
    padding: 5px 12px; 
    font-size: 0.75rem; 
    border-radius: 4px; 
    z-index: 2; 
}

.art-info { 
    padding: 20px 20px 28px; 
}
.art-info h3 { color: var(--white); margin-bottom: 5px; }
.art-info p { color: #888; font-size: 0.9rem; margin-bottom: 10px; }
.price { color: var(--gold); font-weight: bold; font-size: 1.1rem; }

/* --- 8. GLOBAL FOOTER --- */
footer.main-footer { 
    background: #050a1f !important; 
    padding: 60px 5% 20px !important; 
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    width: 100%;
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px; 
}

.main-footer .footer-links ul,
.main-footer .footer-links ul li { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important;
}

.main-footer .footer-links ul li a { 
    color: #D4AF37 !important; 
    text-decoration: none !important; 
    display: block; 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    transition: 0.3s ease;
}

.main-footer .footer-links a:hover { 
    color: #ffffff !important; 
}

.footer-contact p { 
    color: #cccccc; 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    font-size: 0.8rem; 
    color: #666666; 
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

/* 9. FORMS & AUTHENTICATION */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(rgba(8, 16, 49, 0.8), rgba(8, 16, 49, 0.8)), 
                url('../assets/images/hero/hero-bg.webp') no-repeat center center/cover;
}

.login-box {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input, 
.form-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-main);
    transition: 0.3s;
}

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

.full-width {
    width: 100%;
}

.form-footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer-links p {
    margin-bottom: 10px;
}

.form-footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.form-footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
}

/* 10. DASHBOARD MODALS & CONTROLS */
.dashboard-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 16, 49, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
}

.delete-btn {
    color: #ff4d4d !important;
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    background: rgba(255, 77, 77, 0.05) !important;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ff4d4d !important;
    color: white !important;
    border-color: #ff4d4d !important;
}

.logout-btn-nav {
    padding: 5px 15px !important;
    margin-left: 10px;
    font-size: 0.8rem !important;
    border-color: rgba(255,255,255,0.3) !important;
}

@media (max-width: 480px) {
    .dashboard-controls {
        flex-direction: column;
        align-items: center;
    }
    .dashboard-controls .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* 11. FLOATING INTERACTION ELEMENTS */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--gold);
    color: var(--indigo-dark);
    padding: 12px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-gold 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: var(--white);
    color: var(--gold);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (max-width: 480px) {
    .whatsapp-float {
        padding: 15px;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
    }
    .chat-text { display: none; }
    .chat-icon { font-size: 1.6rem; margin: 0; }
}

/* 12. TOAST NOTIFICATION & COUNTERS */
.toast-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--indigo-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    width: auto;
    max-width: 90%;
}

.toast-container.show {
    top: 100px;
}

.counter-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
}
.counter-item:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   13. MASTER IMMERSIVE BRANDING (SHINE & GLOW)
   ========================================= */

/* --- 1. Gallery Page (Shining & Immersive) --- */
body.gallery-immersive {
    background-color: #050a1f;
    background-image: linear-gradient(rgba(8, 16, 49, 0.4), rgba(8, 16, 49, 0.6)), 
                url('../assets/images/site/gallery-bg.webp') !important;
    background-attachment: fixed;
    background-size: cover;
}

/* Restoring the "Bright" Glass Header */
.gallery-immersive .glass-header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Making the Title Shine */
.gallery-immersive h1 {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0,0,0,0.5);
}

/* --- 2. Tayo's Profile (Blue Geometric) --- */
body.profile-immersive {
    background: linear-gradient(rgba(8, 16, 49, 0.8), rgba(8, 16, 49, 0.8)), 
                url('../assets/images/site/adire-pattern.webp') !important;
    background-attachment: fixed;
    background-size: 600px;
}

/* --- 3. The Craft (Orange Starburst) --- */
body.about-immersive {
    background-image: linear-gradient(rgba(8, 16, 49, 0.7), rgba(8, 16, 49, 0.8)), 
                url('../assets/images/site/about-bg.webp') !important;
    background-attachment: fixed;
    background-size: cover;
}

/* --- 4. Footer & Contact Info Restoration --- */
/* This fixes the "lost style" in your contact section */
.main-footer .footer-contact {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding: 30px !important;
    border-radius: 15px !important;
}

.main-footer .footer-contact p {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-footer h4 {
    color: var(--gold) !important;
    font-family: var(--font-heading) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Smooth Scroll & Transitions */
html { scroll-behavior: smooth; }
.btn-gold { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }

@media (max-width: 768px) {
    .gallery-immersive, .about-immersive, .profile-immersive {
        background-attachment: scroll !important;
    }
}

/* =========================================
   GLOBAL SOCIAL LINK RESTORATION
   ========================================= */

/* This targets the social-icons in the footer specifically */
.social-icons a.social-link, 
.social-icons a {
    color: #D4AF37 !important; /* Force the Gold color */
    text-decoration: none !important; /* Remove the blue underline */
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
}

.social-icons a:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Fix for the copyright text alignment in your screenshot */
.footer-bottom p {
    color: #777777 !important;
    text-align: center;
    width: 100%;
}

/* =========================================
   MASTER FOOTER CONSISTENCY FIX
   ========================================= */

/* Force Social Links into Gold Circles */
.social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
}

.social-icons a {
    width: 45px !important;
    height: 45px !important;
    border: 1px solid #D4AF37 !important; /* The Gold Circle */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #D4AF37 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    background: rgba(212, 175, 55, 0.05) !important;
}

.social-icons a:hover {
    background: #D4AF37 !important;
    color: #050a1f !important;
    transform: translateY(-3px) !important;
}

/* Ensure Contact Info Box is Consistent */
.footer-contact {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.footer-contact p {
    color: #ffffff !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* 14. GALLERY FILTRATION ANIMATIONS */

/* This is the rule your JavaScript calls on Line 31 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Makes cards float up slightly */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Applying a smooth transition to the card display */
.art-card {
    animation: fadeIn 0.6s ease forwards;
    will-change: opacity, transform;
}

/* Optional: Adds a subtle "shimmer" to the gold borders when they appear */
.filter-btn.active {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
}

/* PRELOADER STYLES */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--indigo-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

.loader-text {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-top: 20px;
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hide the loader when the page is ready */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================
   5. PREMIUM MOBILE NAVIGATION (FINAL)
   ========================================== */

/* 2. THE SIDE DRAWER: Fixes the "Disappearing" bug */
.side-drawer {
    position: fixed;
    top: 0;
    right: -100%;      /* Starting position */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #081031 !important; /* Solid Indigo */
    z-index: 10000 !important;      /* Moves it in front of the blur */
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--gold);
}

/* This is the class that makes it reappear */
.side-drawer.open {
    right: 0 !important; /* FORCES it onto the screen */
}

/* 3. THE OVERLAY: Stays behind the menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999 !important; /* Behind the drawer (10000) */
    display: none;
    backdrop-filter: blur(8px);
}

.menu-overlay.show {
    display: block !important;
}

/* THE HEADER: Spacing for the Gold 'X' */
.drawer-header {
    padding: 45px 30px 10px !important;
    display: flex;
    justify-content: flex-end;
}

/* --- CONTINUING FROM LINE 828 --- */
.close-drawer {
    font-size: 3.5rem !important;
    color: #D4AF37 !important; /* Pure Gold */
    cursor: pointer;
    line-height: 0.5;
    font-weight: 300;
}

/* 4. THE LINKS: Premium Contrast & Spacing (Fixes the Blue Links/Bullets) */
.drawer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.drawer-links li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    list-style: none !important; /* Extra safety against bullets */
}

.drawer-links a {
    display: block !important;
    padding: 24px 45px !important; 
    color: #ffffff !important; /* FORCED PURE WHITE */
    text-decoration: none !important;
    font-size: 1.25rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: 0.3s all ease;
    text-align: left;
}

.drawer-links a.active {
    color: #D4AF37 !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.drawer-links a:hover {
    padding-left: 55px !important; 
    color: #D4AF37 !important;
}

/* 5. HAMBURGER TOGGLE: Prevents the "One Long Line" glitch */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 32px !important;
        height: 22px !important;
        z-index: 1001 !important; 
        position: relative;
    }
    
    .nav-links {
        display: none !important;
    }
}

.bar {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #D4AF37 !important;
    border-radius: 2px;
}

/* 6. WHATSAPP & MISC FIXES */
.whatsapp-float {
    z-index: 900 !important;
}

/* MOBILE MENU VISIBILITY BRIDGE */
@media (max-width: 768px) {
    /* Ensure the menu is ready to be seen */
    .nav-links.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}
