@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#0f172a;
  color:white;
  overflow-x:hidden;
}

/* NAVBAR */

.navbar{
  position:fixed;
  top:0;
  width:100%;

  padding:20px 60px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  background:rgba(255,255,255,0.05);

  backdrop-filter:blur(10px);

  border-bottom:1px solid rgba(255,255,255,0.1);

  z-index:1000;

  transition:0.4s ease;
}

.navbar.scrolled{
  background:rgba(15,23,42,0.9);

  box-shadow:0 8px 30px rgba(0,0,0,0.3);

  padding:15px 60px;
}

.logo{
  font-size:30px;
  font-weight:700;
  color:cyan;

  letter-spacing:1px;
}

.nav-links{
  display:flex;
  list-style:none;
  gap:35px;
}

.nav-links a{
  text-decoration:none;
  color:white;
  font-size:17px;
  position:relative;

  transition:0.3s ease;
}

/* UNDERLINE ANIMATION */

.nav-links a::after{
  content:'';

  position:absolute;
  left:0;
  bottom:-6px;

  width:0%;
  height:2px;

  background:cyan;

  transition:0.3s ease;
}

.nav-links a:hover{
  color:cyan;
}

.nav-links a:hover::after{
  width:100%;
}

/* HERO SECTION */

.hero{
  height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  text-align:center;

  padding:20px;

  background:linear-gradient(
    -45deg,
    #0f172a,
    #1e293b,
    #0ea5e9,
    #111827
  );

  background-size:400% 400%;

  animation:gradientMove 10s ease infinite;
}

@keyframes gradientMove{

  0%{
    background-position:0% 50%;
  }

  50%{
    background-position:100% 50%;
  }

  100%{
    background-position:0% 50%;
  }
}

.hero-content{
  max-width:800px;
}

.hero-content h1{
  font-size:75px;
  margin-bottom:20px;

  line-height:1.1;
}

.hero-content p{
  font-size:22px;

  line-height:1.8;

  margin-bottom:35px;

  color:#d1d5db;
}

.hero-content button{
  padding:16px 35px;

  border:none;
  border-radius:50px;

  background:cyan;
  color:black;

  font-size:18px;
  font-weight:600;

  cursor:pointer;

  transition:0.3s ease;
}

.hero-content button:hover{
  transform:translateY(-5px);

  box-shadow:0 10px 30px rgba(0,255,255,0.4);
}

/* GENERAL SECTION */

.section{
  min-height:100vh;

  padding:120px 20px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  text-align:center;

  opacity:0;
  transform:translateY(80px);

  transition:1s ease;
}

.section.show{
  opacity:1;
  transform:translateY(0);
}

.section h2{
  font-size:55px;
  margin-bottom:25px;
}

.section p{
  max-width:800px;

  font-size:20px;

  line-height:1.8;

  color:#d1d5db;
}

.dark-section{
  background:#111827;
}

/* MOBILE MENU */

.menu-toggle{
  display:none;

  font-size:30px;

  cursor:pointer;
}

/* RESPONSIVE */

@media(max-width:768px){

  .navbar{
    padding:20px;
  }

  .menu-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;

    top:80px;
    right:-100%;

    width:250px;

    background:#111827;

    flex-direction:column;

    padding:30px;

    transition:0.4s ease;
  }

  .nav-links.active{
    right:20px;
  }

  .hero-content h1{
    font-size:50px;
  }

  .hero-content p{
    font-size:18px;
  }

  .section h2{
    font-size:40px;
  }

}