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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #e3f2fd 0%, #f1f8ff 50%, #ffffff 100%);
    min-height: 100vh;
}

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

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #008DFF 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.logo-image {
    width: 150px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    /* background: white; */
    /* padding: 10px 25px; */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.nav-link.active::after {
    width: 80%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Adjust body to account for fixed header */
body {
    padding-top: 100px;
}

/* Hero Section - Blue Gradient */
.hero {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 25%, #008DFF 50%, #00ACC1 75%, #1976D2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-in-out 0.3s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2d3748;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #0D47A1, #008DFF, #00ACC1);
    border-radius: 3px;
    animation: rainbowPulse 3s ease-in-out infinite;
}

@keyframes rainbowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 50px;
    font-weight: 500;
}

/* About Section - Gradient Background */
.about-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-top: 5px solid #0D47A1;
    border-bottom: 5px solid #008DFF;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #0D47A1, #008DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #4a5568;
}

/* Participants Section - Blue Background */
.participants-section {
    background: linear-gradient(135deg, #bbdefb 0%, #e1f5fe 100%);
    border-top: 5px solid #1565C0;
    border-bottom: 5px solid #00ACC1;
}

.team-container {
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.team-name {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.member-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.member-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: #008DFF;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0D47A1, #008DFF) border-box;
    transition: transform 0.3s ease;
}

.member-card:hover .member-photo {
    transform: scale(1.1) rotate(5deg);
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 15px 0 10px 0;
}

.certificate-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0D47A1, #008DFF);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 141, 255, 0.3);
}

.certificate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 141, 255, 0.5);
    background: linear-gradient(135deg, #1565C0, #00ACC1);
}

/* Judges Section - Light Blue Gradient */
.judges-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-top: 5px solid #1976D2;
    border-bottom: 5px solid #00ACC1;
}

.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mentors Section - Cyan Gradient */
.mentors-section {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-top: 5px solid #0288D1;
    border-bottom: 5px solid #00ACC1;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Committee Section - Blue Gradient */
.committee-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-top: 5px solid #1565C0;
    border-bottom: 5px solid #1976D2;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Person Card (for Judges, Mentors, Committee) */
.person-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.person-card:hover::before {
    left: 100%;
}

.person-card:hover {
    transform: translateY(-12px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.judge-card:hover {
    border-color: #1976D2;
}

.mentor-card:hover {
    border-color: #00ACC1;
}

.committee-card:hover {
    border-color: #008DFF;
}

.person-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 6px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0D47A1, #008DFF, #00ACC1) border-box;
    transition: transform 0.4s ease;
}

.person-card:hover .person-photo {
    transform: scale(1.15) rotate(-5deg);
}

.person-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.person-title {
    font-size: 1.05rem;
    color: #718096;
    line-height: 1.6;
    font-weight: 500;
}

/* Photo Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f1f8e9 0%, #fff9c4 100%);
    border-top: 5px solid #43A047;
    border-bottom: 5px solid #FFA726;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.gallery-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover .gallery-photo {
    transform: scale(1.1);
}

.photo-caption {
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

/* Footer - Blue Gradient */
.footer {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    border-top: 5px solid #008DFF;
}

.footer p {
    margin: 8px 0;
    font-size: 1.05rem;
    opacity: 0.9;
}

.footer-link {
    color: #64B5F6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Animation */
.person-card,
.member-card {
    animation: fadeIn 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 110px;
        flex-direction: column;
        background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #008DFF 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 20px;
        display: block;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .logo-image {
        width: 120px;
        max-height: 65px;
        padding: 8px 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

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

    .team-members {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .judges-grid,
    .mentors-grid,
    .committee-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content {
        padding: 30px 20px;
    }

    .about-content p {
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .logo-image {
        width: 90px;
        max-height: 55px;
        padding: 6px 18px;
    }

    section {
        padding: 40px 0;
    }

    .member-photo,
    .person-photo {
        width: 120px;
        height: 120px;
    }

    .team-container {
        padding: 20px;
    }

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Decorative Elements */
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}
