/* ================= CSS: style.css ================= */

:root {
    --primary: #1e3a8a;
    --secondary: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 70px 0;
    text-align: center;
}

/* NAVBAR */
.navbar {
    background: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    position: relative;
    background: url('https://via.placeholder.com/1200x500') no-repeat center/cover;
    color: #fff;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    margin-top: 10px;
}

.hero-buttons {
    margin-top: 20px;
}

/* BUTTONS */
.btn {
    padding: 12px 25px;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: 0.3s;
}

.primary {
    background: var(--primary);
    color: #fff;
}

.primary:hover {
    background: var(--secondary);
}

.secondary {
    border: 2px solid #fff;
    color: #fff;
}

.secondary:hover {
    background: #fff;
    color: var(--primary);
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

.badge.completed {
    background: green;
}

/* IMPACT */
.stats {
    display: flex;
    justify-content: space-around;
}

.stats h3 {
    color: var(--primary);
}

/* CTA */
.cta {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}




/* ================= ENHANCED ANIMATIONS & POLISH ================= */

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

/* Fade-in animation base */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-content h1,
.hero-content p,
.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.hero-content p {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover polish */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Button polish */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.2);
    transition: width 0.3s ease;
}

.btn:hover::after {
    width: 100%;
}

/* Section titles */
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
}

h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--primary);
    display: block;
    margin: 10px auto 0;
}

/* Navbar transition */
.navbar {
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.sticky {
    background: #ffffff;
}

/* CTA pulse */
.cta .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* ABOUT PAGE ENHANCEMENTS */

.small-hero {
    height: 50vh;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 10px;
}

.alt-bg {
    background: #f9f9f9;
}

.team-card img {
    border-radius: 50%;
    height: 200px;
    object-fit: cover;
}
/* ADD TO style.css */

.filter-bar {
    text-align: center;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

.project-card {
    overflow: hidden;
}

.project-content {
    padding-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 5px;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: var(--secondary);
    border-radius: 5px;
    transition: width 1s ease;
}
.project-card {
    position: relative;
}

.project-card::after {
    content: \"View Details\";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover::after {
    opacity: 1;
}

/* ADD TO style.css */

.event-card img {
    width: 100%;
}

.event-content {
    margin-top: 10px;
}

.countdown {
    margin: 10px 0;
    font-weight: bold;
    color: var(--primary);
}
.badge.upcoming {
    background: var(--secondary);
}

.badge.past {
    background: gray;
}