/* ============================================
   Team 1729 "Inconceivable!" Website Styles
   Brand Color: #021AC9 (Team Blue)
   ============================================ */

/* ROOT VARIABLES */
:root {
    --primary-blue: #021AC9;
    --primary-text: #1a1a1a;
    --secondary-text: #666666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(2, 26, 201, 0.1);
    --shadow-hover: 0 8px 20px rgba(2, 26, 201, 0.15);
    
    --font-primary: 'Crimson Text', serif;
    --font-secondary: 'Cinzel', serif;
    --font-brand: 'Copper Sans Gothic', 'Copperplate Gothic', serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    --radius: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-text);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0015a0;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

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

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

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

/* NAVIGATION HEADER */
.navbar {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-lg) 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: var(--spacing-md) 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--primary-blue);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .logo-img {
    height: 36px;
}

.logo-text {
    color: var(--white);
    font-family: var(--font-brand);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary-blue);
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding-bottom: 4px;
    font-size: 14px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--primary-text);
}

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

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

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

.navbar.scrolled .hamburger span {
    background-color: var(--primary-blue);
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: visible;
    margin-top: 0;
}

.hero-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-badge img {
    width: 110px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-badge {
        right: 12px;
        bottom: 12px;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .hero-badge img {
        width: 86px;
    }
}

/* SLIDESHOW CONTAINER */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) grayscale(100%) brightness(1) contrast(1);
    opacity: 0;
    transition: opacity 1s ease-in-out, filter 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Disable legacy per-slide animation; JS controls timing */
.fade { animation: none !important; }

/* During transitions, gently boost brightness/contrast on slides */
.slide.enhanced {
    filter: blur(2px) grayscale(60%) brightness(1.18) contrast(1.12);
}

/* BLUE OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        #001cf487 0%,
        #0017c682 100%
    );
    z-index: 3;
}

.hero-background {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 400px;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
    padding: var(--spacing-xl);
}

.hero-pretitle {
    font-family: var(--font-brand);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-main {
    display: inline-block;
    line-height: 0.95;
    margin: 0 auto 14px auto;
    max-width: 100%;
}
.hero-main .line {
    display: block;
    font-family: var(--font-secondary);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    word-break: break-word;
}
.hero-main .line-1 {
    font-size: clamp(36px, 6vw, 80px);
}
.hero-main .line-2 {
    /* Keep the second line on a single line on larger viewports so it doesn't hyphenate */
    font-size: clamp(36px, 8vw, 96px);
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.hero-quote {
    font-family: var(--font-primary);
    font-style: italic;
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin: 12px 0;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-brand);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: 1.8;
    font-family: var(--font-primary);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* TEAM STATS SECTION (replaces featured-highlights) */
.team-stats {
    position: relative;
    padding: calc(var(--spacing-xxl) + 10px) 0;
    background-color: #fbfaf8;
    overflow: hidden;
}

.team-stats::before,
.team-stats::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 420px;
    height: 420px;
    transform: translateY(-50%);
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.team-stats::before {
    left: -120px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23edeaf5'><path d='M99 20c7 0 12 26 20 26s13-8 20-8 12 7 12 14-14 30-8 38 28 8 28 21-18 18-24 26 6 28-3 34-22-2-31 6 3 28-8 34-24-8-34-2-4 26-18 30-20-22-34-22-8 26-26 26-6-36-26-44 2-38 12-46 4-34 14-40 34 4 46-2 20-20 34-22c12-2 11-24 20-28z'/></g></svg>");
}

.team-stats::after {
    right: -120px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23edeaf5'><path d='M101 20c-7 0-12 26-20 26s-13-8-20-8-12 7-12 14 14 30 8 38-28 8-28 21 18 18 24 26-6 28 3 34 22-2 31 6-3 28 8 34 24-8 34-2 4 26 18 30 20-22 34-22 8 26 26 26 6-36 26-44-2-38-12-46-4-34-14-40-34 4-46-2-20-20-34-22c-12-2-11-24-20-28z'/></g></svg>");
}

