/* ==========================================================================
   BASE & RESET (Energetic Light Theme - PURE DM SANS)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --primary-blue: #0047aa;
    --primary-green: #8cb500;
    --sky-blue: #a1dcf7;
    --vibrant-green: #009245;
    
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-rich-heading: #0a1930; 
    
    --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-rich-heading);
}


/* NAV */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: transparent !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    padding: 0; /* Removed padding */
    border-radius: 0; /* Removed radius */
    
    /* REMOVED: background */
    background: transparent !important; 
    
    /* REMOVED: blur and borders */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important; 
    
    transition: all 0.3s ease;
}

.logo img {
    width: 360px; 
    height: auto;
    display: block;
    
    /* Keeps the transparency trick for your renamed JPG */
    mix-blend-mode: multiply; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    padding: 0.5rem 1.0rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;

    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);

    transition: .4s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.35);
}

/* Add this to your existing CSS so dropdowns work with the pills */
.nav-item {
    position: relative;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 1. THE DROPDOWN BOX: Forces vertical stacking */
.dropdown {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 35, 5, 0.95); /* Your dark green */
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    min-width: 220px; /* Slightly wider for better text fit */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* 👈 ADD THESE TO FIX OVERLAP */
    display: flex;
    flex-direction: column; 
    gap: 8px; 
}

/* 2. THE DROPDOWN LINKS: Removes the "Pill" style */
.dropdown a {
    background: transparent !important; /* Removes the white pill color */
    border: none !important;            /* Removes the pill border */
    backdrop-filter: none !important;   /* Removes the extra blur */
    padding: 0.6rem 1rem !important;    /* Tighter padding */
    border-radius: 8px !important;      /* Subtle corners */
    display: block !important;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 3. HOVER EFFECT: For individual links inside */
.dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #a8e08a !important; /* Green highlight on hover */
}

.hero-cta {
    position: absolute;
    bottom: 4rem;
    right: clamp(3rem, 8vw, 8rem);
    display: flex;
    align-items: center;
    gap: 1.2rem;          /* 👈 THIS is the spacing you want */
    z-index: 5;
}


.glass-tile {
    position: relative;   /* ❌ no absolute anymore */
    padding: 2rem 3rem;
    max-width: 520px;

    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;

    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 28px;

    transition: opacity .4s ease, transform .4s ease;
}

.scroll-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);

    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;

    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.scroll-icon img {
    width: 18px;
    height: auto;
    pointer-events: none;
}

.scroll-icon:hover {
    transform: translateY(4px);
    background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   SPLIT LAYOUT: THE ULTIMATE RESOURCE CENTER
   ========================================================================== */
.split-resource-section {
    position: relative;
    min-height: 100vh;
    padding: 12rem 4rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        
        url("assets/images/Bhumi.jpeg") center/cover no-repeat;
}
.split-container {
    display: flex;
    width: 100%;
    max-width: 1500px;
    gap: 5rem;
    align-items: center;
}

/* LEFT SIDEBAR: Text & Vertical Tabs */
.sidebar-content {
    flex: 0 0 450px;
    z-index: 10;
}

.sidebar-content .subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s var(--ease-cinematic) forwards;
}

.sidebar-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-rich-heading);
    animation: fadeUp 0.8s var(--ease-cinematic) 0.1s forwards;
    opacity: 0;
    color: #ffffff; 
}

.sidebar-content .description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s var(--ease-cinematic) 0.2s forwards;
    opacity: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* THE NEW CAPSULE BUTTONS */
.vertical-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeUp 0.8s var(--ease-cinematic) 0.3s forwards;
    opacity: 0;
}

.v-tab-btn {
    text-align: left;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    
    /* 1. Border: Use a semi-transparent white for the "edge" of the glass */
    border: 1px solid rgba(255, 255, 255, 0.4);
    
    /* 2. Background: High transparency with a very subtle tint */
    background: rgba(255, 255, 255, 0.1); 
    
    /* 3. The Core Blur */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* 4. Shadow Depth: 
       - An outer soft shadow for lift.
       - An inner white glow (inset) to simulate the glass thickness. */
    box-shadow: 
        0 8px 32px 0 rgba(0, 40, 120, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.2);

    /* Original Properties */
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden; /* Clips the "liquid" reflection */
    transition: all 0.4s var(--ease-elastic);
}

