/* =========================
   ROOT
========================= */

:root{

  --cor-primaria:#ff2d55;
  --cor-secundaria:#ff5f7e;

  --cor-fundo:#050816;
  --cor-card:#111827;

  --cor-branca:#ffffff;

  --transition:0.4s;

}

/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;

  box-sizing:border-box;

  font-family:Arial, Helvetica, sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:
  linear-gradient(
    180deg,
    #020617,
    #0f172a
  );

  color:var(--cor-branca);

  overflow-x:hidden;
}

/* =========================
   HEADER
========================= */

.header{
  position:fixed;

  top:0;
  left:0;

  width:100%;

  z-index:1000;

  backdrop-filter:blur(12px);

  background:
  rgba(5,8,22,0.7);

  border-bottom:
  1px solid rgba(255,255,255,0.08);

  animation:fadeDown 1s ease;
}

.navbar{
  max-width:1200px;

  margin:auto;

  padding:20px;

  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* =========================
   LOGO
========================= */

.logo{
  color:white;

  text-decoration:none;

  font-size:2rem;

  font-weight:bold;

  letter-spacing:2px;

  transition:0.4s;
}

.logo span{
  color:var(--cor-primaria);
}

.logo:hover{
  transform:scale(1.05);
}

/* =========================
   MENU
========================= */

.nav-links{
  display:flex;

  gap:35px;

  list-style:none;
}

.nav-links a{
  position:relative;

  color:white;

  text-decoration:none;

  transition:0.3s;
}

.nav-links a::after{
  content:"";

  position:absolute;

  left:0;
  bottom:-8px;

  width:0%;
  height:2px;

  background:var(--cor-primaria);

  transition:0.4s;
}

.nav-links a:hover{
  color:var(--cor-primaria);
}

.nav-links a:hover::after,
.nav-links .active::after{
  width:100%;
}

/* =========================
   HAMBURGUER
========================= */

.hamburger{
  display:none;

  flex-direction:column;

  gap:5px;

  cursor:pointer;
}

.hamburger span{
  width:28px;
  height:3px;

  background:white;

  border-radius:10px;

  transition:0.4s;
}

/* =========================
   HERO
========================= */

.hero{
  position:relative;

  width:100%;
  height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  text-align:center;

  overflow:hidden;

  background:
  linear-gradient(
    rgba(0,0,0,0.7),
    rgba(5,8,22,0.95)
  ),
  url("/src/img/ferrari-banner.jpg");

  background-size:cover;
  background-position:center;
}

/* OVERLAY */

.overlay{
  position:absolute;

  inset:0;

  background:
  radial-gradient(
    circle at center,
    transparent,
    rgba(0,0,0,0.7)
  );
}

/* =========================
   GRID HERO
========================= */

.lines{
  position:absolute;

  inset:0;

  background-image:
  linear-gradient(
    rgba(255,255,255,0.03) 1px,
    transparent 1px
  ),
  linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 1px,
    transparent 1px
  );

  background-size:60px 60px;

  animation:gridMove 10s linear infinite;
}

/* =========================
   LIGHT
========================= */

.light{
  position:absolute;

  width:500px;
  height:500px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(255,45,85,0.25),
    transparent 70%
  );

  animation:pulse 5s ease infinite;
}

/* =========================
   PARTICLES
========================= */

.particles{
  position:absolute;

  inset:0;

  overflow:hidden;
}

.particles::before,
.particles::after{
  content:"";

  position:absolute;

  width:6px;
  height:6px;

  border-radius:50%;

  background:
  rgba(255,255,255,0.3);

  animation:particles 10s linear infinite;
}

.particles::after{
  left:70%;

  animation-delay:5s;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content{
  position:relative;

  z-index:10;

  max-width:800px;

  padding:20px;
}

.tag{
  display:inline-block;

  padding:12px 22px;

  border-radius:30px;

  background:
  rgba(255,255,255,0.08);

  border:
  1px solid rgba(255,255,255,0.1);

  margin-bottom:25px;

  animation:glow 3s ease infinite;
}

.hero-content h1{
  font-size:5rem;

  line-height:1.1;

  margin-bottom:25px;

  animation:fadeUp 1.2s ease;
}

.hero-content p{
  font-size:1.1rem;

  line-height:1.8;

  opacity:0.8;

  animation:fadeUp 1.5s ease;
}

/* =========================
   GALERIA
========================= */

.galeria{
  padding:120px 20px;
}

.container{
  max-width:1200px;

  margin:auto;
}

/* TITULO */

.section-title{
  text-align:center;

  margin-bottom:70px;
}

.section-title span{
  color:var(--cor-primaria);

  letter-spacing:3px;
}

.section-title h2{
  font-size:3rem;

  margin-top:10px;
}

/* GRID */

.gallery-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));

  gap:30px;
}

/* CARD */

.gallery-card{
  position:relative;

  overflow:hidden;

  border-radius:25px;

  height:500px;

  background:var(--cor-card);

  cursor:pointer;

  transition:0.5s;

  animation:cardFade 1s ease;
}

.gallery-card:hover{
  transform:
  translateY(-15px)
  scale(1.02);

  box-shadow:
  0 25px 50px rgba(0,0,0,0.4);
}

/* IMG */

.gallery-card img{
  width:100%;
  height:100%;

  object-fit:cover;

  transition:1s;
}

.gallery-card:hover img{
  transform:scale(1.1);
}

/* INFO */

.gallery-info{
  position:absolute;

  bottom:0;
  left:0;

  width:100%;

  padding:30px;

  background:
  linear-gradient(
    transparent,
    rgba(0,0,0,0.95)
  );
}

.gallery-info span{
  color:var(--cor-primaria);

  letter-spacing:3px;
}

.gallery-info h3{
  margin-top:10px;

  font-size:2rem;
}

/* =========================
   ANIMAÇÕES
========================= */

@keyframes fadeDown{

  from{
    opacity:0;
    transform:translateY(-50px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

@keyframes fadeUp{

  from{
    opacity:0;
    transform:translateY(60px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

@keyframes cardFade{

  from{
    opacity:0;
    transform:translateY(80px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

@keyframes glow{

  0%{
    box-shadow:
    0 0 10px rgba(255,45,85,0.2);
  }

  50%{
    box-shadow:
    0 0 30px rgba(255,45,85,0.6);
  }

  100%{
    box-shadow:
    0 0 10px rgba(255,45,85,0.2);
  }

}

@keyframes pulse{

  0%{
    transform:scale(1);
  }

  50%{
    transform:scale(1.2);
  }

  100%{
    transform:scale(1);
  }

}

@keyframes gridMove{

  0%{
    transform:translateY(0);
  }

  100%{
    transform:translateY(60px);
  }

}

@keyframes particles{

  0%{
    transform:
    translateY(100vh)
    scale(0);

    opacity:0;
  }

  20%{
    opacity:1;
  }

  100%{
    transform:
    translateY(-100px)
    scale(1);

    opacity:0;
  }

}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:768px){

  .hamburger{
    display:flex;

    z-index:1001;
  }

  .nav-links{
    position:fixed;

    top:0;
    right:-100%;

    width:100%;
    height:100vh;

    background:#111827;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    transition:0.5s;
  }

  .nav-links.active{
    right:0;
  }

  .hero-content h1{
    font-size:3rem;
  }

  .gallery-card{
    height:400px;
  }

}

@media(max-width:480px){

  .hero-content h1{
    font-size:2.2rem;
  }

  .section-title h2{
    font-size:2rem;
  }

}