.team-stats .team-stats-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.team-stats .section-title {
    font-size: 34px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-text);
    font-family: var(--font-brand);
    font-weight: 700;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: var(--spacing-lg);
}

.stat-card {
    background: transparent;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 280px;
}

.stat-icon-badge {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, rgba(2,26,201,0.06), rgba(2,26,201,0.12));
    border: 2px solid rgba(2,26,201,0.08);
}

.stat-number {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: none;
}

.stat-note {
    font-size: 13px;
    color: var(--secondary-text);
    font-style: italic;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .team-stats::before, .team-stats::after { width: 300px; height: 300px; left: -80px; right: -80px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .team-stats::before, .team-stats::after { display: none; }
    .stat-card { max-width: 420px; }
}

/* ABOUT SECTION */
.about {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text p {
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    font-size: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: var(--spacing-xs);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    aspect-ratio: 1;
}

.about {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0ff 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--secondary-text);
    width: 100%;
    aspect-ratio: 1;
}

.image-placeholder.large {
    aspect-ratio: 4/3;
}

.image-placeholder.small {
    aspect-ratio: 1;
    height: 200px;
}

/* CURRENT ROBOT SECTION */
.current-robot {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

.robot-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.robot-details h3 {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

.robot-details p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.robot-specs {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--primary-blue);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-text);
}

.spec-value {
    color: var(--primary-blue);
    font-weight: 600;
}

/* NEWS SECTION */
.news-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
}

.news-card p {
    color: var(--secondary-text);
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.news-link {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-block;
}

.news-link:hover {
    text-decoration: underline;
}

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

/* CALENDAR & EVENTS SECTION */
.calendar-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    overflow: hidden;
}

.calendar-embed-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.calendar-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

@media (max-width: 768px) {
    .calendar-embed-wrapper iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .calendar-embed-wrapper iframe {
        height: 400px;
    }
}

/* TEAM PREVIEW / INSTAGRAM GALLERY SECTION */
.team-preview {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-text);
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
}

/* Instagram Embed Styling */
.instagram-embed-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: var(--spacing-lg);
}

.instagram-feed-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.instagram-feed-wrapper iframe {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
}

.instagram-placeholder {
    display: block;
}

/* Legacy team grid styles (keep for other pages if needed) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.team-member-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: var(--spacing-lg);
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.member-image {
    margin-bottom: var(--spacing-md);
}

.team-member-card h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-text);
}

.member-role {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

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

/* HERO PAGE SECTION (for sponsors.html and other pages) */
.hero-page {
    min-height: 60vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 0 0;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0015a0 100%);
}

.hero-page .hero-content {
    text-align: center;
    z-index: 4;
}

.hero-page .hero-main .line-1 {
    font-size: clamp(36px, 6vw, 64px);
}

.hero-page .hero-description {
    font-size: 18px;
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0.95;
}

/* SPONSORSHIP INTRO */
.sponsorship-intro {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    text-align: center;
}

/* Tier Pricing Overview */
.tier-pricing-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.tier-price-card {
    background: linear-gradient(135deg, rgba(2, 26, 201, 0.05), rgba(2, 26, 201, 0.02));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(2, 26, 201, 0.1);
}

.tier-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(2, 26, 201, 0.15);
}

.tier-badge {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.tier-price-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-secondary);
}

.tier-amount {
    font-size: 18px;
    color: var(--secondary-text);
    font-weight: 600;
}

.platinum-badge { animation-delay: 0s; }
.gold-badge { animation-delay: 0.2s; }
.silver-badge { animation-delay: 0.4s; }
.bronze-badge { animation-delay: 0.6s; }

