/* ==============================================
   ENERGY AND ENVIRONMENT CONSERVATION CLUB
   Responsive CSS Solution
============================================== */

/* Root Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --primary-dark: #27ae60;
    --primary-light: #a9dfbf;
    --text-color: #333333;
    --light-text: #f8f8f8;
    --dark-bg: #2c3e50;
    --light-bg: #f9f9f9;
    --grey-light: #ecf0f1;
    --grey-dark: #7f8c8d;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --border-radius-sm: 4px;
    --aos-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.highlight {
    color: var(--primary-color);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2980b9;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outlined {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outlined:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-glass {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-glass:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.underline {
    width: 80px;
    height: 4px;
    margin: 0.7rem auto 2.2rem;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-img {
    height: 40px;
    margin-right: 0.2px;
}

.logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
    left: 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.blink-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: blinkCircle 1s infinite;
}

@keyframes blinkCircle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 30px;
        margin-right: 9px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(40vh - 65px);
    }
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.navbar.scrolled .nav-toggle .bar {
    background-color: var(--text-color);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 1.5rem;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.hero-scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.modern-about {
    background: linear-gradient(120deg, #e8f5e9 60%, #f6f9f6 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(56, 142, 60, 0.1);
    padding: 3rem 0;
    margin: 2rem auto;
    max-width: 1200px;
}

.about-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #256029;
    margin-bottom: 0.5rem;
    text-align: center;
}

.about-main-text {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #2e3d2f;
    line-height: 1.8;
    text-align: center;
    padding: 0 1rem;
}

.about-stats-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-stat-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(8, 214, 18, 0.09);
    padding: 1.5rem;
    min-width: 180px;
    text-align: center;
    transition: var(--transition);
}

.about-stat-icon i {
    font-size: 2.5rem;
    color: #388e3c;
    margin-bottom: 0.7rem;
}

.about-stat-label {
    font-size: 1rem;
    color: #388e3c;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.about-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(56, 142, 60, 0.18);
}

.about-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #256029;
}

.tree-card .about-stat-value {
    color: #43a047;
    font-size: 2.4rem;
}

.about-tree-note {
    font-size: 0.9rem;
    color: #43a047;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Initiatives Section */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.initiative-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.initiative-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.initiative-card:hover .initiative-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.initiative-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Events Section */
.events-timeline-modern {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.timeline-container {
    display: flex;
    transition: transform 0.5s ease;
    padding-bottom: 20px;
}

.event-card-modern {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin: 0 1rem;
    width: 300px;
    flex-shrink: 0;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.event-card-modern h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.event-location-modern, 
.event-time-modern {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.event-location-modern i, 
.event-time-modern i {
    margin-right: 8px;
    color: var(--primary-color);
}

.event-description-modern {
    margin: 1rem 0;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.timeline-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.1);
}

.view-all-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Gallery Section */
.gallery-container {
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-slide {
    flex: 0 0 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-slide:hover {
    transform: translateY(-5px);
}

.gallery-slide:hover img {
    transform: scale(1.1);
}

.gallery-track.right {
    animation: scroll-right 40s linear infinite;
}

.gallery-track.left {
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 5)); }
}

@keyframes scroll-left {
    0% { transform: translateX(calc(-280px * 5)); }
    100% { transform: translateX(0); }
}

/* Team Section */
.team-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-pillar-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    min-height: 340px;
    transition: var(--transition);
}

.pillar-full-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.team-pillar-card:hover .pillar-full-img {
    filter: brightness(0.7);
}

.pillar-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(34,139,34,0.85) 80%, rgba(34,139,34,0.1) 100%);
    color: var(--white);
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-pillar-card:hover .pillar-overlay {
    opacity: 1;
}

.pillar-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pillar-position {
    font-size: 0.95rem;
    opacity: 0.9;
}

.group-photo-container {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(76,175,80,0.1);
}

.group-photo {
    width: 100%;
    height: auto;
    display: block;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .join-form {
        padding: 1.5rem;
    }
    
    .join-form h3 {
        font-size: 1.3rem;
    }
    
    input,
    select,
    textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .join-form {
        padding: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .btn-full {
        padding: 0.9rem;
    }
    
    .form-success-message {
        padding: 1.5rem 1rem;
    }
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}




/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-bg);
    transform: translateY(-5px);
}

/* Loading Animations */
.kec-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.kec-splash-content {
    text-align: center;
    animation: fadeInScale 1.5s ease-out forwards;
}

.kec-splash h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.kec-splash .subtext {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.eec-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.eec-loader-inner {
    position: relative;
    width: 80px;
    height: 80px;
}

.eec-loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.eec-loader-circle:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: rgba(76, 175, 80, 0.8);
}

.eec-loader-circle:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: rgba(76, 175, 80, 0.6);
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.eec-loader-circle:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: rgba(76, 175, 80, 0.4);
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
}

.eec-leaf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Responsive Styles */
@media screen and (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .join-content {
        flex-direction: row;
    }
    
    .footer-grid {
        flex-direction: row;
        gap: 3rem;
    }
    
    .footer-widget {
        min-width: 280px;
    }
    
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media screen and (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }
    
    .about-stats-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        color: var(--text-color);
        padding: 0.5rem;
        display: block;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-card-modern {
        width: 280px;
    }
    
    .team-pillar-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .footer-contact li {
        flex-direction: column;
        gap: 0.3rem;
    }
}

  .join-contact-buttons-modern .join-social-btn {
                    display: flex;
                    align-items: center;
                    gap: 0.7rem;
                    padding: 0.7rem 1.3rem;
                    border-radius: 2rem;
                    background: #f8fafc;
                    color: #222;
                    font-weight: 500;
                    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
                    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
                    text-decoration: none;
                    border: 1px solid #e0e7ef;
                }
                .join-contact-buttons-modern .join-social-btn:hover {
                    background: #e6f0fa;
                    color: #0072c6;
                    box-shadow: 0 4px 18px 0 rgba(0,114,198,0.08);
                }
                .join-contact-buttons-modern .icon-circle {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 2.2rem;
                    height: 2.2rem;
                    border-radius: 50%;
                    color: #fff;
                    font-size: 1.2rem;
                    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
                }
                .join-contact-buttons-modern .btn-label {
                    font-size: 1rem;
                    letter-spacing: 0.01em;
                }
                @media (max-width: 600px) {
                    .join-contact-buttons-modern {
                        flex-direction: column;
                        gap: 1rem;
                        align-items: stretch;
                    }
                    .join-contact-buttons-modern .join-social-btn {
                        justify-content: flex-start;
                        width: 100%;
                    }
                }