/* CSS Custom Properties */
:root {
    --primary-color: #28a745;
    --primary-dark: #1e7e34;
    --primary-light: #5cb85c;
    --primary-rgb: 40, 167, 69;
    --secondary-color: #FFD700;
    --secondary-dark: #e6c200;
    --secondary-rgb: 255, 215, 0;
    --accent-color: #FFDC00;
    --background-dark: #111111;
    --background-dark-light: #1a1a1a;
    --background-light: #f8f9fa;
    --background-cream: #faf8f3;
    --text-dark: #111111;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border-color: #333333;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow-green: 0 0 20px rgba(40, 167, 69, 0.3);
    --shadow-glow-yellow: 0 0 20px rgba(255, 215, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid var(--primary-color);
}

.navbar.scrolled {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.bagel-icon {
    font-size: 1.5rem;
}

.nav-brand {
    color: var(--text-white);
}

.nav-team-number {
    color: var(--background-dark);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background: var(--secondary-color);
    border-radius: 4px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.15) 0%, 
        rgba(17, 17, 17, 0.95) 40%,
        rgba(17, 17, 17, 0.95) 60%,
        rgba(255, 215, 0, 0.15) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--background-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow-green);
}

.bagel-icon-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: rotate 20s linear infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(40, 167, 69, 0.5);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--background-dark);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--background-dark);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-green);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 3rem 0 1.5rem;
    text-align: center;
}

/* About Section */
.about-section {
    background: var(--background-dark-light);
}

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

.about-card {
    padding: 2rem;
    background: var(--background-dark);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-green);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: #aaaaaa;
    line-height: 1.7;
}

.values-section {
    background: var(--background-dark);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-dark-light);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.value-item:hover {
    background: rgba(40, 167, 69, 0.15);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-green);
}

.value-icon {
    font-size: 2rem;
}

.value-text {
    font-weight: 600;
    color: var(--text-white);
    font-size: 1.1rem;
}

/* Robot Section */
.robot-section {
    background: var(--background-dark);
}

.season-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--background-dark);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-glow-green);
    border: 3px solid var(--secondary-color);
}

.season-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--background-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.season-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.season-description {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.robot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--background-dark-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-yellow);
    border-color: var(--secondary-color);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #aaaaaa;
    font-size: 0.95rem;
    font-weight: 500;
}

.robot-highlights {
    margin-bottom: 3rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--background-dark-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.highlight-card:hover {
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.highlight-card p {
    color: #aaaaaa;
    line-height: 1.6;
}

.competition-section {
    background: var(--background-dark-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.timeline {
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(40, 167, 69, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(40, 167, 69, 0.3);
    background: var(--background-dark);
}

.timeline-marker.achieved {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.timeline-marker.upcoming {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timeline-content h4 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    color: #aaaaaa;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    background: var(--background-dark-light);
}

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

.team-card {
    background: var(--background-dark);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-green);
    border-color: var(--primary-color);
}

.team-avatar-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    background: var(--background-dark-light);
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: inset 0 0 20px rgba(40, 167, 69, 0.2);
}

.team-card:hover .team-avatar-placeholder {
    border-color: var(--secondary-color);
    box-shadow: inset 0 0 30px rgba(40, 167, 69, 0.3), 
                0 0 15px rgba(255, 215, 0, 0.4);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    color: rgba(40, 167, 69, 0.5);
    transition: var(--transition);
}

.team-card:hover .placeholder-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.team-name {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sponsors Section */
.sponsors-section {
    background: var(--background-dark);
}

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

.sponsor-card {
    background: var(--background-dark-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-yellow);
    border-color: var(--secondary-color);
}

.sponsor-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.sponsor-card h3 {
    font-size: 1.125rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.sponsor-tier {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-cta {
    background: var(--background-dark-light);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.sponsor-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sponsor-cta p {
    color: #aaaaaa;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--background-dark-light);
}

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

.contact-card {
    background: var(--background-dark);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-green);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-card p {
    color: #aaaaaa;
}

.social-links {
    text-align: center;
    padding: 2.5rem;
    background: var(--background-dark);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.social-links h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--background-dark-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-color);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-green);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 3rem 0 2rem;
    border-top: 3px solid var(--primary-color);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--primary-color);
}

.footer-team-number {
    color: var(--background-dark);
    font-size: 1.125rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    border-radius: 4px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-copyright {
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-dark);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
        border-left: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(40, 167, 69, 0.2);
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

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

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

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

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .about-grid,
    .highlights-grid,
    .team-grid,
    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .robot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .bagel-icon-large {
        font-size: 3rem;
    }

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

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

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

    .season-banner {
        padding: 2rem 1.5rem;
    }

    .season-title {
        font-size: 1.75rem;
    }

    .robot-stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: 1px;
    }

    .timeline-item {
        padding-left: 40px;
    }
}
