:root {
    --primary-color: #021c85;
    --primary-light: #1536b5;
    --primary-dark: #01104e;
    --accent-color: #ffd700;
    --accent-hover: #ffea70;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(2, 28, 133, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 28, 133, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(2, 28, 133, 0.98);
}

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

.logo {
    height: 50px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark) !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white) !important;
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid var(--bg-white);
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to right, rgba(2, 28, 133, 0.85), rgba(2, 28, 133, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Wave Shape */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-light);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 25px;
}

.divider.center {
    margin: 0 auto 25px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.stat-card:last-child {
    grid-column: span 2;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

/* Programs CEDERUA */
.programs {
    background-color: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: var(--transition);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 28, 133, 0.8), rgba(2, 28, 133, 0.9));
    transition: var(--transition);
    z-index: -1;
    border-radius: 20px;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card:hover .card-img {
    transform: scale(1.1);
}

.program-card:hover::before {
    background: linear-gradient(rgba(2, 28, 133, 0.6), rgba(2, 28, 133, 0.95));
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover .card-icon {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.program-card p {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.program-card:hover p {
    color: rgba(255, 255, 255, 1);
}

/* Leadership & Social */
.leadership-social {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.box-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.info-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--accent-color);
}

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.impact-item {
    padding: 30px;
}

.circle-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) 0%, var(--primary-color) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: conic-gradient 1s ease;
}

.circle-chart::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 50%;
}

.chart-val {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.gender-bar {
    width: 100%;
    height: 40px;
    background: #ddd;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    margin: 55px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.gender-bar .bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar.female {
    background-color: var(--primary-light);
}

.bar.male {
    background-color: var(--primary-dark);
}

/* Infinite Carousel for Partners */
.partners {
    background-color: var(--bg-white);
    padding: 80px 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.carousel-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    animation: scrollCarousel 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-contact h3, .footer-social h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .dual-grid {
        grid-template-columns: 1fr;
    }
    .impact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card:last-child {
        grid-column: span 1;
    }
}
