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

:root {
    --primary-color: #0b2545;
    --secondary-color: #134074;
    --accent-color: #8da9c4;
    --gold-color: #d4af37;
    --light-bg: #f4f6f9;
    --dark-text: #1d2d44;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--gold-color);
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

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

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

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

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

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

.hero-section {
    height: 100vh;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-color);
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 300;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

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

.section-padding {
    padding: 80px 20px;
}

.alt-bg {
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--gold-color);
    margin: 15px auto 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.about-card {
    background: var(--white);
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-color);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.team-category {
    margin-bottom: 50px;
}

.team-category h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    border-left: 4px solid var(--gold-color);
    padding-left: 12px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--white);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.member-card.highlight {
    border-left-color: var(--gold-color);
    background-color: #fffdf5;
}

.member-card.tech {
    border-left-color: #2a9d8f;
}

.member-card.candidate {
    border-left-color: #e9c46a;
}

.member-card.laity {
    border-left-color: #adb5bd;
}

.member-info h4 {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.member-info .role {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.contact-box {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 30px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-box p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--primary-color);
}

footer {
    background-color: #05101e;
    color: rgba(255,255,255,0.7);
    padding: 30px 20px;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content p {
    margin-bottom: 8px;
}

.tech-credit {
    font-size: 0.75rem;
    color: var(--accent-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        margin-bottom: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}
