/* ==========================================================================
   RESET & BASE 
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f8fafc; 
    color: #1e293b; 
    line-height: 1.6; 
}

.container { max-width: 1280px; margin: auto; padding: 0 20px; }

/* Update your CSS variables/overrides */
:root {
    --primary-gold: #D4AF37; /* Metallic Gold */
    --highlight-gold: #FFD700; /* Bright Gold */
    --dark-gold: #B8860B; /* Darker Gold for hover states */
    --bg-dark: #020617;
}

/* Update UI elements that were green */
.text-green-600 { color: var(--primary-gold) !important; }
.bg-green-600 { background-color: var(--primary-gold) !important; }
.border-green-800 { border-color: var(--dark-gold) !important; }
.text-green-400 { color: var(--highlight-gold) !important; }

/* Apply to your specific elements */
.category-card::before {
    background: linear-gradient(90deg, #D4AF37, #FFD700);
}
.category-count { color: var(--primary-gold); }
.category-card:hover { border-color: var(--primary-gold); }

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
header { background: #020617; position: sticky; top: 0; z-index: 999; border-bottom: 1px solid #1e293b; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.logo span { color: #020617; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #f1f5f9; text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: #020617; }

/* ==========================================================================
   HERO SECTION (Cinematic Dark Theme)
   ========================================================================== */
/* Hero Container */
.hero { 
    background: #020617; 
    color: #fff; 
    padding: 100px 0; 
    position: relative; 
    overflow: hidden; 
}

/* Enhanced Map Background */
.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* Replace 'india_map.svg' with your actual file path */
    background: url('/assets/images/india_map.svg') no-repeat right center / contain;
    opacity: 0.2; 
    pointer-events: none;
    z-index: 0;
}

/* Hero Content Wrapper */
.hero-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 400px; 
    gap: 60px; 
    align-items: center; 
    position: relative; 
    z-index: 1; 
}

/* Typography & Left Side */
.hero h1 { font-size: 56px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; }
.hero h1 span { color: var(--primary-gold); }
.hero p { color: #94a3b8; font-size: 18px; margin-bottom: 35px; max-width: 550px; }

/* Right Panel: Pipeline Box */
.hero-map-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px); /* Glassmorphism effect */
}

