/* ============================================
   GEOTOPIA HUMAN GEOGRAPHY - COMPLETE STYLESHEET
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    
    /* Secondary Colors */
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutral Colors */
    --text: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg: #f9fafb;
    --bg-dark: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 5rem 2rem;
    --nav-height: 70px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   CONTAINER & UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.people-loader {
    margin-bottom: 1rem;
}

.people-icons {
    font-size: 3rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.preloader-text {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.main-nav.scrolled .nav-logo {
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.main-nav.scrolled .nav-link {
    color: var(--text);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.main-nav.scrolled .nav-link:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.main-nav.scrolled .nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.main-nav.scrolled .theme-toggle {
    background: var(--bg);
    color: var(--text);
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: var(--transition);
}

.main-nav.scrolled .hamburger {
    background: var(--text);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.85) 0%,
        rgba(139, 92, 246, 0.85) 50%,
        rgba(59, 130, 246, 0.9) 100%
    );
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
}

.title-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-emoji {
    display: inline-block;
    animation: wave 1.5s ease infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    opacity: 0.8;
    animation: bounce 2s ease infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

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

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

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   WORLD STATS SECTION
   ============================================ */
.world-stats-section {
    padding: var(--section-padding);
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.stat-trend.up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-trend.stable {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-light);
}

/* ============================================
   TOPICS GRID
   ============================================ */
.topics-main {
    padding: var(--section-padding);
    background: var(--bg);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.topic-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.topic-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.topic-card:hover .topic-image img {
    transform: scale(1.1);
}

.topic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.topic-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2.5rem;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.topic-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.topic-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.topic-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-tag {
    background: var(--bg);
    color: var(--text-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.topic-subtopics {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.topic-subtopics span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.topic-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.topic-card:hover .topic-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Topic Card Themes */
.topic-card.population-theme .topic-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.topic-card.migration-theme .topic-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.topic-card.urban-theme .topic-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.topic-card.agriculture-theme .topic-icon { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.topic-card.industry-theme .topic-icon { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.topic-card.energy-theme .topic-icon { background: linear-gradient(135deg, #eab308, #ca8a04); color: white; }
.topic-card.trade-theme .topic-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); color: white; }
.topic-card.transport-theme .topic-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.topic-card.orgs-theme .topic-icon { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }

/* ============================================
   AGRICULTURE SECTION
   ============================================ */
.agriculture-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.agri-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.agri-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.agri-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success);
}

.agri-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.agri-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.agri-points {
    text-align: left;
    margin-bottom: 1rem;
}

.agri-points p {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.agri-example {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.example-label {
    font-weight: 600;
    color: var(--text);
    margin-right: 0.5rem;
}

/* Crops Grid */
.crops-map-section {
    margin-top: 3rem;
}

.crops-map-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.crop-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.crop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.crop-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.crop-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.crop-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.crop-stat {
    display: inline-block;
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries-section {
    padding: var(--section-padding);
    background: white;
}

.industry-classification {
    margin-bottom: 4rem;
}

.industry-classification h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.classification-flowchart {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
}

.flow-item {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    min-width: 160px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.flow-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.flow-item.primary { border-color: #22c55e; }
.flow-item.secondary { border-color: #3b82f6; }
.flow-item.tertiary { border-color: #8b5cf6; }
.flow-item.quaternary { border-color: #f59e0b; }
.flow-item.quinary { border-color: #ef4444; }

.flow-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.flow-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.flow-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.flow-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
}

.flow-examples span {
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-light);
}

.flow-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: bold;
}

/* Industrial Hubs */
.industrial-hubs h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.hub-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.hub-card.india-highlight {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.hub-flag {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.hub-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hub-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hub-type {
    display: inline-block;
    background: var(--bg);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   TRADE & ORGANIZATIONS SECTION
   ============================================ */
.trade-orgs-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.org-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.org-card.highlight-org {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.org-card.india-highlight {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.org-logo {
    font-size: 3rem;
    flex-shrink: 0;
}

.org-info {
    flex: 1;
}

.org-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.org-full {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.org-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.org-details span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.org-role {
    margin-bottom: 0.75rem;
}

.org-role p {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.25rem 0;
}

.org-members {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
}

/* Trade Blocs */
.trade-blocs-section {
    margin-top: 2rem;
}

.trade-blocs-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.blocs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bloc-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.bloc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.bloc-flag {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.bloc-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bloc-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.bloc-type {
    display: inline-block;
    background: var(--bg);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   INDIA FOCUS SECTION
   ============================================ */
.india-focus-section {
    padding: var(--section-padding);
    background: white;
}

.india-focus-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.india-flag-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0.1;
}

.india-flag-bg .saffron {
    flex: 1;
    background: #FF9933;
}

.india-flag-bg .white {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.india-flag-bg .chakra {
    font-size: 5rem;
    color: #000080;
    opacity: 0.3;
}

.india-flag-bg .green {
    flex: 1;
    background: #138808;
}

.india-focus-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    text-align: center;
}

.india-badge {
    background: linear-gradient(135deg, #FF9933, #138808) !important;
}

.india-focus-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.india-focus-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.india-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.india-link {
    background: var(--bg);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.india-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   UPSC FOCUS SECTION
   ============================================ */
.upsc-focus-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.upsc-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.upsc-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: 1rem;
}

.upsc-content h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.upsc-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.upsc-point {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upsc-point h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.upsc-point ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upsc-point li {
    font-size: 0.95rem;
    opacity: 0.9;
    padding-left: 1.5rem;
    position: relative;
}

.upsc-point li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #0f172a;
    color: white;
}

.footer-top {
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 2px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .classification-flowchart {
        flex-direction: column;
        align-items: center;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .orgs-grid {
        grid-template-columns: 1fr;
    }
    
    .org-card {
        flex-direction: column;
        text-align: center;
    }
    
    .org-details {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .india-focus-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-card {
        margin: 0 -0.5rem;
        border-radius: var(--radius);
    }
    
    .agri-types-grid,
    .crops-grid,
    .hubs-grid,
    .blocs-grid {
        grid-template-columns: 1fr;
    }
    
    .upsc-points-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --bg: #0f172a;
    --bg-dark: #1e293b;
    --white: #1e293b;
    --border: #334155;
}

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .main-nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .topic-card,
[data-theme="dark"] .agri-card,
[data-theme="dark"] .hub-card,
[data-theme="dark"] .org-card,
[data-theme="dark"] .bloc-card,
[data-theme="dark"] .crop-card,
[data-theme="dark"] .flow-item {
    background: var(--bg-dark);
    border-color: var(--border);
}

[data-theme="dark"] .world-stats-section,
[data-theme="dark"] .industries-section,
[data-theme="dark"] .india-focus-section {
    background: var(--bg-dark);
}

[data-theme="dark"] .topics-main {
    background: var(--bg);
}

[data-theme="dark"] .agriculture-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .trade-orgs-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .section-tag,
[data-theme="dark"] .agri-example,
[data-theme="dark"] .hub-type,
[data-theme="dark"] .bloc-type,
[data-theme="dark"] .flow-examples span,
[data-theme="dark"] .india-link {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-menu {
    background: var(--bg-dark);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .main-nav,
    .mobile-menu,
    .back-to-top,
    .scroll-indicator,
    .preloader {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem;
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
