/* ===================================
   BHARAT DARSHAN - MAIN STYLESHEET
   Ultimate Indian Geography Portal
   =================================== */

:root {
    /* Color Palette - Tricolor Inspired */
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    --navy-blue: #000080;
    --ashoka-blue: #000080;
    
    /* Geography Theme Colors */
    --himalaya-white: #F0F8FF;
    --ganga-blue: #4A90E2;
    --thar-gold: #DAA520;
    --western-ghats-green: #228B22;
    --deccan-brown: #8B4513;
    
    /* Functional Colors */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --border-color: #E0E0E0;
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

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

body.bharat-body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
}

/* ========================
   HERO SECTION
   ======================== */
#hero-bharat {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--saffron) 0%, 
        var(--white) 50%, 
        var(--green) 100%);
}

.hero-composite-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/india-panorama.jpg') center/cover;
    opacity: 0.8;
    animation: panorama-pan 60s infinite alternate ease-in-out;
}

@keyframes panorama-pan {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-5%); }
}

.hero-overlay {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.main-title .devanagari {
    font-family: var(--font-hindi);
    display: block;
    font-size: 6rem;
    color: var(--saffron);
    text-stroke: 2px white;
    -webkit-text-stroke: 2px white;
}

.national-motto {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    font-weight: 300;
}

.hero-stats-banner {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

/* ========================
   STATISTICS DASHBOARD
   ======================== */
#vital-statistics {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-secondary);
}

#vital-statistics h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--ashoka-blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--saffron);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.stat-card h3 {
    color: var(--green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.stat-card ul {
    list-style: none;
}

.stat-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-card li:last-child {
    border-bottom: none;
}

.stat-card strong {
    color: var(--ashoka-blue);
}

/* ========================
   INTERACTIVE MAP
   ======================== */
#interactive-map {
    padding: var(--spacing-xl) var(--spacing-md);
    background: white;
}

#interactive-map h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

#india-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.state {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: #333;
    stroke-width: 1;
}

.state:hover {
    filter: brightness(1.2);
    stroke-width: 2;
    stroke: var(--ashoka-blue);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.color-box {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.color-box.north { background: #FF6B6B; }
.color-box.northeast { background: #4ECDC4; }
.color-box.east { background: #45B7D1; }
.color-box.west { background: #FFA07A; }
.color-box.south { background: #98D8C8; }
.color-box.central { background: #F7DC6F; }
.color-box.ut { background: #BB8FCE; }

/* ========================
   CATEGORY CARDS
   ======================== */
#main-categories {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#main-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-subtitle {
    text-align: center;
    font-family: var(--font-hindi);
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.section-links {
    list-style: none;
}

.section-links li {
    margin: 0.8rem 0;
}

.section-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

.card-stats {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-weight: 600;
}

/* ========================
   GEOGRAPHICAL SUPREMACY
   ======================== */
#geographical-supremacy {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-secondary);
}

#geographical-supremacy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--ashoka-blue);
}

.supremacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.supremacy-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 4rem;
    transition: all 0.3s ease;
}

.supremacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card-number {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--saffron);
    opacity: 0.3;
}

.supremacy-card h3 {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.supremacy-card p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.supremacy-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.supremacy-card li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.supremacy-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ========================
   VIRTUAL TOUR
   ======================== */
#virtual-tour {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
    color: white;
}

#virtual-tour h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.tour-player {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
}

.tour-video iframe {
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.tour-waypoints {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.waypoint-list {
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.waypoint-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-description {
    text-align: center;
    margin-top: var(--spacing-md);
    font-style: italic;
    font-size: 1.1rem;
}

/* ========================
   DAILY FACT
   ======================== */
#daily-fact {
    padding: var(--spacing-xl) var(--spacing-md);
    background: white;
}

#daily-fact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.fact-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
}

.fact-icon {
    font-size: 4rem;
}

.fact-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.fact-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.fact-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

#next-fact {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: white;
    color: var(--ashoka-blue);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#next-fact:hover {
    background: var(--saffron);
    color: white;
    transform: translateY(-2px);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .main-title .devanagari {
        font-size: 4rem;
    }
    
    .stats-grid,
    .category-grid,
    .supremacy-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-player {
        grid-template-columns: 1fr;
    }
    
    .fact-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================
   SCROLL TO TOP BUTTON
   ======================== */
#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--saffron);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scroll-top.visible {
    opacity: 1;
}

#scroll-top:hover {
    background: var(--green);
    transform: translateY(-5px);
}
