/* ==========================================
   PENDO EARTH FOUNDATION - Custom Styles
   ========================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F0F7F4;
}
::-webkit-scrollbar-thumb {
    background: #4FA882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D8B63;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-transparent {
    background: transparent;
}
.nav-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-transparent .nav-text-color { color: #ffffff; }
.nav-transparent .nav-subtext-color { color: rgba(255, 255, 255, 0.7); }
.nav-transparent .nav-link-color { color: rgba(255, 255, 255, 0.9); }
.nav-transparent .nav-link-color:hover { color: #ffffff; }

.nav-solid .nav-text-color { color: #0D503C; }
.nav-solid .nav-subtext-color { color: #4FA882; }
.nav-solid .nav-link-color { color: #185A40; }

/* Logo swap based on nav state */
.nav-transparent .logo-dark { display: none; }
.nav-transparent .logo-white { display: block; }
.nav-solid .logo-white { display: none; }
.nav-solid .logo-dark { display: block; }

/* Hamburger menu */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    position: absolute;
}
.hamburger-line:nth-child(1) { transform: translateY(-7px); }
.hamburger-line:nth-child(2) { transform: translateY(0); }
.hamburger-line:nth-child(3) { transform: translateY(7px); }

.hamburger-active .hamburger-line:nth-child(1) { transform: rotate(45deg); }
.hamburger-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-active .hamburger-line:nth-child(3) { transform: rotate(-45deg); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-gradient {
    background: linear-gradient(135deg, #031a0e 0%, #062d1a 30%, #0a3d24 60%, #0D503C 100%);
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(79, 168, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(45, 139, 99, 0.05) 0%, transparent 70%);
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Leaf animation */
.leaf-float {
    animation: leaf-drift 6s ease-in-out infinite;
}
@keyframes leaf-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

/* Globe pulse */
.globe-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 168, 130, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(79, 168, 130, 0); }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-divider {
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2D8B63, #0EA5E9);
    border-radius: 2px;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Solid accent text (was gradient) */
.gradient-text {
    color: #2D8B63;
    background: none;
    -webkit-text-fill-color: #2D8B63;
}

/* Card hover lift */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(13, 80, 60, 0.15);
}

/* Icon container */
.icon-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #2D8B63, #0EA5E9);
}
.card-hover:hover .icon-container svg {
    color: white;
}

/* ==========================================
   COUNTER ANIMATION
   ========================================== */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #B0DCC8, #2D8B63, #B0DCC8);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #2D8B63;
    border: 3px solid #F0F7F4;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}
.timeline-dot:hover {
    transform: translateX(-50%) scale(1.3);
    background: #0EA5E9;
}

/* ==========================================
   PROGRESS BARS
   ========================================== */
.progress-fill {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RIPPLE EFFECT
   ========================================== */
.ripple-container {
    position: relative;
    overflow: hidden;
}
.ripple-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(79, 168, 130, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ripple-container:hover::after {
    opacity: 1;
}

/* ==========================================
   MARQUEE
   ========================================== */
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   PAGE TRANSITION
   ========================================== */
.page-enter {
    animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #D6EDE2;
}
.form-input:focus {
    border-color: #2D8B63;
    box-shadow: 0 0 0 4px rgba(45, 139, 99, 0.1);
    outline: none;
}

/* ==========================================
   BLOB ANIMATIONS
   ========================================== */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 8s ease-in-out infinite;
}
@keyframes blob-morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* ==========================================
   WATER RIPPLE
   ========================================== */
.water-ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    animation: water-expand 4s ease-out infinite;
}
@keyframes water-expand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 300px; height: 300px; opacity: 0; }
}

/* ==========================================
   TYPING CURSOR
   ========================================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* AOS custom animations */
[data-aos="fade-up-custom"] {
    opacity: 0;
    transform: translateY(40px);
    transition-property: opacity, transform;
}
[data-aos="fade-up-custom"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="scale-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition-property: opacity, transform;
}
[data-aos="scale-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Image parallax */
.parallax-img {
    transition: transform 0.1s linear;
}
