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

html {
  scroll-behavior: smooth;
}

body {
  background: #0f0f0f;
  color: #fff;
}

/* NAV */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-weight: 700;
}

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

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00f7ff;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('jj.jpg') center/cover no-repeat;
}

.hero h1 {
  font-size: 3rem;
}

.hero span {
  color: #00f7ff;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  border: 1px solid #00f7ff;
  color: #00f7ff;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #00f7ff;
  color: #000;
}

/* ABOUT */
.about {
  padding: 100px 20px;
  text-align: center;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.skill {
  background: #1a1a1a;
  padding: 10px 20px;
  border-radius: 20px;
}

/* PROJECTS */
.projects {
  padding: 100px 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card
 {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s;
    background-color: rgb(55, 68, 64);
    height: 233%;
    display: flex;
    justify-content: center;  /* horizontal alignment */
    align-items: center;      /* vertical alignment */
}

.project-card img {
  width: 100%;
  display: block;
}

.project-card:hover {
  transform: scale(1.05);
}

/* CONTACT */
.contact {
  padding: 100px 20px;
  text-align: center;
}

.contact input,
.contact textarea {
  width: 80%;
  margin: 10px auto;
  padding: 12px;
  border: none;
}

button {
  padding: 10px 20px;
  background: #00f7ff;
  border: none;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
}

/* MOBILE */
.menu-toggle {
  display: none;
  cursor: pointer;
}

@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 70px;
    background: #000;
    width: 200px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}