:root {
    --color-bg: #070707;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(212, 175, 55, 0.15);
    --color-gold: #d4af37;
    --color-gold-hover: #b5952f;
    --color-text: #f8f8f8;
    --color-text-muted: #aaaaaa;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.dark-theme {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 1rem; }

.gold { color: var(--color-gold); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-0 { padding-top: 0 !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Glassmorphism */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 30px;
    font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem; cursor: pointer;
    transition: var(--transition); text-decoration: none; text-align: center; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--color-gold), #aa7c11); color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); background: linear-gradient(135deg, #e3c45a, var(--color-gold)); }
.btn-outline { background: transparent; color: var(--color-gold); border: 2px solid var(--color-gold); }
.btn-outline:hover { background: var(--color-gold); color: #000; }
.btn-block { width: 100%; display: block; }
.btn-large { padding: 15px 40px; font-size: 1rem; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; border-radius: 0; border-top: none; border-left: none; border-right: none; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { text-decoration: none; }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-link:hover { color: var(--color-gold); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-gold); font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; background: url('https://images.unsplash.com/photo-1537832816519-689ad163238b?auto=format&fit=crop&q=80') center/cover no-repeat; padding-top: 80px; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(7,7,7,1) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }
.hero-subtitle { text-transform: uppercase; letter-spacing: 5px; color: var(--color-gold); font-family: var(--font-body); font-size: 1.2rem; margin-bottom: 20px; }
.hero-title { font-size: 5rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-tagline { font-size: 1.5rem; color: var(--color-text-muted); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 20px; justify-content: center; }

/* Sections */
.section { padding: 100px 0; }
.bg-darker { background-color: #040404; }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }
.title-line { height: 3px; width: 60px; background: var(--color-gold); margin: 15px auto 0; border-radius: 2px; }

/* Grid Cards */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.about-card { padding: 40px; text-align: center; transition: var(--transition); }
.hover-lift:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.gold-icon { font-size: 3rem; color: var(--color-gold); margin-bottom: 20px; }

/* Organizer */
.organizer-content { padding: 60px; border-radius: 20px; position: relative; overflow: hidden; }
.organizer-content::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--color-gold); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: var(--color-border); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 30px; position: relative; width: 45%; margin-bottom: 30px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 55%; }
.timeline-date { color: var(--color-gold); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sponsor-logo { padding: 20px; display: flex; justify-content: center; align-items: center; filter: grayscale(100%); transition: var(--transition); }
.sponsor-logo:hover { filter: grayscale(0%); border-color: var(--color-gold); }
.sponsor-logo img { max-width: 100%; height: auto; opacity: 0.7; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; color: #fff; font-size: 1.1rem; font-family: var(--font-body); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--color-text-muted); }
.faq-item.active .faq-answer { padding-bottom: 20px; max-height: 200px; }
.faq-item.active .fa-chevron-down { transform: rotate(180deg); transition: 0.3s; }

/* Footer */
.footer { background: #000; padding: 60px 0 20px; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col a { display: block; color: var(--color-text-muted); text-decoration: none; margin-bottom: 10px; transition: 0.3s;}
.footer-col a:hover { color: var(--color-gold); }
.social-icon { font-size: 1.2rem; margin-top: 15px; display: inline-block !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }

/* Inner Pages Header */
.page-header { padding: 150px 0 80px; background-size: cover; background-position: center; border-bottom: 1px solid var(--color-border); }
.page-title { font-size: 4rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-group.wide { grid-column: span 2; }
.form-group label { margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text-muted); }
.glass-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 10px; color: #fff; font-family: var(--font-body); outline: none; transition: 0.3s; }
.glass-input:focus { border-color: var(--color-gold); background: rgba(255,255,255,0.08); }

/* Leaderboard */
.controls { padding: 20px; margin-bottom: 30px; border-radius: 15px; }
.search-box { display: flex; align-items: center; gap: 10px; width: 60%; }
.search-box input { width: 100%; border: none; background: transparent; padding: 10px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
.search-box input:focus { border-bottom-color: var(--color-gold); }
.leaderboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.contestant-card { border-radius: 16px; overflow: hidden; position: relative; transition: var(--transition); }
.card-img-wrapper { height: 300px; overflow: hidden; position: relative; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.contestant-card:hover .card-img-wrapper img { transform: scale(1.05); }
.rank-badge { position: absolute; top: 15px; left: 15px; background: var(--color-gold); color: #000; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.card-content { padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6)); position: absolute; bottom: 0; width: 100%; }
.card-content h3 { margin-bottom: 5px; font-size: 1.3rem; }
.vote-count { color: var(--color-gold); font-weight: 600; margin-bottom: 15px; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { padding: 8px 15px; flex: 1; font-size: 0.8rem; }

/* Profile Page */
.profile-cover { height: 400px; background-size: cover; background-position: center; position: relative; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
.profile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-bg), transparent); }
.profile-info { position: relative; margin-top: -100px; z-index: 10; padding: 40px; }
.profile-avatar { width: 200px; height: 200px; border-radius: 50%; border: 4px solid var(--color-gold); object-fit: cover; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.profile-stats { display: flex; gap: 30px; margin: 20px 0; }
.stat-box { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--color-gold); font-family: var(--font-heading); }
.stat-label { color: var(--color-text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.share-buttons { margin-top: 30px; display: flex; gap: 15px; }
.share-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; background: rgba(255,255,255,0.1); transition: 0.3s; text-decoration: none; font-size: 1.2rem; }
.share-btn:hover { background: var(--color-gold); color: #000; transform: translateY(-3px); }
.vote-panel { padding: 40px; text-align: center; position: sticky; top: 100px; }

/* Skeleton */
.skeleton-card { height: 350px; background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 16px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animations */
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.fade-in-delay { animation: fadeIn 1s ease 0.5s forwards; opacity: 0; }
.slide-up { animation: slideUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 900px) {
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 80px; }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { left: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.wide { grid-column: span 1; }
    .mobile-menu-btn { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-border); flex-direction: column; padding: 20px; display: none; }
    .nav-links.active { display: flex; }
    .controls { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; }
    .profile-info { text-align: center; margin-top: -80px; }
    .profile-avatar { width: 150px; height: 150px; margin: 0 auto 20px; display: block; }
    .profile-stats { justify-content: center; }
    .share-buttons { justify-content: center; }
    .vote-panel { margin-top: 20px; }
}

/* Countdown Timer Widget */
.countdown-widget {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 15px;
    border: 1px solid var(--color-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.timer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 8px;
    font-weight: 600;
}
.timer-boxes {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}
.time-box span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}
.time-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* Vote Page Contestant Grid */
.contestant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.vote-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.vote-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.vote-card-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.vote-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--color-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--color-gold);
}
.vote-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.vote-card-title {
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.vote-card-city {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.vote-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
}

