/* =============================
   VERTEX RACING — PREMIUM DARK UI
   ============================= */

:root {
  --bg: #000000;
  --bg-soft: #111111;
  --card: #141414;
  --text: #ffffff;
  --muted: #a1a1a1;
  --accent: #229063;
  --accent-soft: rgba(34,144,99,0.18);
  --border: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 120%; /* desktop scaling */
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
/* =============================
   LOGO FIX
   ============================= */

   /* 1. Stilul de bază (se aplică pe laptopuri/desktopuri) */
  .imagine-fixa {
    position: fixed;
    bottom: 30px;
    right: 50px;
    width: 70px;
    height: auto;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    /* Stiluri vizuale */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    
    /* Ne asigurăm că e vizibil implicit */
    
  }

  .imagine-fixa:hover {
    transform: scale(2);
    transition: 0.5s;
  }



/* =============================
   LAYOUT
   ============================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================
   HEADER / NAV
   ============================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

h2 {
  color: #229063;
}

.mainimg {
	width: 216px;
	height: 100.8px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}

.brand {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin: 2px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* === DESKTOP NAV === */

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.cta {
  background: linear-gradient(135deg, var(--accent), #2bb57a);
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  font-weight: 800;
  border: 0;
  box-shadow: 0 10px 30px rgba(34,144,99,0.35);
  cursor: pointer;
}

/* =============================
   HAMBURGER (MOBILE)
   ============================= */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2000;
}

.menu-toggle span {
  position: absolute;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 29px; }

/* =============================
   HERO
   ============================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.1em;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* =============================
   CARDS / SECTIONS
   ============================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.card p {
  color: var(--muted);
  margin-bottom: 1em;
  line-height: 1.6;
}

/* =============================
   FOOTER
   ============================= */

footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0;
  color: var(--muted);
}

/* =============================
   SCROLL / REVEAL ANIMATIONS
   ============================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* STAGGER DELAYS */
.reveal.delay-1 { transition-delay: 0.2s; }
.reveal.delay-2 { transition-delay: 0.4s; }
.reveal.delay-3 { transition-delay: 0.6s; }

/* =============================
   TYPOGRAPHY / SPACING
   ============================= */

h1, h2, h3 {
  margin-bottom: 0.8em;
}

p {
  margin-bottom: 1.1em;
}

.section-text p:last-child,
.hero p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
}



/* raport original: 1154 x 521 ≈ 2.21 */
@media (max-width: 768px) {

.brand {
    background: transparent;
    border: none;
    height: 38.59px;
    width:auto;
    padding: 0 0.95rem; /* spațiu lateral */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand img {
  	    height: 100%;       /* ocupă toată înălțimea containerului */
    width: auto;        /* păstrează raportul original */
    object-fit: contain; 
    border-radius: 12px;
  }

}

@media (hover: hover) and (pointer: fine) {
  .imagine-fixa:hover {
    transform: scale(2);
  }
}

@media (pointer: coarse) {
  .imagine-fixa {
    display: none;
  }
}




@media (max-width: 768px) {

  html {
    font-size: 100%;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(11,11,11,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2rem;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .card {
    margin: 0.75rem 0;
    padding: 1.25rem;
  }

  .navbar {
    position: relative;
  }
  .navbar {
    justify-content: flex-start;
    align-items: center;       /* centrare verticală */
  }

  /* LOGO – primul */
  .brand {
    z-index:100;
  }

  /* MENU – al doilea */
   .menu-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }

  /* CONTACT – ultimul */
  .cta {
    margin-left: auto;
  }
   .mainimg {
    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 520px) {
  .btn {
    width: 100%;
    text-align: center;
  }
}
