:root {
  --yellow: #f4d03f;
  --black: #111;
  --dark: #1c1c1c;
  --red: #e63946;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Segoe UI, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: white;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  border-bottom: 2px solid var(--yellow);
  position: sticky;
  top: 0;
  background: #000;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box {
  width: 50px;
  height: 50px;
  border: 2px dashed var(--yellow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo h2 {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: white;
}

.nav-links a:hover {
  color: var(--yellow);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 5rem;
  color: var(--yellow);
}

.hero span {
  color: var(--red);
}

.hero h3 {
  margin: 20px 0;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--red);
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

section {
  padding: 100px 8%;
}

section h2 {
  color: var(--yellow);
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: var(--dark);
  padding: 25px;
  border-top: 4px solid var(--red);
  border-radius: 10px;
  transition: .3s;
}

.card:hover {
  transform: translateY(-10px);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills span {
  border: 1px solid var(--yellow);
  padding: 10px 20px;
  border-radius: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
}

input,
textarea {
  padding: 15px;
  border: none;
  background: var(--dark);
  color: white;
}

button {
  padding: 15px;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
}

#topBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 30px;
}

@media(max-width:768px) {

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    text-align: center;
    display: none;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 3rem;
  }

    .typing-text {
      font-size: 1.5rem;
      margin: 20px 0;
      color: #fff;
    }
}