/**
 * Main Stylesheet - CAC Oke Igbala Ketu Youth Church
 * Color Palette: Royal Blue, Sky Blue, Sunset Orange, Golden Yellow, Deep Navy
 */

:root {
    --primary: #1E4BAA;      /* Royal Blue */
    --secondary: #6EC1E4;    /* Sky Blue */
    --accent: #F26B2A;       /* Sunset Orange */
    --highlight: #FDB913;    /* Golden Yellow */
    --dark: #0E1B3B;         /* Deep Navy */
    --light: #FFFFFF;        /* White */
    --gray: #F5F5F5;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== CENTERED LOGO NAVBAR ==================== */

/* Main Navbar - Initial State */
#mainNavbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    z-index: 1000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 0 12px 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State - All borders + blur */
#mainNavbar.navbar-scrolled {
    /* width: 85vw; */
    /* background: rgba(30, 75, 170, 0.85); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border: 2px solid var(--accent); */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 2rem;
}

/* Navbar Container */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

/* Left and Right Navigation */
.navbar-nav-left,
.navbar-nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.navbar-nav-left {
    justify-content: flex-end;
    padding-right: 2rem;
}

.navbar-nav-right {
    justify-content: flex-start;
    padding-left: 2rem;
}

/* Centered Logo */
.navbar-brand {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.navbar-logo {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* #mainNavbar.navbar-scrolled .navbar-logo {
    height: 50px;
} */

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(242, 107, 42, 0.4));
}

/* Navigation Links */
.navbar-nav-left .nav-link,
.navbar-nav-right .nav-link {
    position: relative;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 1px 1px #0000008f;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.navbar-nav-left .nav-link:hover,
.navbar-nav-right .nav-link:hover,
.navbar-nav-left .nav-link.active,
.navbar-nav-right .nav-link.active {
    color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
}

/* Link underline effect */
.navbar-nav-left .nav-link::after,
.navbar-nav-right .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: width 0.3s ease;
}

.navbar-nav-left .nav-link:hover::after,
.navbar-nav-right .nav-link:hover::after,
.navbar-nav-left .nav-link.active::after,
.navbar-nav-right .nav-link.active::after {
    width: 60%;
}

/* Mobile Toggler */
.navbar-toggler {
    display: none;
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Mobile Menu - Hidden by default */
.navbar-collapse {
    display: none;
}

.navbar-nav-mobile {
    display: none;
}

/* Responsive Styles */
@media (max-width: 991px) {
    #mainNavbar {
        width: 95vw;
        padding: 1rem;
    }
    
    #mainNavbar.navbar-scrolled {
        width: 95vw;
    }
    
    .navbar-nav-left,
    .navbar-nav-right {
        display: none;
    }
    
    .navbar-toggler {
        display: block;
        position: absolute;
        left: 1rem;
    }
    
    .navbar-brand {
        margin: 0 auto;
    }
    
    .navbar-collapse {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 27, 59, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 0 0 12px 12px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        border-top: 2px solid var(--accent);
    }
    
    .navbar-collapse.show {
        max-height: 400px;
        padding: 1rem;
    }
    
    .navbar-nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .navbar-nav-mobile .nav-link {
        display: block;
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        font-family: 'Poppins', sans-serif;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav-mobile .nav-link:hover,
    .navbar-nav-mobile .nav-link.active {
        color: var(--highlight);
        background: rgba(242, 107, 42, 0.15);
        padding-left: 24px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 50px;
    }
    
    #mainNavbar.navbar-scrolled .navbar-logo {
        height: 40px;
    }
}

/* Sticky scrolling animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Global Styles ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

button, .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
}

.btn-primary:hover {
    background-color: #163a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 75, 170, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
}

.btn-secondary:hover {
    background-color: #5db5d8;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 28px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ==================== Navigation Bar ==================== */

/* .navbar {
    background-color: var(--dark) !important;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.navbar-nav .nav-link {
    color: #ccc !important;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
} */

/* ==================== Hero Section ==================== */

.hero {
    background-color: var(--primary);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero .btn {
    margin: 0 1rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

/* ==================== Animations ==================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==================== Sections ==================== */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}


.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}section-title p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 15px;
}

/* ==================== About Section ==================== */

.about-section {
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}
.highlight-box {
    background-color: var(--secondary);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--box-shadow);
}

/* ==================== Cards ==================== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 75, 170, 0.2);
}

.card-header {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 30px;
    text-align: center;
}card-body {
    padding: 30px;
}

.card-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==================== Department Cards ==================== */

.department-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(30, 75, 170, 0.3);
}

.department-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.department-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.department-card:hover .department-image img {
    transform: scale(1.1);
}

.department-info {
    padding: 30px;
}

.department-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.department-info .leader {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.department-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ==================== Gallery ==================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 75, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ==================== Giving Section ==================== */

/* ==================== Giving Section ==================== */

.giving-section {
    background-color: var(--dark);
    color: white;
}giving-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.giving-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.giving-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--highlight);
    transform: translateY(-5px);
}

.giving-option i {
    font-size: 3rem;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.giving-option h4 {
    color: white;
    margin-bottom: 1rem;
}

.giving-form {
    background: white;
    color: #333;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(30, 75, 170, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== Footer ==================== */

.footer {
    background-color: var(--dark);
    color: #ccc;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: 80px;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #ccc;
}

.footer a:hover {
    color: var(--accent);
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer .small {
    color: #999;
}

/* ==================== Utilities ==================== */

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--accent);
    margin: 1.5rem 0;
    border-radius: 2px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-60 {
    margin-top: 60px;
}

/* ==================== AOS Animations Setup ==================== */

[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .giving-options {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-primary {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    section {
        padding: 40px 0;
    }
}

