* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #e6e6eb;
  background: #22242b;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 16px;
  background: transparent;
  z-index: 10;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  padding: 16px;
  background: rgba(34, 36, 43, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #22242b;
}

/* Photo always fills the hero, centered */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/pp.jpeg") center / cover no-repeat;
}

/* Dark overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 28, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 16px;
  transform: translateY(15vh);
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  z-index: 1;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-down span {
  width: 4px;
  height: 8px;
  margin-top: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* About */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.about {
  padding: 120px 0;
  background: #22242b;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 16px auto 0;
}

.about-content {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-content p {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
}

.skills li {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s;
}

.skills li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Projects */
.projects {
  padding: 120px 0;
  background: #2a2c35;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #33363f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 20px;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: opacity 0.2s, border-color 0.2s;
}

.project-links a:hover {
  opacity: 1;
  border-color: #fff;
}

/* Contact */
.contact {
  padding: 120px 0;
  background: #22242b;
  text-align: center;
}

.contact-text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.85;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  opacity: 0.85;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #1d1f25;
}

@media (max-width: 600px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

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

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

  .about,
  .projects,
  .contact {
    padding: 80px 0;
  }


  .section-title {
    font-size: 28px;
  }

  .about-content p {
    font-size: 16px;
  }
}