/* SPONSOR TIER SECTIONS */
.sponsors-tier {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.platinum-tier {
    background: linear-gradient(135deg, rgba(2, 26, 201, 0.04) 0%, rgba(2, 26, 201, 0.02) 100%);
    position: relative;
}

/* Add extra decorative gear to platinum tier */
.platinum-tier .gear-background {
    opacity: 0.08;
}

.platinum-tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.gold-tier {
    background-color: var(--light-bg);
    padding: var(--spacing-xl) 0;
}

.silver-tier {
    background-color: var(--white);
    padding: var(--spacing-xl) 0;
}

.tier-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gold-tier .tier-header,
.silver-tier .tier-header {
    margin-bottom: var(--spacing-lg);
}

/* Large badge for tier headers */
.tier-badge-large {
    font-size: 72px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.gold-tier .tier-badge-large {
    font-size: 56px;
    margin-bottom: var(--spacing-sm);
}

.silver-tier .tier-badge-large {
    font-size: 52px;
    margin-bottom: var(--spacing-sm);
}

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

.tier-amount-display {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: var(--spacing-sm) 0;
}

.platinum-header .tier-amount-display {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.tier-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.platinum-tier .tier-title {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFD700;
}

.gold-tier .tier-title {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFD700;
    font-size: 30px;
}

.silver-tier .tier-title {
    color: var(--primary-blue);
    font-size: 28px;
}

.tier-description {
    font-size: 18px;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* SPONSOR GRIDS */
.sponsors-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Add breathing room above home sponsors section */
.sponsors-section {
    padding: calc(var(--spacing-xxl) * 1.25) 0 var(--spacing-xxl);
    background-color: var(--white);
}

/* Home page sponsors row (4 across, stay inline with scroll fallback) */
.home-sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--spacing-lg);
    justify-items: center;
}

.platinum-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--spacing-xl);
}

.gold-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.silver-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* SPONSOR CARDS */
.sponsor-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Platinum cards get special treatment */
.platinum-tier .sponsor-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.1);
    transition: all 0.5s ease;
    z-index: 1;
}

.platinum-tier .sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.platinum-tier .sponsor-card:hover {
    transform: translateY(-12px) scale(1.25);
    box-shadow: 0 16px 50px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
    z-index: 10;
}

.sponsor-card.gold {
    border-top: 4px solid var(--primary-blue);
}

.sponsor-logo {
    background-color: var(--light-bg);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: var(--spacing-md);
    position: relative;
}

/* Home page platinum trio styling */
.home-sponsors-grid .sponsor-logo {
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.12), transparent 55%),
                radial-gradient(circle at 80% 30%, rgba(255, 165, 0, 0.14), transparent 60%),
                var(--white);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 0 35px rgba(255, 215, 0, 0.18);
    padding: calc(var(--spacing-lg) + 6px);
    min-height: 200px;
}

.home-sponsors-grid .sponsor-image {
    max-height: 190px;
}

/* Tier-specific logo sizing */
.platinum-tier .sponsor-logo {
    min-height: 220px;
    padding: var(--spacing-xl);
}

.gold-tier .sponsor-logo {
    min-height: 180px;
}

.silver-tier .sponsor-logo {
    min-height: 150px;
    padding: var(--spacing-md);
}

.sponsor-logo-text {
    background-color: var(--light-bg);
    color: var(--primary-text);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 26px);
    text-align: center;
    line-height: 1.25;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
    word-break: break-word;
}

/* Platinum sponsor logos get golden glow */
.platinum-tier .sponsor-logo {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 245, 220, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.sponsor-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.platinum-tier .sponsor-image {
    max-height: 200px;
}

.gold-tier .sponsor-image {
    max-height: 160px;
}

.silver-tier .sponsor-image {
    max-height: 130px;
}

.sponsor-placeholder {
    color: var(--secondary-text);
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.sponsor-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
}

/* TIER BENEFITS */
.tier-benefits {
    background-color: rgba(2, 26, 201, 0.06);
    border-left: 4px solid var(--primary-blue);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    margin-top: var(--spacing-lg);
}

.tier-benefits h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.tier-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tier-benefits li {
    color: var(--primary-text);
    font-size: 16px;
    padding-left: 28px;
    position: relative;
}

.tier-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .hero-page {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-page .hero-main .line-1 {
        font-size: 48px;
    }
    
    .tier-title {
        font-size: 28px;
    }
    
    .tier-description {
        font-size: 16px;
    }
    
    .home-sponsors-grid,
    .gold-grid,
    .silver-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsors-section {
        padding: var(--spacing-xl) 0;
    }
    
    .sponsors-grid {
        gap: var(--spacing-md);
    }
    
    .sponsor-logo {
        min-height: 150px;
    }
}

.cta-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0015a0 100%);
    color: var(--white);
    overflow: hidden;
}

