/* Unified styles for Elite Events / Grey Box Events */

body {
    background-color: #131313;
    color: #e5e2e1;
    -webkit-font-smoothing: antialiased;
}

/* Glass Panels and Cards */
.glass-panel {
    background: rgba(28, 27, 27, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

/* Page-specific variations of glass elements kept exact */
.contact-glass-panel {
    background: rgba(28, 27, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.service-detail-glass-panel {
    background: rgba(19, 19, 19, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.glass-card {
    background: rgba(19, 19, 19, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Services Page Card Style & Hover */
.services-glass-card {
    background: rgba(28, 27, 27, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-glass-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    background: rgba(28, 27, 27, 0.6);
    transform: translateY(-8px);
}

.glass-nav {
    background: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(20px);
}

/* Metallic and Glow Styles */
.metallic-border {
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3) 0%, rgba(19, 19, 19, 0) 50%, rgba(197, 160, 89, 0.3) 100%) border-box;
}

.premium-border {
    border-image: linear-gradient(to bottom right, rgba(197, 160, 89, 0.4), rgba(197, 160, 89, 0)) 1;
}

.hero-gradient {
    background: linear-gradient(0deg, rgba(19, 19, 19, 1) 0%, rgba(19, 19, 19, 0.4) 50%, rgba(19, 19, 19, 0.8) 100%);
}

.hero-gradient-alternate {
    background: linear-gradient(to bottom, rgba(19, 19, 19, 0.4) 0%, rgba(19, 19, 19, 1) 100%);
}

.hero-gradient-detail {
    background: linear-gradient(180deg, rgba(19, 19, 19, 0) 0%, rgba(19, 19, 19, 0.9) 80%, rgba(19, 19, 19, 1) 100%);
}

.ambient-glow {
    filter: blur(120px);
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(19, 19, 19, 0) 70%);
}

.text-glow {
    text-shadow: 0 0 15px rgba(233, 193, 118, 0.3);
}

.services-text-glow {
    text-shadow: 0 0 20px rgba(233, 193, 118, 0.2);
}

.gold-glow {
    box-shadow: 0 4px 30px rgba(197, 160, 89, 0.1);
}

.gold-glow-detail {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.1);
}

/* Animations */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    animation: ticker 40s linear infinite;
}

.timeline-line {
    background: linear-gradient(to bottom, transparent, #e9c176, transparent);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 10px;
}

/* Portfolio Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-auto-rows: 250px;
    gap: 32px;
}

.card-tall {
    grid-row: span 3;
}

.card-wide {
    grid-column: span 1;
    grid-row: span 2;
}

.card-standard {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .card-tall,
    .card-wide,
    .card-standard {
        grid-row: span 1;
        grid-column: span 1;
    }
}

.hover-reveal .overlay {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-reveal:hover .overlay {
    opacity: 1;
}

.hover-reveal img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
    filter: grayscale(40%) brightness(0.7);
}

.hover-reveal:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hover-gold-fill:hover {
    background: rgba(197, 160, 89, 0.1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-bottom-color: #e9c176 !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined-bold {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =============================================
   LIGHT MODE OVERRIDES
   Applied when <html> does NOT have class="dark"
   ============================================= */

html:not(.dark) body {
    background-color: #f5f0e8;
    color: #2a2118;
}

/* Glass Panels */
html:not(.dark) .glass-panel {
    background: rgba(255, 250, 240, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

html:not(.dark) .contact-glass-panel {
    background: rgba(255, 250, 240, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 8px 32px 0 rgba(197, 160, 89, 0.12);
}

html:not(.dark) .service-detail-glass-panel {
    background: rgba(245, 240, 232, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

html:not(.dark) .glass-card {
    background: rgba(255, 252, 245, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

html:not(.dark) .services-glass-card {
    background: rgba(255, 252, 245, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

html:not(.dark) .services-glass-card:hover {
    border-color: rgba(197, 160, 89, 0.6);
    background: rgba(255, 252, 245, 0.9);
}

html:not(.dark) .glass-nav {
    background: rgba(245, 240, 232, 0.85);
}

/* Nav */
html:not(.dark) nav {
    background: rgba(245, 240, 232, 0.88) !important;
    border-bottom-color: rgba(197, 160, 89, 0.2);
}

/* Hero Gradients */
html:not(.dark) .hero-gradient {
    background: linear-gradient(0deg, rgba(245, 240, 232, 1) 0%, rgba(245, 240, 232, 0.4) 50%, rgba(245, 240, 232, 0.7) 100%);
}

html:not(.dark) .hero-gradient-alternate {
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.3) 0%, rgba(245, 240, 232, 1) 100%);
}

html:not(.dark) .hero-gradient-detail {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0) 0%, rgba(245, 240, 232, 0.9) 80%, rgba(245, 240, 232, 1) 100%);
}

/* Ambient Glow */
html:not(.dark) .ambient-glow {
    background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(245, 240, 232, 0) 70%);
}

/* Text colors */
html:not(.dark) .text-on-surface-variant {
    color: #5a4a35 !important;
}

html:not(.dark) .text-on-surface {
    color: #2a2118 !important;
}

html:not(.dark) .text-on-background {
    color: #2a2118 !important;
}

/* Tailwind background overrides for surfaces */
html:not(.dark) .bg-background,
html:not(.dark) .bg-surface {
    background-color: #f5f0e8 !important;
}

html:not(.dark) .bg-surface-container {
    background-color: #ede7d9 !important;
}

html:not(.dark) .bg-surface-container-high {
    background-color: #e5dece !important;
}

html:not(.dark) .bg-surface-container-highest {
    background-color: #ddd6c4 !important;
}

html:not(.dark) .bg-surface-container-low {
    background-color: #f0ebe2 !important;
}

html:not(.dark) .bg-surface-container-lowest {
    background-color: #faf7f2 !important;
}

/* Border color overrides */
html:not(.dark) .border-outline-variant\/20 {
    border-color: rgba(197, 160, 89, 0.2) !important;
}

/* Timeline */
html:not(.dark) .timeline-line {
    background: linear-gradient(to bottom, transparent, #c5a059, transparent);
}

/* Hover gold fill */
html:not(.dark) .hover-gold-fill:hover {
    background: rgba(197, 160, 89, 0.15);
}

/* Scrollbar */
html:not(.dark) .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #b8913f;
}

/* Portfolio card image tint */
html:not(.dark) .hover-reveal img {
    filter: grayscale(20%) brightness(0.95);
}

html:not(.dark) .hover-reveal:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Theme toggle button spin animation */
.theme-toggle-btn .theme-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.theme-toggle-btn:active .theme-icon {
    transform: rotate(30deg) scale(0.85);
}

@media (max-width: 767px) {

    /* Everything becomes 10px... */
    .px-margin-desktop {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ...except the navbar */
    nav .px-margin-desktop {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    main {
        overflow-x: hidden;
    }
}