/* ============================================
   MAIN STREET GALLERIA — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #1a0533;
    color: #f3e8ff;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

#navbar.nav-scrolled {
    background-color: rgba(26, 5, 51, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
#menuBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fbbf24;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

#menuBtn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu-hidden {
    display: none;
}

.mobile-menu-panel {
    background: rgba(26, 5, 51, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    color: #e9d5ff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.mobile-menu-link:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    background: #f59e0b;
    color: #1a0533;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-menu-cta:hover {
    background: #fbbf24;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1a0533 0%, #2d1052 40%, #1a0533 100%);
    position: relative;
    overflow: hidden;
}

/* Scroll indicator */
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #fbbf24, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   GEOMETRIC SHAPES (Background Decoration)
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.08);
    border: 2px solid rgba(251, 191, 36, 0.15);
    top: 35%;
    left: -40px;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(147, 51, 234, 0.12);
    top: 60%;
    right: 5%;
    transform: rotate(-15deg);
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 10%;
}

.geo-dots {
    background-image: radial-gradient(rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    top: 45%;
    right: 2%;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    perspective: 1000px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive enhancement — content visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }

    .gallery-item {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .geo-shape {
        display: none;
    }

    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }

    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .nav-scrolled {
        background-color: rgba(26, 5, 51, 0.95) !important;
    }
}

/* ============================================
   UTILITY
   ============================================ */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}