.pipe-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pipe-item:last-child { border-bottom: none; padding-bottom: 0; }
.pipe-text { color: #cbd5e1; font-size: 0.9rem; }
.pipe-text strong { color: var(--primary-gold); display: block; font-size: 22px; margin-bottom: 4px; }

/* Stats Grid */
.ecosystem-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.stat-box { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 16px; 
    border-radius: 16px; 
    text-align: center;
}
.stat-box h3 { font-size: 22px; color: var(--highlight-gold); margin-bottom: 4px; }
.stat-box span { color: #64748b; font-size: 11px; text-transform: uppercase; font-weight: 600; }

/* Responsive Adjustments */
@media(max-width: 1024px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .hero-map-panel { max-width: 500px; margin: 0 auto; }
}

@media(max-width: 768px) {
    .hero { padding: 60px 0; text-align: center; }
    .hero h1 { font-size: 42px; }
    .hero p { margin: 0 auto 30px auto; }
    .ecosystem-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   STATS & GLASS PANEL
   ========================================================================== */
.ecosystem-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.stat-box { 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 20px; border-radius: 18px; transition: 0.3s; 
}
.stat-box:hover { transform: translateY(-4px); border-color: #D4AF37; }
.stat-box h3 { font-size: 24px; color: #4ade80; }
.stat-box span { color: #94a3b8; font-size: 13px; }

/* Compact Grid Layout: 3 columns for reference image density */
.opportunity-categories { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px; 
    margin-bottom: 40px; 
}

.category-card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #e5e7eb;
    display: flex; 
    flex-direction: column; 
    gap: 15px;
    transition: 0.2s;
}

.card-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 10px;
}

.card-text h3 { font-size: 12px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0.5px; }
.card-text p { font-size: 12px; color: #4b5563; line-height: 1.3; }

.category-icon { font-size: 32px; flex-shrink: 0; }

.view-link { 
    font-size: 12px; 
    font-weight: 700; 
    text-decoration: none; 
    margin-top: 5px;
}

/* Responsive: Match the reference image flow */
@media(max-width: 1200px) {
    .opportunity-categories { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .opportunity-categories { grid-template-columns: 1fr; }
}
/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn { background: #16a34a; color: #fff; border: none; padding: 14px 28px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn:hover { background: #15803d; transform: translateY(-2px); }
.btn-outline { border: 2px solid #22c55e; color: #fff; padding: 12px 26px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-outline:hover { background: #22c55e; color: #020617; }

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px; }
.category-card { background: #fff; padding: 20px; border-radius: 16px; text-align: center; border: 1px solid #e2e8f0; transition: 0.3s; }
.category-card:hover { border-color: #22c55e; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.opportunity-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; transition: 0.3s; }
.opportunity-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media(max-width:992px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .ecosystem-stats { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 40px; }
    .nav-links { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .opportunity-grid { grid-template-columns: 1fr; }
}

.section-tag{
    display:inline-block;
    padding:8px 14px;
    border-radius:30px;
    background:#dcfce7;
    color:#16a34a;
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

/* Prevents horizontal overflow across all device sizes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   FEATURED GRID (Optimized for Responsiveness)
   ========================================================================== */

/* 1. Ensure the grid container forces no overflow */
.featured-grid { 
    display: grid; 
    /* Reduced minmax to 300px to better fit mobile phones */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 16px; 
    margin-top: 30px; 
    width: 100%;
    /* These three lines are the keys to stopping horizontal scroll */
    max-width: 100vw; 
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
}

/* 2. Fix the card to handle width strictly */
.featured-card { 
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid #e5e7eb; 
    display: flex; 
    flex-direction: row; 
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    width: 100%; /* Ensure the card doesn't expand beyond its grid cell */
    max-width: 100%;
}

/* 3. Image sizing logic */
.featured-card img { 
    width: 120px; /* Changed from 40% to a fixed width for stability */
    height: 100%; 
    object-fit: cover; 
    flex-shrink: 0; /* Prevents image from squashing */
}

.card-body { 
    padding: 16px; 
    flex: 1; /* Allows body to take remaining space */
    min-width: 0; /* CRITICAL: Prevents text inside from stretching the card */
    display: flex; 
    flex-direction: column; 
}

/* 4. Ensure h3 doesn't break the layout */
.card-body h3 { 
    font-size: 15px; 
    font-weight: 800; 
    margin-bottom: 8px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Truncates long titles instead of expanding the card */
}

/* 5. Mobile responsiveness */
@media(max-width: 768px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card { flex-direction: column; }
    .featured-card img { width: 100%; height: 200px; }
    .card-body { width: 100%; }
}

/* ==========================================================================
   innovation-map
   ========================================================================== */

.innovation-map { 
    background: #ffffff; 
    border-radius: 16px; 
    padding: 32px;
}

.map-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

/* Remove old map-stats grid and use flex for list */
.flex.justify-between { 
    display: flex; 
    justify-content: space-between; 
}

/* Responsive */
@media(max-width: 768px) {
    .map-content { grid-template-columns: 1fr; }
}

/* ==========================================================================
   .success-investors
   ========================================================================== */
.success-investors{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-top:80px;
}

.success-box,
.investor-box{
    background:#fff;
    border-radius:24px;
    padding:30px;
}

.story-card{
    background:#f8fafc;
    padding:20px;
    border-radius:16px;
    margin-top:15px;
}

/* ==========================================================================
   .investor-item
   ========================================================================== */
.investor-item{
    display:flex;
    gap:15px;
    align-items:center;
    margin-top:20px;
}

.avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#16a34a;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ==========================================================================
   .trust-section
   ========================================================================== */
.trust-section{
    padding:100px 0;
    text-align:center;
}

.trust-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-top:40px;
}

.trust-card{
    background:#fff;
    padding:30px;
    border-radius:24px;
}

.trust-icon{
    font-size:40px;
    margin-bottom:15px;
}

@media(max-width:992px){

    .featured-grid,
    .trust-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .map-content,
    .success-investors{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .featured-grid,
    .trust-grid{
        grid-template-columns:1fr;
    }

}

.india-map-tint {
    filter: invert(36%) sepia(87%) saturate(1478%) hue-rotate(124deg) brightness(95%) contrast(101%);
}


    .faq-question { cursor: pointer; transition: color 0.2s; }
    .faq-question:hover { color: #059669; }
    .faq-answer { display: none; margin-top: 10px; }