.cta-content {
    text-align: center;

    .platinum-tier .sponsor-logo-text {
        font-size: clamp(20px, 3vw, 28px);
    }

    .gold-tier .sponsor-logo-text {
        font-size: clamp(18px, 2.6vw, 24px);
    }

    .silver-tier .sponsor-logo-text {
        font-size: clamp(16px, 2.4vw, 22px);
    }
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    opacity: 0.95;
    font-family: var(--font-primary);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

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

.cta-section .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* QUOTE CAROUSEL SECTION */
.quote-carousel {
    background: transparent;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.quote-carousel .container {
    max-width: 900px;
}

.quote-carousel-wrapper {
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    height: 120px;
}

.quote-track {
    position: relative;
    height: 120px;
    width: 100%;
}

.quote-card {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    text-align: center;
    min-height: 120px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.quote-card.active {
    opacity: 1;
}

.quote-text {
    font-family: var(--font-primary);
    font-size: 25px;
    font-style: italic;
    color: var(--primary-blue);
    line-height: 1.5;
    margin: 0 0 8px 0;
    max-width: 700px;
    opacity: 0.8;
}

.quote-character {
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

/* Responsive Quote Carousel */
@media (max-width: 768px) {
    .quote-carousel {
        padding: var(--spacing-md) 0;
    }

    .quote-card {
        padding: 15px 20px;
        min-height: 100px;
    }

    .quote-track {
        height: 100px;
    }

    .quote-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .quote-card {
        padding: 12px 16px;
        min-height: 90px;
    }

    .quote-track {
        height: 90px;
    }

    .quote-text {
        font-size: 14px;
    }

    .quote-character {
        font-size: 11px;
    }
}

/* FOOTER */
.footer {
    background-color: var(--primary-text);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-size: 16px;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    color: var(--primary-blue);
}

.footer-section p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: #999;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* GEAR DECORATIONS */
.gear-decoration {
    position: absolute;
    z-index: 5; /* above wave-divider (z-index: 3) and hero-content (z-index: 4) */
    pointer-events: none;
    opacity: 0.6;
}

.gear-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero section gears */
.gear-hero-left {
    width: 120px;
    height: 120px;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: rotateClockwise 20s linear infinite;
}

.gear-hero-right {
    width: 140px;
    height: 140px;
    right: 30px;
    top: 40%;
    animation: rotateCounterClockwise 25s linear infinite;
}

/* Team stats section gears */
.gear-stats-left {
    width: 100px;
    height: 100px;
    left: 40px;
    top: 30%;
    animation: rotateClockwise 22s linear infinite;
}

.gear-stats-right {
    width: 110px;
    height: 110px;
    right: 50px;
    bottom: 10%;
    animation: rotateCounterClockwise 24s linear infinite;
}

/* About section gear */
.gear-about-corner {
    width: 90px;
    height: 90px;
    bottom: -40px;
    right: 60px;
    animation: rotateClockwise 18s linear infinite;
}

/* Robot section gears */
.gear-robot-left {
    width: 130px;
    height: 130px;
    left: 30px;
    top: 20%;
    animation: rotateClockwise 26s linear infinite;
}

.gear-robot-right {
    width: 115px;
    height: 115px;
    right: 40px;
    bottom: 5%;
    animation: rotateCounterClockwise 21s linear infinite;
}

/* Team preview section gear */
.gear-team-corner {
    width: 85px;
    height: 85px;
    top: 20px;
    right: 70px;
    animation: rotateClockwise 23s linear infinite;
}

/* Footer gear */
.gear-footer-corner {
    width: 95px;
    height: 95px;
    top: 30px;
    left: 50px;
    animation: rotateCounterClockwise 19s linear infinite;
}

/* CTA section gears */
.gear-cta-left {
    width: 110px;
    height: 110px;
    left: 30px;
    top: 25%;
    animation: rotateClockwise 24s linear infinite;
}

.gear-cta-right {
    width: 125px;
    height: 125px;
    right: 40px;
    bottom: 15%;
    animation: rotateCounterClockwise 22s linear infinite;
}

/* BACKGROUND GEARS (light blue, slow rotating, behind content) */
.gear-background {
    position: absolute;
    z-index: 0; /* behind all content */
    pointer-events: none;
    opacity: 0.3;
}

/* Team stats section background gears */
.gear-bg-stats-left {
    width: 220px;
    height: 220px;
    left: 30px;
    top: 20%;
    animation: rotateClockwise 45s linear infinite;
}

.gear-bg-stats-right {
    width: 240px;
    height: 240px;
    right: 40px;
    bottom: 15%;
    animation: rotateCounterClockwise 50s linear infinite;
}

/* About section background gear */
.gear-bg-about-corner {
    width: 210px;
    height: 210px;
    bottom: -50px;
    right: 50px;
    animation: rotateClockwise 48s linear infinite;
}

/* Robot section background gears */
.gear-bg-robot-left {
    width: 250px;
    height: 250px;
    left: 20px;
    top: 15%;
    animation: rotateClockwise 52s linear infinite;
}

.gear-bg-robot-right {
    width: 230px;
    height: 230px;
    right: 30px;
    bottom: 10%;
    animation: rotateCounterClockwise 47s linear infinite;
}

/* News section background gears */
.gear-bg-news-left {
    width: 200px;
    height: 200px;
    left: 40px;
    top: 30%;
    animation: rotateClockwise 49s linear infinite;
}

.gear-bg-news-right {
    width: 215px;
    height: 215px;
    right: 50px;
    bottom: 20%;
    animation: rotateCounterClockwise 46s linear infinite;
}

/* Team preview section background gear */
.gear-bg-team-corner {
    width: 205px;
    height: 205px;
    top: 30px;
    right: 60px;
    animation: rotateClockwise 51s linear infinite;
}

/* Sponsors section background gears */
.gear-bg-sponsors-left {
    width: 190px;
    height: 190px;
    left: 50px;
    top: 40%;
    animation: rotateClockwise 44s linear infinite;
}

.gear-bg-sponsors-right {
    width: 200px;
    height: 200px;
    right: 45px;
    bottom: 25%;
    animation: rotateCounterClockwise 53s linear infinite;
}

/* Events section background gears */
.gear-bg-events-left {
    width: 200px;
    height: 200px;
    left: -50px;
    top: 20%;
    animation: rotateClockwise 49s linear infinite;
}

.gear-bg-events-right {
    width: 215px;
    height: 215px;
    right: -60px;
    bottom: 15%;
    animation: rotateCounterClockwise 46s linear infinite;
}

/* Calendar section background gears */
.gear-bg-calendar-left {
    width: 200px;
    height: 200px;
    left: -50px;
    top: 30%;
    animation: rotateClockwise 49s linear infinite;
}

.gear-bg-calendar-right {
    width: 215px;
    height: 215px;
    right: -60px;
    bottom: 25%;
    animation: rotateCounterClockwise 46s linear infinite;
}

/* Footer background gear */
.gear-bg-footer-corner {
    width: 220px;
    height: 220px;
    top: 20px;
    left: 40px;
    animation: rotateCounterClockwise 54s linear infinite;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    /* NAVBAR */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-link {
        color: var(--primary-text);
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* HERO */
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-pretitle {
        font-size: 12px;
        letter-spacing: 6px;
    }
    .hero-main .line-1 {
        font-size: 48px;
    }
    .hero-main .line-2 {
        font-size: 64px;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero .btn {
        width: 100%;
    }
    
    /* SECTIONS */
    .section-title {
        font-size: 32px;
    }
    
    .featured-highlights,
    .about,
    .current-robot,
    .news-section,
    .team-preview,
    .sponsors-section,
    .cta-section {
        padding: var(--spacing-xl) 0;
    }
    
    /* ABOUT */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* ROBOT */
    .robot-showcase {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-section .btn {
        width: 100%;
    }
    
    /* FOOTER */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    .hero-pretitle {
        font-size: 10px;
        letter-spacing: 5px;
    }
    .hero-main .line-1 {
        font-size: 36px;
    }
    .hero-main .line-2 {
        font-size: 46px;
        white-space: normal;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .highlights-grid,
    .news-grid,
    .team-grid,
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* MODAL STYLES */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--secondary-text);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--light-bg);
    color: var(--primary-text);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: var(--spacing-md);
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        font-size: 28px;
    }
}

/* WAVE DIVIDER STYLES */
.wave-divider {
    width: 100%;
    display: block;
    line-height: 0;
    position: absolute;
    left: 0;
    bottom: -2px; /* slightly overlap next section */
    height: 80px;
    pointer-events: none;
    z-index: 3; /* sits above slideshow background, under hero content (hero-content is 4) */
}
.wave-divider path {
    transition: fill 0.25s ease;
}

/* helper variants to match light backgrounds */
.wave-divider.wave-light-to-white path {
    fill: #fbfaf8; /* pure white for wave overlay */
}
.wave-divider.wave-white-to-light path {
    fill: #ffffff;
}

@media (max-width: 768px) {
    .wave-divider { height: auto; }
}

/* ===========================
   ROBOTS GALLERY SECTION
   =========================== */

.robots-gallery {
    padding: var(--spacing-section) 0;
    background-color: var(--light-bg);
}

.robot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
}

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

.robot-row-1 .robot-image-container {
    order: 1;
}

.robot-row-1 .robot-content-container {
    order: 2;
}

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

.robot-row-2 .robot-image-container {
    order: 2;
}

.robot-row-2 .robot-content-container {
    order: 1;
}

.robot-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-gallery-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(2, 26, 201, 0.15));
    transition: var(--transition);
    border-radius: 20px;
}

.robot-gallery-image:hover {
    filter: drop-shadow(0 15px 40px rgba(2, 26, 201, 0.25));
    transform: translateY(-5px);
}

.robot-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8eef7 0%, #d4dce8 100%);
    border: 2px dashed var(--primary-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    font-style: italic;
}

.robot-content-container {
    padding: var(--spacing-lg) 0;
}

.robot-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.robot-year {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.robot-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.2;
}

.robot-description {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-text);
    margin: 0;
}

.robot-links-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary-blue);
    border-radius: 4px;
}

