/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2c3e50;
}

.text-primary {
    color: #0d6efd !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 600;
    color: #333 !important;
    /* Black text default */
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

/* Gradient Hover Effect */
.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #0b0d21;
    /* Dark background base */
    background-image: url('https://source.unsplash.com/1600x900/?network,constellation,dark');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    /* Increased height for impact */
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 13, 33, 0.9) 0%, rgba(28, 20, 60, 0.8) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    /* Extra bold */
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: colorCycle 6s infinite ease-in-out;
}

@keyframes colorCycle {

    0%,
    100% {
        color: #ffffff;
    }

    35% {
        color: #9C3FD9;
        /* Violet */
    }

    70% {
        color: #FF4FA3;
        /* Pink */
    }
}

.hero-section .lead {
    font-size: 1.35rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Gradient Button */
.btn-custom-gradient {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    /* Purple to Blue/Pinkish */
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

.btn-custom-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.6);
    color: white;
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    /* Reverse gradient on hover */
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Board Members */
/* Board Members */
#board .card {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3);
}

#board .card-title {
    color: white !important;
}

#board .card-text.text-primary {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Lighter white for President role */
}

#board .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.board-img-circle {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

/* Donate Section */
#donate {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

#donate h2,
#donate p.lead {
    color: white !important;
}

#donate .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

#donate .card {
    border-radius: 15px;
    color: #333;
}



/* History Section */
#history {
    background-color: #f8f9fa;
    color: #333;
}

#history h2 {
    color: #2c3e50 !important;
}

.history-gallery-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.history-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.history-fade {
    z-index: 2;
    /* Upper layer */
    opacity: 0;
    animation: historySlide 18s infinite ease-in-out;
}

/* 3 images sliding in and out over 18 seconds (6s each) */
.history-fade-1 {
    animation-delay: 0s;
}

.history-fade-2 {
    animation-delay: 6s;
}

.history-fade-3 {
    animation-delay: 12s;
}

@keyframes historySlide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    5% {
        transform: translateX(0);
        opacity: 1;
    }

    28% {
        transform: translateX(0);
        opacity: 1;
    }

    33% {
        transform: translateX(100%);
        opacity: 0;
    }

    99% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* About Section */
#about {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    margin-top: 5rem;
}

#about h2 {
    color: white !important;
}

#about .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* Footer */
footer {
    background-color: #212529;
    color: white;
}

/* Gallery Section */
#gallery {
    background-color: white;
    color: #333;
}

#gallery h2 {
    color: #2c3e50 !important;
}

#gallery>.container>.text-center>.text-muted {
    color: #6c757d !important;
}

#gallery .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Gallery Creative Hover Overlay */
.gallery-card {
    position: relative;
    cursor: pointer;
}

.caption-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.95) 0%, rgba(37, 117, 252, 0.95) 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gallery-overlay p {
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}