/* 5. The "Liquid" Highlight (The Surface Shine) */
.v-tab-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Only covers the top half */
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* 6. Interaction: Enhance the glass on hover */
.v-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px 0 rgba(0, 40, 120, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Add an elegant arrow that appears on active/hover */
.v-tab-btn::after {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease-elastic);
}

.v-tab-btn:hover:not(.active) {
    background: rgba(0, 71, 170, 0.08);
    transform: translateX(8px);
    border-color: rgba(0, 71, 170, 0.3);
}

.v-tab-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 15px 30px rgba(0, 71, 170, 0.3);
    transform: translateX(12px) scale(1.02);
}

.v-tab-btn.active::after {
    opacity: 1;
    transform: translateX(0);
}

/* RIGHT SIDE: The 3D Overlapping Carousel */
.carousel-engine {
    flex: 1;
    position: relative;
    height: 580px;
    perspective: 1500px; 
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Base Card Physics */
.resource-card {
    position: absolute;
    inset: 0;
    background: var(--bg-white);
    border-radius: 30px;
    border: 2px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(90px) scale(0.75);
    transition: all 0.8s var(--ease-cinematic);
    z-index: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* State: Hidden (Slid up and away) */
.resource-card.hidden-prev {
    opacity: 0;
    transform: translateY(-80px) scale(1.05);
    z-index: 0;
}

/* State 1: Active (Front) */
.resource-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* State 2: Peeking (Next card underneath) */
.resource-card.next-peek {
    opacity: 0.6;
    pointer-events: none;
    transform: translateY(35px) scale(0.92);
    z-index: 5;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* State 3: Third Peek (The deepest card) */
.resource-card.third-peek {
    opacity: 0.25;
    pointer-events: none;
    transform: translateY(70px) scale(0.84);
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* 💥 The Massive "Separating" Hover Physics 💥 */
.resource-card.active:hover {
    transform: translateY(-20px) scale(1.04) translateZ(50px);
    z-index: 50; 
}

/* Dynamic Category-Specific Glows */
.resource-card.active[data-category="media"]:hover {
    box-shadow: 0 45px 80px rgba(0, 71, 170, 0.25), 0 0 0 2px var(--primary-blue);
}
.resource-card.active[data-category="blogs"]:hover {
    box-shadow: 0 45px 80px rgba(140, 181, 0, 0.25), 0 0 0 2px var(--primary-green);
}
.resource-card.active[data-category="papers"]:hover {
    box-shadow: 0 45px 80px rgba(161, 220, 247, 0.5), 0 0 0 2px var(--sky-blue);
}
.resource-card.active[data-category="resources"]:hover {
    box-shadow: 0 45px 80px rgba(0, 146, 69, 0.25), 0 0 0 2px var(--vibrant-green);
}

/* Card Internal Layout */
.card-img-box {
    width: 42%;
    position: relative;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-cinematic);
}

.resource-card.active:hover .card-img-box img {
    transform: scale(1.1);
}

.card-body {
    width: 58%;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Match Tag color to category */
.resource-card[data-category="media"] .category-tag { color: var(--primary-blue); }
.resource-card[data-category="blogs"] .category-tag { color: var(--primary-green); }
.resource-card[data-category="papers"] .category-tag { color: #5ebae6; }
.resource-card[data-category="resources"] .category-tag { color: var(--vibrant-green); }

.card-body h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-rich-heading);
    transition: color 0.3s ease;
}

/* Match Title color on hover */
.resource-card.active[data-category="media"]:hover .card-body h3 { color: var(--primary-blue); }
.resource-card.active[data-category="blogs"]:hover .card-body h3 { color: var(--primary-green); }
.resource-card.active[data-category="papers"]:hover .card-body h3 { color: #3aa6d8; }
.resource-card.active[data-category="resources"]:hover .card-body h3 { color: var(--vibrant-green); }

.card-body p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.5rem;
}

.read-more {
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}

/* Match link color on hover */
.resource-card.active[data-category="blogs"]:hover .read-more { color: var(--primary-green); }
.resource-card.active[data-category="papers"]:hover .read-more { color: #3aa6d8; }
.resource-card.active[data-category="resources"]:hover .read-more { color: var(--vibrant-green); }

.resource-card.active:hover .read-more { gap: 14px; }

.download-icon {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.05); border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main); font-size: 1.2rem; cursor: pointer;
    transition: all 0.4s var(--ease-elastic);
}

.resource-card.active[data-category="media"]:hover .download-icon { background: var(--primary-blue); color: #fff; }
.resource-card.active[data-category="blogs"]:hover .download-icon { background: var(--primary-green); color: #fff; }
.resource-card.active[data-category="papers"]:hover .download-icon { background: var(--sky-blue); color: #0a1930; }
.resource-card.active[data-category="resources"]:hover .download-icon { background: var(--vibrant-green); color: #fff; }

.resource-card.active:hover .download-icon {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Arrows */
.carousel-controls {
    position: absolute;
    bottom: -80px;
    right: 0;
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.nav-arrow {
    width: 55px; height: 55px; border-radius: 50%;
    background: #fff; border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary-blue);
    cursor: pointer; transition: all 0.4s var(--ease-elastic);
}

.nav-arrow:hover {
    background: var(--primary-blue); color: #fff;
    transform: scale(1.1); box-shadow: 0 15px 30px rgba(0, 71, 170, 0.2);
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BHUMI GREEN ENERGY - NEW IMPROVED FOOTER CSS
   ========================================================================== */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Increased right padding (140px) to create a safe zone for floating icons */
    padding: 80px 140px 60px 80px; 
    background: linear-gradient(145deg, #0047a5, #003579);
    color: #fff;
    font-family: "Poppins", -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
    gap: 50px;
}

/* --- LEFT COLUMN --- */
.footer-left {
    flex: 1.2;
    min-width: 300px;
}

.footer-left h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-badges {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.dot {
    width: 10px;
    height: 10px;
    background: #00d063;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 12px rgba(0, 208, 99, 0.6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    max-width: 450px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: #00d063;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.5;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- RIGHT COLUMN (FIXED) --- */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps content away from the center */
    text-align: right;
    min-width: 350px;
}

.footer-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 440px; /* Controlled width to avoid hitting social icons */
}

.footer-btn {
    padding: 14px 32px;
    border-radius: 50px;
    background: #ffffff;
    color: #003579;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-btn:hover {
    transform: scale(1.05) translateX(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
    border-radius: 8px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
}

/* --- FLOATING SOCIAL PANEL (POSITIONED IN SAFE ZONE) --- */
.footer-floating-icons {
    position: absolute;
    right: 40px; /* Positioned inside the 140px padding zone */
    top: 50%;
    transform: translateY(-50%); /* Perfectly centered vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 10;
}

.circle-btn {
    width: 48px;
    height: 48px;
    background: #004fbb;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-btn:hover { 
    background: #00d063; 
    transform: translateY(-5px);
}

.side-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: #0051c5;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.icon-btn:hover { 
    transform: scale(1.15) rotate(5deg);
    background: #0047a5;
}
/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .split-container { flex-direction: column; padding: 0 2rem; gap: 3rem;}
    .sidebar-content { flex: none; width: 100%; text-align: center; }
    .sidebar-content h1 { font-size: 3.5rem; }
    .vertical-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .v-tab-btn { text-align: center; padding: 1rem 1.5rem; }
    
    .carousel-engine { width: 100%; height: auto; min-height: 600px; }
    .resource-card { flex-direction: column; }
    .card-img-box { width: 100%; height: 250px; }
    .card-body { width: 100%; padding: 2rem; }
    
    .footer { padding: 60px 40px; align-items: center; text-align: center; flex-direction: column; }
    .footer-left, .footer-right { width: 100%; align-items: center; }
    .footer-floating-icons { position: static; transform: none; flex-direction: row; margin-top: 40px; width: 100%; justify-content: center; }
    .side-icons { flex-direction: row; }
}

@media (max-width: 600px) {
    .split-resource-section { padding: 8rem 0 4rem; }
    .sidebar-content h1 { font-size: 2.8rem; }
    .carousel-engine { min-height: 550px; }
    .carousel-controls { bottom: -60px; right: 50%; transform: translateX(50%); }
}