/* Global Design System for Forbes DBA Event - Light Mode */
:root {
    --bg-light: #f8f9fa;       /* Clean neutral off-white background */
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;  /* Soft light hover state */
    --navy: #0e2240;           /* Luxury Dark Navy Blue */
    --navy-light: #172a45;     /* Lighter dark navy blue for cards */
    --gold: #c5a059;          /* Restored premium luxury metallic gold */
    --gold-hover: #d7b56d;
    --gold-dark: #a88444;
    --text-primary: #1a2530;   /* Slightly darker text for contrast */
    --text-muted: #5e6e82;     /* Steel blue/grey muted text */
    --border-light: #cbd5e1;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-forbes {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--navy);       /* Premium navy headings */
}

/* Compact heading font sizes global overrides */
.display-4 {
    font-size: 2.5rem !important;
}
.display-5 {
    font-size: 2.1rem !important;
}
.display-6 {
    font-size: 1.7rem !important;
}
h1, .h1 {
    font-size: 2.3rem !important;
}
h2, .h2 {
    font-size: 1.9rem !important;
}
h3, .h3 {
    font-size: 1.5rem !important;
}
h4, .h4 {
    font-size: 1.25rem !important;
}

/* Pre-titles (small gold text above titles) global styling */
span.text-gold.text-uppercase.small {
    font-size: 0.72rem !important;
    letter-spacing: 2.5px !important;
    font-weight: 700 !important;
}

/* Serif font style for majestic event headings */
.font-serif {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Custom Text and Utility Colors */
.text-gold {
    color: var(--gold) !important;
}
.bg-dark-card {
    background-color: var(--bg-card);
}
.border-gold {
    border-color: var(--gold) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}
.text-navy {
    color: var(--navy) !important;
}

/* Custom Buttons with Micro-Animations */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #ffffff !important; /* White text for premium metallic gold button */
    border: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
}

.btn-gold:active {
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 8px 22px;
    transition: var(--transition);
}

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

/* Glassmorphism Navbar - Dark Navy */
.custom-navbar {
    background-color: var(--navy) !important; /* Solid navy background, no opacity reduction */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding: 10px 0; /* Reduced padding height */
    transition: var(--transition);
}

.custom-navbar.scrolled {
    padding: 10px 0; /* Keeps same constant padding height when scrolled */
    background-color: var(--navy) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.brand-forbes {
    letter-spacing: 4px;
    font-size: 1.5rem;
    color: #fff !important;
}
.brand-dba {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--gold) !important;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 100%;
}

.btn-navbar {
    font-size: 0.8rem;
    padding: 8px 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 80% 20%, rgba(179, 138, 56, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(179, 138, 56, 0.04) 0%, transparent 40%),
                var(--bg-light);
}

.hero-section h1.display-4 {
    font-size: 3.5rem !important;
}

@media (max-width: 991px) {
    .hero-section h1.display-4 {
        font-size: 2.5rem !important;
    }
}

.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    padding: 6px 16px;
    background: rgba(179, 138, 56, 0.08);
    border: 1px solid rgba(179, 138, 56, 0.25);
    border-radius: 50px;
    display: inline-block;
}

/* Countdown Clock */
.countdown-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(179, 138, 56, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.countdown-box:hover {
    border-color: rgba(179, 138, 56, 0.4);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-body);
    line-height: 1;
    color: var(--gold);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Speakers Section */
.speaker-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.speaker-card:hover {
    border-color: rgba(179, 138, 56, 0.3);
    background-color: var(--bg-card-hover);
}

.speaker-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: #f1f5f9;
}

.speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.speaker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
}

.speaker-overlay h4 {
    color: #ffffff !important;
}

.speaker-overlay p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.speaker-socials {
    position: absolute;
    top: 15px;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.speaker-card:hover .speaker-socials {
    right: 15px;
}

.speaker-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(179, 138, 56, 0.3);
    transition: var(--transition);
}

.speaker-social-btn:hover {
    background-color: var(--gold);
    color: #fff;
}

#schedule {
    background-color: var(--bg-light) !important;
    color: var(--text-primary) !important;
}
#schedule h2, #schedule h3, #schedule h4, #schedule h5, #schedule h6 {
    color: var(--navy) !important;
}
#schedule .text-secondary {
    color: var(--text-muted) !important;
}
#schedule .timeline-content {
    background-color: var(--bg-white) !important;
    border-color: var(--border-light) !important;
}
#schedule .timeline-content h4 {
    color: var(--navy) !important;
}
#schedule .timeline-content .text-secondary {
    color: var(--text-muted) !important;
}
#schedule .timeline-badge {
    border-color: var(--bg-light) !important;
}
#schedule .schedule-btn {
    color: var(--text-muted) !important;
}
#schedule .schedule-btn.active {
    color: var(--gold) !important;
}
#schedule .schedule-btn.active::after {
    background-color: var(--gold) !important;
}
#schedule .schedule-nav {
    border-bottom-color: var(--border-light) !important;
}

#register {
    background-color: var(--bg-light) !important;
}
#speakers {
    background-color: var(--bg-white) !important;
}

/* Schedule Section (Timeline) */
.schedule-nav {
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.schedule-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 30px;
    position: relative;
    transition: var(--transition);
}

.schedule-btn.active {
    color: var(--gold);
}

.schedule-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: rgba(179, 138, 56, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    display: flex;
}

.timeline-time {
    width: 100px;
    text-align: right;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    padding-top: 10px;
    flex-shrink: 0;
}

.timeline-badge {
    position: absolute;
    left: 114px;
    top: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 3px solid var(--bg-light);
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-badge {
    background-color: var(--gold-dark);
}

.timeline-content {
    margin-left: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(179, 138, 56, 0.3);
}

/* Registration Form */
.register-card {
    background: var(--bg-white);
    border: 1px solid rgba(179, 138, 56, 0.2);
    border-radius: 16px;
    padding: 40px;
}

.form-control, .form-select {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--gold);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Last Editions Style */
.edition-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.edition-card:hover {
    border-color: var(--gold);
}

.edition-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.edition-card:hover .edition-img {
    filter: brightness(0.6);
}

.edition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition);
}

.edition-overlay h4 {
    color: #ffffff !important;
}

.edition-card:hover .edition-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Helpers */
.hover-gold:hover {
    color: var(--gold) !important;
}
.hover-light:hover {
    color: var(--text-primary) !important;
}
.bg-champagne {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.02) 0%, rgba(197, 160, 89, 0.07) 100%) !important;
    border: 1px solid rgba(197, 160, 89, 0.18) !important;
}

/* Sidebar Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

@media (max-width: 991px) {
    .navbar-toggler {
        z-index: 1100;
        position: relative;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-white) !important;
        padding: 100px 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 8px 0;
        color: var(--navy) !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--gold) !important;
    }

    .timeline::before {
        left: 20px;
    }
    .timeline-time {
        width: auto;
        text-align: left;
        padding-top: 0;
        margin-bottom: 10px;
    }
    .timeline-badge {
        left: 14px;
        top: 3px;
    }
    .timeline-item {
        flex-direction: column;
        padding-left: 40px;
    }
    .timeline-content {
        margin-left: 0;
    }
}

/* Sponsors Swiper Slider */
.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.sponsor-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: 100%;
}

.sponsor-logo {
    width: auto !important;
    max-width: 150px;
    object-fit: contain;
}

.sponsor-tier {
    font-family: var(--font-body);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}
