/* --- Variable Definitions --- */
:root {
    --primary-color: #00729c; /* New Blue from Logo */
    --accent-color: #068870;  /* New Teal/Green from Logo */
    --light-gray: #f4f7f6;
    --dark-gray: #333;
    --text-color: #333;
    --light-text-color: #fff;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --code-font: 'Source Code Pro', monospace;
}

/* --- General & Reset Styles --- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}
* { box-sizing: border-box; }
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}
section { padding: 80px 0; }
.alternate-bg { background-color: var(--light-gray); }

section > .container > h3 {
    text-align: center;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 60px;
}

section > .container > h3 i {
    margin-right: 15px;
    color: var(--accent-color);
}

/* --- Button Styles --- */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary {
    background: var(--accent-color);
    color: var(--light-text-color);
}
.btn-primary:hover {
    background-color: #4aa8b0;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-top: 10px;
}
.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--light-text-color);
}

/* --- Header Styles --- */
header {
    background: #fff;
    color: var(--dark-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header a { color: var(--dark-gray); text-decoration: none; }

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 100px; /* Set a fixed width */
    height: auto; /* Allow height to scale automatically */
    margin-right: 15px;
    border-radius: 8px; /* Use a slight radius for rectangular logos */
}

header .logo h1 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

header .logo:hover h1 {
    color: var(--accent-color); /* Change text color on hover */
}

header nav ul { padding: 0; margin: 0; list-style: none; }
header nav li { display: inline; padding: 0 15px; }
header nav a { font-weight: 600; transition: color 0.3s ease; }
header nav a:hover { color: var(--accent-color); }
.menu-icon { display: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }


/* --- Hero Section --- */
#hero {
    position: relative; min-height: 80vh;
    /* IMPORTANT: Make sure you have a 'banner.jpg' file in your 'images' folder */
    background: url('images/banner.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    /* Updated to your new color */
    background-color: rgb(11 131 129 / 49%);
}
#hero .container { position: relative; z-index: 2; }
#hero h2 { font-size: 4em; color: var(--light-text-color); margin-bottom: 20px; }
#hero p { font-size: 1.2em; max-width: 600px; margin: 0 auto 30px; }

/* --- Event Countdown Timer --- */
.countdown-container {
    background: #fff; padding: 30px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center; max-width: 800px; margin: 0 auto 60px auto;
}
.countdown-container h4 { font-size: 1.5em; margin-top: 0; }
.countdown { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.countdown div {
    background: var(--primary-color); color: var(--light-text-color);
    padding: 15px; border-radius: 5px; min-width: 80px;
}
.countdown span { display: block; font-size: 2.5em; font-weight: 700; }

/* --- Project Card Styles --- */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.project {
    background: #fff; padding: 30px;
    border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}


/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 136, 112, 0.08), transparent 40%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
    z-index: 1;
}

.team-member:hover::before {
    transform: scale(1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.team-member .team-photo-container {
    position: relative;
    z-index: 2;
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 0 5px var(--accent-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 0 7px var(--primary-color);
}

.team-member h4 {
    margin: 10px 0 5px 0;
    font-size: 1.4em;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.team-member p {
    margin: 0;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1em;
    position: relative;
    z-index: 2;
}

.team-socials {
    margin-top: 20px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.1s;
}

.team-member:hover .team-socials {
    opacity: 1;
    transform: translateY(0);
}

.team-socials a {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.team-socials a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}


/* --- Project Modals --- */
.modal {
    display: none; position: fixed;
    z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.7);
    animation: fade-in 0.5s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background-color: #fefefe; margin: 10% auto;
    padding: 40px; border-radius: 10px;
    max-width: 700px; position: relative;
    animation: slide-down 0.5s ease-out;
}
@keyframes slide-down { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button {
    color: #aaa; position: absolute; top: 15px; right: 25px;
    font-size: 28px; font-weight: bold;
}
.close-button:hover, .close-button:focus { color: black; cursor: pointer; }
#modal-img { width: 100%; border-radius: 5px; margin-bottom: 20px; }
#modal-tech { margin: 15px 0; }
#modal-tech span {
    background: var(--light-gray); color: var(--primary-color);
    padding: 5px 10px; border-radius: 20px; font-size: 0.9em;
    margin-right: 5px; display: inline-block; margin-bottom: 5px;
}


/* --- Blog Section --- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    background: #fff; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; text-decoration: none;
    color: var(--text-color); transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-content { padding: 25px; }
.blog-card-content h4 { margin-top: 0; }
.read-more-link { color: var(--accent-color); font-weight: 600; text-decoration: none; }
.read-more-link i { transition: transform 0.3s; }
.blog-card:hover .read-more-link i { transform: translateX(5px); }


/* --- Blog Post Page Styles --- */
.blog-post-body { background-color: var(--light-gray); }
.blog-post-body header { background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.blog-post-body header a, .blog-post-body header h1 { color: var(--primary-color); }
.nav-back-link { font-weight: 600; color: var(--primary-color) !important; }
.blog-post-container {
    max-width: 800px; margin: 60px auto;
    background: #fff; padding: 40px 50px; border-radius: 10px;
}
.blog-post-container h1 { font-size: 2.8em; }
.blog-post-container h2 { font-size: 2em; margin-top: 40px; border-bottom: 2px solid var(--light-gray); padding-bottom: 10px; }
.post-meta { color: #777; margin: 20px 0; }
.post-meta span { margin-right: 20px; }
.blog-post-image { width: 100%; border-radius: 10px; margin: 20px 0; }
pre {
    background: #2d2d2d; color: #f8f8f2;
    padding: 20px; border-radius: 5px;
    overflow-x: auto; font-family: var(--code-font);
}


/* --- Hall of Fame Section --- */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.hof-card {
    background: #fff; padding: 30px;
    text-align: center; border-radius: 10px;
    border: 2px solid transparent; transition: all 0.3s ease;
}
.hof-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.hof-icon {
    font-size: 4em; color: var(--accent-color);
    margin-bottom: 20px;
}


/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-img {
    width: 100%; height: 250px;
    object-fit: cover; border-radius: 10px;
    cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* --- Gallery Lightbox --- */
.lightbox {
    display: none; position: fixed;
    z-index: 3000; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center; align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
    max-width: 90%; max-height: 80%;
    animation: zoom-in 0.5s ease;
}
@keyframes zoom-in { from { transform: scale(0.5); } to { transform: scale(1); } }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 40px;
    font-weight: bold; cursor: pointer;
}


/* --- Enhanced Form --- */
#contact form {
    max-width: 700px; margin: auto;
    display: flex; flex-direction: column;
}
#contact input, #contact textarea {
    padding: 15px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 5px;
    font-family: var(--body-font); font-size: 1em;
    transition: border-color 0.3s ease;
}
#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
#contact button { align-self: center; }


/* --- Footer Styles --- */
footer {
    background: var(--dark-gray);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}


/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent-color); color: white;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { background: var(--primary-color); }


/* --- Responsive Design --- */
@media(max-width: 768px) {
    #hero h2 { font-size: 2.5em; }
    section > .container > h3 { font-size: 2em; }
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .menu-icon { display: block; }
    header nav ul {
        display: none;
        position: absolute;
        top: 75px; right: 0;
        background: var(--primary-color);
        width: 100%;
        flex-direction: column;
    }
    header nav ul.active { display: flex; }
    header nav li {
        display: block;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}
