/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
  }
  
  /* Header & Navigation */
  header {
    background: #1e1e2f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }
  
  nav a:hover,
  nav a.active {
    border-bottom: 2px solid #00bcd4;
  }
  
  /* Intro Logo Section */
  .intro-section {
    background: #fff;
    padding: 3rem 1rem;
    border-bottom: 1px solid #ddd;
  }
  
  .intro-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .robocup-logo {
    width: 150px;
    height: auto;
  }
  
  .intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .intro-text p {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
  }
  
  /* German Open Image Section */
  .german-open-section {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .german-open-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .image-overlay-top,
  .image-overlay-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
  }
  
  .image-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
  }
  
  .image-overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, #f8f9fa 0%, transparent 100%);
  }
  
  /* GIF Hero Section */
  .gif-hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
  }
  
  .gif-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .gif {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
  }
  
  .gif.active {
    opacity: 1;
    z-index: 1;
  }
  
  .gif-overlay-top,
  .gif-overlay-bottom {
    position: absolute;
    width: 100%;
    height: 80px;
    z-index: 2;
    pointer-events: none;
  }
  
  .gif-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
  }
  
  .gif-overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, #f8f9fa 0%, transparent 100%);
  }
  
  /* Countdown Section */
  .countdown-section {
    background: #40027e;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .countdown-section .banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  
  #countdown {
    margin-top: 1rem;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  
  #countdown span {
    font-weight: bold;
    font-size: 1.6rem;
    color: #00e2ff;
  }
  
  /* Tech & Sponsor Grid Layout */
  .sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .sponsor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease;
  }
  
  .sponsor-card:hover {
    transform: translateY(-5px);
  }
  
  .sponsor-header {
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
  }
  
  .sponsor-header.ros2 { color: #22314e; }
  .sponsor-header.mqtt { color: #660066; }
  .sponsor-header.yolo { color: #f9c80e; }
  .sponsor-header.python { color: #306998; }
  .sponsor-header.cpp { color: #00599c; }
  
  /* FPV Image Hero Section */
  .fpv-hero-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .fpv-hero-inner {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  .fpv-hero-inner img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
  }
  
  /* Gradients fixed */
  .fpv-gradient-top,
  .fpv-gradient-bottom {
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
    z-index: 2;
    pointer-events: none;
  }
  
  .fpv-gradient-top {
    top: 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
  }
  
  .fpv-gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, #f8f9fa 0%, transparent 100%);
  }
  
  /* Description Styles Below */
  .fpv-intro {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #444;
  }
  
  .fpv-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .fpv-list li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
  }
  
  .fpv-note {
    font-size: 1rem;
    font-style: italic;
    color: #666;
  }
  
  /* Content Section */
  .content {
    padding: 3rem 1rem;
    background: white;
    border-top: 1px solid #ddd;
  }
  
  .content h2 {
    margin-bottom: 1rem;
    color: #222;
  }
  
  .content p,
  .content ul {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .content ul {
    padding-left: 1.5rem;
  }
  
  .content ul li {
    margin-bottom: 0.75rem;
  }
  
  /* Footer */
  footer {
    background: #1e1e2f;
    color: #ddd;
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-size: 0.95rem;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .social-icons {
    display: flex;
    gap: 1.2rem;
  }
  
  .social-icons img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease;
  }
  
  .social-icons img:hover {
    transform: scale(1.15);
  }
  
  /* Warning: Section lacks heading | von Web Validator */

  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* style for gitlab section */ 

  .sponsor-header.gitlab {
    color: #fc6d26;
  }
  
  #commitList, #issuesList, #longestStreak, #mostCommentedIssue, #leaderBoard {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.5rem;
  }
  
  #commitList div,
  #issuesList div {
    margin-bottom: 0.75rem;
  }
  
  #leaderBoard ol {
    padding-left: 1.25rem;
  }
  
  canvas#activityChart {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin-top: 1rem;
  }