/* =========================================================================
   Global CSS - ECell Pusa Web Platform
   Theme: Greenish Glassmorphism
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --clr-background: #f0fdf4; /* Very light greenish background */
    --clr-primary: #10b981; /* Main Green Accent */
    --clr-primary-dark: #059669; /* Darker Green for hovers */
    --clr-text-main: #1f2937; /* Dark grayish text */
    --clr-text-secondary: #4b5563; /* Medium grayish text */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #f0fdf4 100%);
    color: var(--clr-text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
}

/* -------------------------------------------------------------------------
   Utility Classes for Glassmorphism
   ------------------------------------------------------------------------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.15);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--clr-background);
    color: var(--clr-primary-dark);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Layout Core
   ------------------------------------------------------------------------- */
.main-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* Navbar specific text sizes for scale */
.nav-link {
    color: var(--clr-text-main);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* -------------------------------------------------------------------------
   Floating Particles Animation Base
   ------------------------------------------------------------------------- */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #a7f3d0;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #6ee7b7;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Helper to center text */
.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }
.text-dark { color: var(--clr-text-main); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* -------------------------------------------------------------------------
   Interactive Animations (Floating Emojis & Ripple)
   ------------------------------------------------------------------------- */
@keyframes float-emoji {
    0% { transform: translateY(110vh) scale(0.5) rotate(0deg); opacity: 0; }
    10% { opacity: 0.9; transform: translateY(80vh) scale(1) rotate(15deg); }
    90% { opacity: 0.9; transform: translateY(10vh) scale(1.1) rotate(-15deg); }
    100% { transform: translateY(-20vh) scale(1) rotate(0deg); opacity: 0; }
}

.emoji-bubble {
    position: absolute;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    animation: float-emoji 20s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Click Ripple Effect */
@keyframes ripple-expand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.click-ripple {
    position: fixed;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(122,183,138,0.6) 0%, rgba(122,183,138,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    animation: ripple-expand 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* -------------------------------------------------------------------------
   Scroll Reveal & Cinematic Polish
   ------------------------------------------------------------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    will-change: transform, box-shadow;
}
.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(122, 183, 138, 0.35);
}

.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary:active, .btn-secondary:active {
    transform: scale(0.96);
}

.grain-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   Hero Section Animations (Index)
   ------------------------------------------------------------------------- */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 8s infinite ease-in-out;
}
.animate-blob-delay-2 {
    animation: blob 8s infinite ease-in-out;
    animation-delay: 2s;
}
.animate-blob-delay-4 {
    animation: blob 8s infinite ease-in-out;
    animation-delay: 4s;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1.2s step-end infinite;
}
@keyframes blink { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0; } 
}