.robot-link-item {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 0;
}

.robot-link-item:hover {
    color: var(--primary-text);
    padding-left: 8px;
}

.robot-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.robot-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .robot-title {
        font-size: 28px;
    }
    
    .robot-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .robot-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .robot-row-1 .robot-image-container,
    .robot-row-2 .robot-image-container {
        order: unset;
    }
    
    .robot-row-1 .robot-content-container,
    .robot-row-2 .robot-content-container {
        order: unset;
    }
    
    .robot-title {
        font-size: 24px;
    }
    
    .robot-description {
        font-size: 15px;
    }
    
    .robot-placeholder {
        height: 300px;
    }
    
    .robot-links-section {
        padding: var(--spacing-sm);
    }
    
    .robot-buttons {
        flex-direction: column;
    }
    
    .robot-buttons .btn {
        width: 100%;
    }
}

/* ===========================
   BLUE ALLIANCE EVENTS SECTION
   =========================== */

.blue-alliance-events {
    padding: var(--spacing-section) 0;
    background-color: var(--light-bg);
}

.blue-alliance-events .container {
    padding-top: var(--spacing-lg);
}

/* Compact version for index page */
.blue-alliance-events-compact {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
}

.blue-alliance-events-compact .container {
    padding-top: 0;
}

.events-compact-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 0 var(--spacing-xs) 0;
    text-align: center;
}

