:root {
    --primary-color: #c92424;
    --primary-dark: #a71d1d;
    --secondary-color: #1e3a8a;
    --text-light: #f8f8f8;
    --text-dark: #333;
    --bg-dark: #16161e;
    --bg-card: #222230;
    --bg-light: #f0f0f0;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: -1;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(22, 22, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 3.5rem;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color var(--transition-speed);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

.apply-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.apply-btn:hover {
    background-color: var(--primary-dark);
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: all var(--transition-speed);
}

/* Main Content */
main {
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

.credits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(34, 34, 48, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.acknowledgement-list a {
    color: rgb(204, 204, 224);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.underline {
    height: 3px;
    width: 100px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
}

.team-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.team-intro p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* Team Categories */
.team-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-category h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.team-category-wide {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-category-wide h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

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

.team-list li {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.team-list li:last-child {
    border-bottom: none;
}

.member-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

.member-role {
    color: #b0b0b0;
    font-style: italic;
}

/* Join Team Section */
.join-team {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.join-team h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.join-team p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: rgba(13, 13, 18, 0.95);
    padding: 3rem 5% 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 3rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #b0b0b0;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-contact a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* Acknowledgement List */
.acknowledgement-list {
    columns: 3;
    column-gap: 2rem;
    list-style: none;
    margin-top: 1rem;
}

.acknowledgement-list li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

/* Media Queries */
@media screen and (max-width: 900px) {
    nav {
        position: fixed;
        top: 5rem;
        right: -100%;
        width: 70%;
        height: calc(100vh - 5rem);
        background-color: rgba(22, 22, 30, 0.98);
        transition: right var(--transition-speed);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .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);
    }
    
    .team-categories {
        grid-template-columns: 1fr;
    }
    
    .acknowledgement-list {
        columns: 2;
    }
}

@media screen and (max-width: 768px) {
    .credits {
        padding: 1.5rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .team-category h2 {
        font-size: 1.5rem;
    }
    
    .join-team h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 600px) {
    .acknowledgement-list {
        columns: 1;
    }
}

@media screen and (max-width: 550px) {
    .team-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-role {
        margin-top: 0.3rem;
    }
}

@media screen and (max-width: 480px) {
    .credits {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
}