@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fredoka:wght@400;500;600;700&display=swap');

/* ==========================================
   1. BASE STYLES & VARIABLES
   ========================================== */

:root {
    --primary-green: #1e5f3d;
    --accent-yellow: #ffc107;
    --accent-yellow-hover: #e6af00;
    --text-dark: #121212;
    --text-gray: #555555;
    --bg-beige: #f9f7f2; 
    --white: #ffffff;
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Fredoka', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-main); 
    color: var(--text-gray); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
    background-color: var(--white);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section { 
    padding: 80px 0; 
}

/* ==========================================
   2. NAVIGATION & HEADER
   ========================================== */

.header-area {
    position: absolute; 
    width: 100%; 
    z-index: 1000; 
    padding: 20px 0; 
    transition: all 0.4s ease;
}

.header-elements-1 {
    border-radius: 84px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(14px);
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 35px;
    margin: 0 auto;
    max-width: 1200px;
}

/* --- LOGO STYLING --- */
.logo {
    display: flex;             
    align-items: center;       
    gap: 0px;                 
    text-decoration: none;     
    font-size: 28px;           
    font-weight: 800;          
    font-family: 'Fredoka', sans-serif; 
    color: var(--white);       
    transition: 0.3s;
}

.logo img {
    height: 40px;              
    width: auto;               
    display: block;            
}

.logo span {
    color: var(--accent-yellow); 
}

.logo:hover {
    opacity: 0.9;
}

/* --- NAV LINKS --- */
.nav-links a { 
    color: #ffffff; 
    margin-left: 25px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: 0.3s; 
}

/* --- STICKY NAV STATE --- */
.header-area.sticky {
    position: fixed; 
    top: 0; 
    background: #ffffff; 
    padding: 10px 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-area.sticky .header-elements-1 { 
    background: transparent; 
    border: none; 
    backdrop-filter: none; 
}

.header-area.sticky .logo { 
    color: var(--primary-green); 
}

.header-area.sticky .nav-links a { 
    color: #121212; 
}

.header-area.sticky .nav-links a:hover { 
    color: #1e5f3d; 
}

/* --- WHITE NAVBAR (For Inner Pages) --- */
.white-navbar .logo {
    color: var(--primary-green);
}

/* --- MOBILE TOGGLE --- */
.nav-toggle { 
    cursor: pointer; 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
}

.nav-toggle span { 
    width: 25px; 
    height: 3px; 
    background: #ffffff; 
    transition: 0.3s; 
}

.header-area.sticky .nav-toggle span { 
    background: #1e5f3d; 
}

/* ==========================================
   3. RESPONSIVE NAVIGATION
   ========================================== */
@media (max-width: 992px) {
    .header-area { padding: 15px 0; }
    
    .logo { font-size: 24px; }
    .logo img { height: 35px; }
    
    .nav-toggle { display: flex; align-self: center; }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        display: flex;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links a { color: #121212 !important; margin: 15px 0; font-size: 20px; }
    .header-elements-1 { border-radius: 40px; padding: 10px 20px; }
    .nav-toggle span { background: #000000; } 
    .header-area.sticky .nav-toggle span { background: #1e5f3d; }
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(rgba(18, 56, 35, 0.85), rgba(18, 56, 35, 0.85)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 180px;
    padding-bottom: 80px;
    color: white;
    overflow: hidden;
    position: relative; 
}

.hero-section .container {
    position: relative;
    height: 100%;
    max-width: 85% !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-img-content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-character-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 1.5s ease-out forwards;
    animation-delay: 0.2s;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes slideInFromRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Desktop Hero Adjustments */
@media (min-width: 993px) {
    .hero-img-content {
        height: auto;       
        z-index: 1;
        justify-content: flex-end; 
        align-items: flex-end;     
        pointer-events: none;      
    }

    .hero-character-img {
        max-height: 60vh;    
        width: auto;        
        max-width: 100%;    
        object-fit: contain; 
        object-position: bottom right;
        pointer-events: auto;
    }
    
    .hero-text-content {
        position: relative;
        z-index: 3;
    }
}

/* Mobile Hero Adjustments */
@media (max-width: 992px) {
    .hero-section { 
        padding-top: 140px; 
        padding-bottom: 0px; 
        text-align: center; 
    }
    .hero-grid { 
        display: flex;
        flex-direction: column;
        gap: 40px; 
    }
    .hero-text-content { 
        margin: 0 auto; 
        width: 100%;
    }
    .hero-text-content p { 
        margin-left: auto; 
        margin-right: auto; 
    }
    .animate-hero-btns { 
        justify-content: center; 
    }
    .hero-img-content { 
        justify-content: center; 
        position: relative; 
        bottom: auto; 
        right: auto; 
        width: 100%; 
        height: auto;
        margin-top: 20px;
    }
    .hero-character-img { 
        max-height: 350px; 
        margin-bottom: 60px !important;
        height: auto; 
        transform: translateX(0);
    }
}

/* ==========================================
   5. GENERAL COMPONENTS
   ========================================== */

.badge-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #f1f1f1;
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
}

.heading-main {
    font-family: var(--font-heading);
    font-size: 44px;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.master-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 60px; 
    align-items: flex-start; 
}

.info-card {
    background: var(--bg-beige);
    padding: 30px;
    border-radius: 15px;
    margin-top: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-circle {
    width: 60px; 
    height: 60px; 
    background: var(--white); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.icon-circle i { 
    color: var(--primary-green); 
    font-size: 22px; 
}

/* --- Staggered Image Group --- */
.staggered-box { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}
.staggered-left-img { 
    height: 520px; 
    width: 100%; 
    object-fit: cover; 
    border-radius: 20px; 
}
.staggered-right-col { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    gap: 20px; 
}
.small-square-img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 20px; 
}

/* --- Founder Image --- */
.founder-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--accent-yellow);
    transition: all 0.3s ease;
    display: block;
}

/* --- Buttons --- */
.btn-yellow {
    background: var(--accent-yellow); 
    color: var(--text-dark); 
    padding: 14px 28px;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700;
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: 0.3s;
    text-align: center; 
    justify-content: center;
}
.btn-yellow:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(255,193,7,0.3); 
}

/* ==========================================
   6. FOOTER
   ========================================== */
footer { 
    background: #111; 
    color: #999; 
    padding: 60px 0 30px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
}
.footer-grid h4 { 
    color: white; 
    margin-bottom: 20px; 
    font-family: var(--font-heading); 
}
.footer-grid a { 
    color: #999; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 10px; 
}

/* --- Social Icons in Footer --- */
.social-icons-wrapper {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-bottom: 0 !important;
}
.social-link:hover {
    background: var(--accent-yellow);
    color: var(--text-dark) !important;
    transform: translateY(-5px);
}

/* ==========================================
   7. IMPACT CARDS
   ========================================== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 60px;
    padding-bottom: 180px; 
}

.impact-wrapper { position: relative; height: 380px; cursor: pointer; }
.impact-image-container { width: 100%; height: 100%; border-radius: 15px; overflow: hidden; position: relative; background: #f0f0f0; }
.impact-image-container img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.5s ease, transform 0.5s ease; }

.impact-card {
    position: absolute; top: 105%; left: 50%; transform: translateX(-50%);
    width: 92%; background: #fdfbf7; padding: 25px 15px; border-radius: 15px;
    text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.08); z-index: 10;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none;
}
.impact-card .icon-circle { margin: 0 auto 15px; background: white; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.4s ease; }
.impact-card h3 { font-size: 1.1rem; color: #121212; margin-bottom: 8px; font-family: var(--font-heading); transition: color 0.4s ease; }
.impact-card p { font-size: 0.9rem; line-height: 1.5; color: #555; transition: color 0.4s ease; }

.impact-wrapper:hover .impact-image-container img { filter: blur(10px) brightness(0.6); transform: scale(1.08); }
.impact-wrapper:hover .impact-card { top: 50%; transform: translate(-50%, -50%); background: transparent; box-shadow: none; }
.impact-wrapper:hover .impact-card h3, .impact-wrapper:hover .impact-card p { color: #ffffff; }
.impact-wrapper:hover .impact-card .icon-circle { background: transparent; }
.impact-wrapper:hover .impact-card .icon-circle i { color: var(--accent-yellow); font-size: 28px; }

/* ==========================================
   8. WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   9. GLOBAL MOBILE FIXES
   ========================================== */

@media (max-width: 992px) {
    .master-grid { grid-template-columns: 1fr; gap: 40px; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 140px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .heading-main { font-size: 32px; margin-bottom: 15px; }
    
    .founder-img {
        box-shadow: 10px 10px 0 var(--accent-yellow);
        width: 95%; 
        margin: 0 auto 30px auto;
    }

    .staggered-box { 
        grid-template-columns: 1fr; 
        gap: 30px;
        margin-top: 20px;
    }
    .staggered-left-img { height: 350px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .impact-grid { grid-template-columns: 1fr; gap: 120px 0; padding-bottom: 50px; }
    .impact-wrapper { height: 300px; }
    .impact-card { top: 100%; width: 95%; padding: 20px 10px; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    
    .white-navbar .nav-links { top: 70px; }
}

/* ==========================================
   10. ANIMATIONS (Scroll Effects)
   ========================================== */
@keyframes appear { from { opacity: 0; scale: 0.8; transform: translateY(50px); } to { opacity: 1; scale: 1; transform: translateY(0); } }
.animate-scroll { animation: appear linear; animation-timeline: view(); animation-range: entry 0% cover 30%; }
@keyframes slideRightToLeft { 0% { opacity: 0; transform: translateX(100px); } 10% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-20px); } }
@keyframes slideBottomToUp { 0% { opacity: 0; transform: translateY(50px); } 12% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
.animate-hero-text { animation: slideRightToLeft 10s infinite ease-in-out; }
.animate-hero-btns { display: flex; gap: 15px; flex-wrap: wrap; animation: slideBottomToUp 10s infinite ease-in-out; }

/* ==========================================
   11. BLOG DETAIL PAGE (NEW ROUNDED IMAGE)
   ========================================== */

/* Rounded Rectangle Image Container */
.blog-shape-image-container {
    max-width: 600px; /* Small/Medium width */
    height: 400px;    /* Fixed height for uniformity */
    margin: 0 auto 50px auto;
    border-radius: 50px; /* High border radius for distinct "card" look */
    overflow: hidden;
    background-color: #ddd; /* Gray placeholder background */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-shape-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Wrapper */
.blog-text-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Typography Updates */
.blog-rich-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-rich-text p {
    margin-bottom: 25px;
}

/* Match Heading Color from Screenshot */
.blog-rich-text h2, 
.blog-rich-text h3 {
    font-family: var(--font-heading);
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-green); /* Dark Green */
    font-weight: 700;
}

.blog-rich-text h2 { font-size: 26px; }
.blog-rich-text h3 { font-size: 22px; }

.blog-rich-text ul, .blog-rich-text ol { margin-bottom: 25px; padding-left: 25px; }
.blog-rich-text li { margin-bottom: 10px; }
.blog-rich-text img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.blog-rich-text blockquote { border-left: 5px solid var(--accent-yellow); padding-left: 20px; font-style: italic; color: #555; margin: 30px 0; font-size: 1.2rem; }

/* Mobile Adjustment for Blog Image */
@media (max-width: 768px) {
    .blog-shape-image-container {
        width: 100%;
        height: 250px;
        border-radius: 30px;
    }
}