.events-compact-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--secondary-text);
    text-align: center;
    margin: 0 0 var(--spacing-md) 0;
}

.events-compact-subtitle a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.events-compact-subtitle a:hover {
    text-decoration: underline;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.events-container-compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.events-container-compact .event-card {
    padding: var(--spacing-sm);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(2, 26, 201, 0.12);
    transform: translateY(-4px);
}

.events-container-compact .event-card:hover {
    box-shadow: 0 4px 12px rgba(2, 26, 201, 0.15);
    transform: translateY(-2px);
}

.event-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.3;
}

.events-container-compact .event-name {
    font-size: 14px;
}

.event-dates {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--secondary-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.events-container-compact .event-dates {
    font-size: 12px;
}

.event-dates::before {
    content: '📅';
    font-size: 14px;
    flex-shrink: 0;
}

.events-container-compact .event-dates::before {
    font-size: 12px;
}

.event-location {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--secondary-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.events-container-compact .event-location {
    font-size: 12px;
}

.event-location::before {
    content: '📍';
    font-size: 14px;
    flex-shrink: 0;
}

.events-container-compact .event-location::before {
    font-size: 12px;
}

.event-status {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.event-status.upcoming {
    background-color: #e3f2fd;
    color: #1976d2;
}

.event-status.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.event-status.completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.event-link {
    display: inline-block;
    margin-top: auto;
}

.event-link .btn {
    width: 100%;
    font-size: 13px;
    padding: 8px 12px;
}

.events-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--secondary-text);
    font-family: var(--font-secondary);
}

.events-error {
    grid-column: 1 / -1;
    background-color: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: var(--spacing-lg);
    color: #c62828;
    font-family: var(--font-secondary);
}

.events-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .event-name {
        font-size: 16px;
    }
}

