/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    text-transform: uppercase;
}

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

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loading-text {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.loading-logo {
    opacity: 0;
    animation: simpleAppear 2s ease-out forwards;
}

.loading-logo img {
    height: 150px;
    width: auto;
}

/* Loading Animations */
@keyframes simpleAppear {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.show {
    opacity: 1;
}

.hidden {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #cccccc;
}

.apply-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background-color: #cccccc;
    color: #000000;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 0;
    margin-top: -10vh;
}

.hero-content {
    z-index: 2;
}

.hero-logo {
    height: 800px;
    width: auto;
    margin-bottom: -150px;
}

.hero-subtitle {
    font-size: 2.4rem;
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
}

/* Homepage Navigation */
.homepage-nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.homepage-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 15px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.homepage-nav-link:hover {
    color: #000000;
    background-color: #ffffff;
    border-color: #ffffff;
}

.homepage-nav-link.apply-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.homepage-nav-link.apply-btn:hover {
    background-color: #cccccc;
}

/* Navigation Active State */
.nav-link.active {
    color: #cccccc;
}

/* Page-specific styles */
.about-section, .team-section, .portfolio-section, .events-section, .sponsors-section {
    padding: 120px 0 80px 0;
}

.about-section {
    padding-top: 150px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 80px;
    justify-items: center;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.team-photo:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-role {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Events Section */
.events-content {
    max-width: 800px;
    margin: 0 auto;
}

.events-text {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 300;
}

/* Sponsors Section */
.sponsors-content {
    max-width: 800px;
    margin: 0 auto;
}

.sponsors-text {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 300;
    margin-bottom: 60px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.sponsor-logo img {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-placeholder {
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-align: center;
}

.sponsor-placeholder p {
    font-size: 1.2rem;
    opacity: 0.5;
    font-weight: 300;
}

.section-title {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: left;
}

.about-text {
    font-size: 1.6rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0;
    text-align: left;
    font-weight: 300;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0 200px 0;
    position: relative;
    min-height: 120vh;
}

.photo-gallery {
    position: relative;
    height: 100vh;
    margin-top: 80px;
}

/* Mobile-first responsive gallery positioning */
@media (max-width: 768px) {
    .photo-gallery {
        height: 160vh;
    }
    
    .photo-item[style*="top: 15%"] { top: 10% !important; left: 5% !important; }
    .photo-item[style*="top: 10%"] { top: 5% !important; left: 55% !important; }
    .photo-item[style*="top: 25%"] { top: 25% !important; left: 75% !important; }
    .photo-item[style*="top: 40%"] { top: 40% !important; left: 10% !important; }
    .photo-item[style*="top: 35%"] { top: 35% !important; left: 50% !important; }
    .photo-item[style*="top: 55%"] { top: 60% !important; left: 5% !important; }
    .photo-item[style*="top: 58%"] { top: 65% !important; left: 45% !important; }
    .photo-item[style*="top: 70%"] { top: 85% !important; left: 75% !important; }
    .photo-item[style*="top: 75%"] { top: 100% !important; left: 20% !important; }
}

@media (max-width: 480px) {
    .photo-gallery {
        height: 200vh;
    }
    
    .photo-item[style*="top: 15%"] { top: 8% !important; left: 2% !important; }
    .photo-item[style*="top: 10%"] { top: 5% !important; left: 52% !important; }
    .photo-item[style*="top: 25%"] { top: 28% !important; left: 70% !important; }
    .photo-item[style*="top: 40%"] { top: 45% !important; left: 5% !important; }
    .photo-item[style*="top: 35%"] { top: 42% !important; left: 48% !important; }
    .photo-item[style*="top: 55%"] { top: 65% !important; left: 2% !important; }
    .photo-item[style*="top: 58%"] { top: 70% !important; left: 40% !important; }
    .photo-item[style*="top: 70%"] { top: 90% !important; left: 70% !important; }
    .photo-item[style*="top: 75%"] { top: 110% !important; left: 15% !important; }
}

.photo-item {
    position: absolute;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo Sizes */
.photo-large {
    width: 350px;
    height: 230px;
}

.photo-medium {
    width: 290px;
    height: 210px;
}

.photo-small {
    width: 240px;
    height: 180px;
}

/* Footer */
.footer {
    background-color: #000000;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer p {
    font-size: 0.6rem;
    opacity: 0.6;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        height: 400px;
        margin-bottom: -80px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .homepage-nav {
        gap: 20px;
        flex-direction: column;
    }
    
    .homepage-nav-link {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .loading-text {
        font-size: 3.6rem;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .about-text, .community-subtitle, .events-text, .sponsors-text, .sponsors-list {
        font-size: 1.4rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .team-name {
        font-size: 1.4rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .photo-large {
        width: 200px;
        height: 150px;
    }
    
    .photo-medium {
        width: 150px;
        height: 120px;
    }
    
    .photo-small {
        width: 120px;
        height: 100px;
    }
    
    .photo-gallery {
        height: 80vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo {
        height: 300px;
        margin-bottom: -50px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .homepage-nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .loading-text {
        font-size: 3rem;
    }
    
    .about-text, .community-subtitle, .events-text, .sponsors-text, .sponsors-list {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}