:root {
    --bg-main:#ffffff;
    --bg-alt:#f5f7fb;
    --text-main:#0f172a;
    --text-muted:#475569;
    --accent:#2563eb;
    --border:#e5e7eb;
  }
  
  body.dark {
    --bg-main:#0b1220;
    --bg-alt:#0f172a;
    --text-main:#e5e7eb;
    --text-muted:#94a3b8;
    --border:#1e293b;
  }
  
  *{margin:0;padding:0;box-sizing:border-box}
  
  body{
    font-family:'Inter',sans-serif;
    background:var(--bg-main);
    color:var(--text-main);
    transition:.3s;
  }
  
  body::before{
    content:"";
    position:fixed;
    inset:0;
    background-image:radial-gradient(rgba(37,99,235,.08) 1px,transparent 1px);
    background-size:40px 40px;
    pointer-events:none;
    z-index:-1;
  }
  
  .container{max-width:1100px;margin:auto;padding:0 24px}
  
  /* NAVBAR */
  .navbar{
    position:sticky;top:0;
    background:var(--bg-main);
    border-bottom:1px solid var(--border);
    z-index:100;
  }
  .nav-content{display:flex;justify-content:space-between;align-items:center;height:70px}
  .nav-links{display:flex;gap:20px;list-style:none}
  .nav-links a{text-decoration:none;color:var(--text-main);font-weight:500}
  .logo{font-weight:700}
  #themeToggle{border:none;background:none;cursor:pointer}
  
  /* HERO */
  .hero{
    min-height:85vh;
    background:url("https://images.unsplash.com/photo-1581092160607-ee22621dd758") center/cover;
    position:relative;
    display:flex;
    align-items:center;
  }
  .hero-overlay{
    position:absolute;inset:0;
    background:linear-gradient(135deg,rgba(15,23,42,.75),rgba(15,23,42,.4));
  }
  .hero-content{position:relative;z-index:2}
  .hero h1{font-size:3.5rem;color:white}
  .subtitle{color:#e5e7eb;max-width:700px}
  .badge{background:rgba(255,255,255,.2);color:white;padding:6px 14px;border-radius:20px}
  
  /* ANIM */
  .animate{opacity:0;transform:translateY(40px);transition:.8s}
  .animate.visible{opacity:1;transform:none}
  
  /* SECTIUNI */
  .section{padding:90px 0;position:relative}
  .section.alt{background:var(--bg-alt)}
  .section h2{font-size:2.2rem;margin-bottom:30px}
  .section-divider{height:120px;background:linear-gradient(to bottom,transparent,var(--bg-alt))}
  
  /* CARDS */
  .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:24px}
  .card{
    background:var(--bg-main);
    padding:28px;
    border-radius:14px;
    border:1px solid var(--border);
    transition:.3s;
  }
  .card:hover{transform:translateY(-8px)}
  
  /* ===== TIMELINE CLEAN & PRO ===== */

.timeline-wrapper {
    position: relative;
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
  }
  
  .timeline-axis {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      var(--accent),
      #60a5fa
    );
    transform: translateY(-50%);
    z-index: 1;
  }
  
  .timeline-event {
    position: relative;
    z-index: 2;
    text-align: center;
  }
  
  .timeline-dot {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 0 6px rgba(37,99,235,0.15);
  }
  
  .timeline-card {
    margin-top: 24px;
    background: var(--bg-main);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
  }
  
  .timeline-card:hover {
    transform: translateY(-6px);
  }
  
  .timeline-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .timeline-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .timeline-wrapper {
      grid-template-columns: 1fr;
    }
  
    .timeline-axis {
      display: none;
    }
  
    .timeline-event {
      text-align: left;
    }
  
    .timeline-dot {
      margin-left: 0;
    }
  
    .timeline-card {
      margin-top: 12px;
    }
  }
  
  
  /* REGULAMENT */
  .regulament-text{
    background:var(--bg-main);
    padding:40px;
    border-radius:16px;
    border:1px solid var(--border);
    box-shadow:0 25px 50px rgba(0,0,0,.05);
  }
  .regulament-text p{margin-bottom:20px;color:var(--text-muted)}
  
  /* SPONSORI */
  .sponsors-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:30px;
  }
  .sponsor-card{
    height:120px;
    border-radius:14px;
    border:1px dashed var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
  }
  
  /* FORM */
  .form-wrapper{
    border-radius:14px;
    overflow:hidden;
    border:1px solid var(--border);
  }
  
  /* FOOTER */
  footer{
    padding:40px 0;
    text-align:center;
    border-top:1px solid var(--border);
    color:var(--text-muted);
  }

  .htech {
    font-weight: 700;
    color: #dc2626; /* roșu elegant, nu agresiv */
  }
  
  .prize-highlight {
    margin: 24px auto 24px auto; /* mai puțin spațiu sus și jos */
    padding: 28px 20px;
    max-width: 700px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(
      135deg,
      rgba(37,99,235,0.08),
      rgba(220,38,38,0.08)
    );
    border: 1px solid var(--border);
  }
  
  
  .prize-highlight p {
    font-size: 1.05rem;
    font-weight: 500;
  }
  





  /* =========================
   MOBILE FIXES ONLY
   ========================= */
@media (max-width: 768px) {

  /* GENERAL */
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  /* NAVBAR */
  .nav-links {
    display: none; /* simplu și curat pe mobile */
  }

  /* HERO */
  .hero {
    min-height: 70vh;
    text-align: left;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  /* DESPRE + REGULAMENT TEXT */
  .regulament-text {
    padding: 24px;
  }

  /* PRIZE HIGHLIGHT */
  .prize-highlight {
    padding: 20px 16px;
    margin: 20px auto;
  }

  .prize-highlight p {
    font-size: 1rem;
  }

  /* CARDS */
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  /* TIMELINE */
  .timeline-wrapper {
    margin-top: 40px;
    gap: 24px;
  }

  .timeline-event {
    text-align: left;
  }

  .timeline-card {
    padding: 18px;
  }

  /* SPONSORI */
  .sponsors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sponsor-card {
    height: 90px;
    font-size: 0.9rem;
  }

  /* FOOTER */
  footer {
    padding: 30px 0;
    font-size: 0.85rem;
  }
}