/* ===========================
   ROBOT ARCHIVES SECTION
   =========================== */

.robot-archives {
    padding: var(--spacing-section) 0;
    background-color: var(--white);
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.archive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    gap: var(--spacing-sm);
}

.archive-card:hover {
    background: linear-gradient(135deg, #e8eef7 0%, #d4dce8 100%);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 26, 201, 0.15);
}

.archive-year {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.archive-game {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.3;
}

.archive-link {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
}

.archive-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

@media (max-width: 768px) {
    .archives-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .archive-year {
        font-size: 18px;
    }
    
    .archive-game {
        font-size: 12px;
    }
    
    .archive-link {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Add a spin animation to decorative and background gear icons so the previously static gears rotate */
.gear-decoration .gear-icon,
.gear-background .gear-icon {
    animation: gear-spin 40s linear infinite;
}

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

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-details {
    padding: var(--spacing-xxl) 0;
    background-color: var(--light-bg);
}

.contact-intro {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro .section-title {
    margin-bottom: var(--spacing-md);
    font-size: 48px;
}

.section-subtitle {
    color: var(--secondary-text);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0015a0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
    stroke-width: 2;
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
    font-family: var(--font-secondary);
}

.contact-description {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.contact-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--primary-blue);
}

.contact-address {
    color: var(--primary-text);
    font-size: 16px;
    line-height: 1.8;
}

/* CONTACT FORM SECTION */
.contact-form-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.form-content h2 {
    margin-bottom: var(--spacing-md);
    font-size: 40px;
}

.contact-form {
    margin-top: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
    font-family: var(--font-secondary);
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--primary-text);
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 26, 201, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--secondary-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form .btn {
    margin-top: var(--spacing-md);
    align-self: flex-start;
}

.form-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .contact-intro .section-title {
        font-size: 36px;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-content h2 {
        font-size: 32px;
    }
    
    .contact-form-section {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-details {
        padding: var(--spacing-xl) 0;
    }
}

