:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f5f5f5;
    --nav-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #4CAF50;
    --input-bg: #ffffff;
    --error-color: #ff4444;
    --success-color: #00C851;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --nav-bg: #2d2d2d;
    --shadow: rgba(255, 255, 255, 0.1);
    --input-bg: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar Styles with Animation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    animation: fadeIn 1s ease-out;
}

.nav-links {
    color: rgb(255, 235, 81);
    display: flex;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

.nav-links a {
    color: antiquewhite;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    padding: 10px 0px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    padding: 10px;
}

.hero {
    margin-top: 60px;
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Coordinators Section */
.coordinators {
    padding: 2.5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.coordinator-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.coordinator-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coordinator-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow);
}

.coordinator-cards .coordinator-card:hover img{
    transform: scale(1.05);
}

.coordinator-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    /* animation: float 3s ease-in-out infinite; */
}

/* Projects Section */
.projects {
    padding: 2.5rem 5%;
}

.project-cards, .grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.project-caption {
    padding: 1rem;
    text-align: center;
}

/* Enhanced Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Redesigned Contact Form */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    margin-top: 3rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--text-color);
    opacity: 0.7;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    opacity: 0.2;
    transition: all 0.3s ease;
}

/* Input focus and filled states */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -0.5rem;
    left: 0;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.form-input:focus~.form-line {
    height: 2px;
    opacity: 1;
    background: var(--accent-color);
}

/* Submit button styling */
.submit-btn {
    align-self: flex-start;
    padding: 1rem 2rem;
    background: var(--accent-color);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    margin: auto;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-icon {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Success animation for button */
.submit-btn.success {
    background: #00C851;
    width: 50px;
    padding: 1rem;
    justify-content: center;
}

.submit-btn.success .btn-text {
    display: none;
}

.submit-btn.success .btn-icon {
    transform: scale(1.2);
}

.submit-btn.loading .btn-icon {
    animation: rotate 1s linear infinite;
}

/* Form validation visual feedback */
.form-input:invalid:not(:placeholder-shown)~.form-line {
    background: #ff4444;
}

/* New styles for search and filter */
.search-filter-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    animation: slideDown 0.5s ease-out;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag.active {
    background-color: var(--accent-color);
    color: white;
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Hide projects that don't match search/filter */
.project-card.hidden {
    display: none;
}

.scroll-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    background-color: #000000;
    margin: 10px 0;
    /* Added black background */
    position: relative;
    z-index: 1;
}

.scroll-content {
    display: flex;
    gap: 100px;
    padding: 0 50px;
}

.logo-item {
    display: flex;
    align-items: center;
    min-width: 150px;
}

.logo-item img {
    height: 50px;
    width: 200px;
    object-fit: contain;
    /* Ensure logos are visible on black background */
    filter: brightness(1.2) contrast(1.1);
}

/* Ensure smooth animation */
.scroll-container:hover {
    animation-play-state: paused;
}

/* Add pause on hover for reverse scroll */
.scroll-container-reverse:hover {
    animation-play-state: paused;
}

/* Black banner specific styles */
.black-banner {
    background-color: #000000;
}

/* White banner specific styles */
.white-banner {
    background-color: #c2c2c2;
}

.black-banner .logo-item img {
    filter: brightness(1.2) contrast(1.1);
    /* Makes logos more visible on black */
}

.white-banner .logo-item img {
    filter: brightness(0.9) contrast(1.1);
    /* Adjusts logos for white background */
}

/* Gradient overlays for both banners */
.black-banner::before,
.black-banner::after,
.white-banner::before,
.white-banner::after,
.scroll-banner::before,
.scroll-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.scroll-container {
    display: inline-flex;
    animation: infiniteScroll 15s linear infinite;
}

.scroll-container-reverse {
    display: inline-flex;
    animation: infiniteScrollReverse 10s linear infinite;
}

/* Hover effects */
.scroll-container:hover,
.scroll-container-reverse:hover {
    animation-play-state: paused;
}

.previous-year, .gallery{
    padding: 2.5rem 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fade 0.5s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.lightbox-prev, .lightbox-next {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    transform: scale(1.2);
}

.flex {
    width: 100%;
    display: flex;
    gap: 3rem;
    padding: 3rem;
}

.flex div {
    text-align: justify;
    width: 100%;
    font-size: 1.2rem;
}

.explore{
    width: 50%;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 2rem;
}

.flex2{
    display: flex;
    gap: 1rem;
    flex-direction: column;
    /* justify-content: space-around; */
    /* padding: 2rem 0; */
}

.flex2 h3{
    font-size: x-large;
}

.flex2 p:nth-child(2){
    font-weight: 550;
}

/* footer section */
.footer {
    background-color: var(--nav-bg);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px var(--shadow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-text {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
}

.footer-right {
    color: var(--text-color);
}

.copyright {
    font-size: 0.9rem;
}

#abinya{
    width: 100%;
    border-radius: 10px;
}

#heading-logo{
    height: 6rem;
}

/* Add these to your style.css file */

/* Button states */
.submit-btn.loading {
    background-color: #888;
    pointer-events: none;
}

.submit-btn.success {
    background-color: #27ae60;
}

.submit-btn.error {
    background-color: #e74c3c;
}

/* Message styles */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-message-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.form-message-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.form-message-fadeout {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .project-cards, .grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .flex {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    #heading-logo{
        height: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-text {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .contact-content {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .project-cards, .grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 200px;
        flex-direction: column;
        justify-content: center;
        background-color: var(--nav-bg);
        box-shadow: -5px 0 10px var(--shadow);
        transition: right 0.3s ease;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger animation for open state */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .coordinator-cards{
        grid-template-columns: repeat(2, 1fr);
    }

    .flex {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    #heading-logo{
        height: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .project-cards, .grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .coordinator-cards{
        grid-template-columns: repeat(1, 1fr);
    }

    .flex {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .grid{
        padding: 0;
    }

    .contact-content{
        padding: 1rem;
    }
}

/* Animation keyframes */
@keyframes infiniteScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-250px * 3));
    }
}

@keyframes infiniteScrollReverse {
    from {
        transform: translateX(calc(-250px * 3));
    }

    to {
        transform: translateX(0);
    }
}

/* Loading animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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