:root {
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.5);
    --gold-glow: rgba(212, 175, 55, 0.2);
    --gold-hover: #f5d668;
    --dark-bg: #050507;
    --dark-panel: #0a0a0e;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --live-red: #ff3b3b;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Cinematic Backgrounds */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(30, 25, 10, 0.4) 0%, var(--dark-bg) 70%);
    z-index: -2;
}

.smoke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.15;
    z-index: -1;
    animation: drift 100s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utils */
h1, h2, h3, .logo span {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    color: var(--gold);
    cursor: pointer;
}

.logo i {
    text-shadow: 0 0 15px var(--gold-glow);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 12px var(--gold); }
    50% { opacity: 0.7; text-shadow: 0 0 5px var(--gold-dim); }
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 18px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hamburger {
    display: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f5d668 0%, #d4af37 100%);
}

.btn-primary.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-secondary {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.subtitle {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 600;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 35px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.live-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#global-intercessors {
    color: var(--text-main);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--live-red);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--live-red);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* Light Ray */
.light-ray {
    position: absolute;
    top: -20%;
    right: 5%;
    width: 700px;
    height: 140%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
    animation: sway 15s ease-in-out infinite alternate;
}

@keyframes sway {
    from { transform: rotate(28deg) translateX(0); opacity: 0.8; }
    to { transform: rotate(32deg) translateX(-20px); opacity: 1; }
}

/* Section Common */
section {
    padding: 100px 5%;
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Prayer Rooms */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.room-card {
    padding: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: var(--gold-dim);
}

.room-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-status.live {
    background: rgba(255, 59, 59, 0.15);
    color: var(--live-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.room-status.live .dot {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.room-users {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 20px;
}

.card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.card-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.leaders {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--dark-panel);
    margin-left: -12px;
    transition: transform 0.3s;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 5;
}

.avatar:first-child {
    margin-left: 0;
}

.leaders span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 12px;
    font-weight: 600;
}

/* Map Section */
.world-map-section {
    padding-bottom: 150px;
}

.map-container {
    padding: 60px 40px;
    position: relative;
}

.map-visual {
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 50px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.4;
    filter: invert(1) sepia(1) hue-rotate(15deg) saturate(3) brightness(0.6);
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px 4px var(--gold-glow);
    transform: translate(-50%, -50%);
    animation: pin-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pin-pop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: ripple 3s infinite ease-out;
}

@keyframes ripple {
    0% { width: 10px; height: 10px; opacity: 1; border-width: 2px; }
    100% { width: 60px; height: 60px; opacity: 0; border-width: 0px; }
}

/* Footer */
footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 5% 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.1rem; }
    .map-visual { height: 400px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .nav-links, .login-btn { display: none; }
    .hamburger { display: block; }
    
    .hero { padding-top: 100px; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 20px; }
    .light-ray { display: none; }
    
    .section-header h2 { font-size: 2.2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .map-visual { height: 250px; }
    .map-container { padding: 30px 20px; }
}
