/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background-color: #fff;
}

html{
    scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #555;
  font-size: 15px;
  transition: color 0.3s;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #0066ff;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0066ff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  background-color: #f9f9f9;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 18px;
  color: #0066ff;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-role {
  font-size: 28px;
  font-weight: 400;
  color: #555;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 500px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  text-decoration: none;
  background-color: #0066ff;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-right: 15px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #0052cc;
}

.btn-secondary {
  text-decoration: none;
  border: 2px solid #0066ff;
  color: #0066ff;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #0066ff;
  color: #fff;
}

/* ===== ABOUT ===== */
#about {
  padding: 100px 60px;
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image img {
  width: 320px;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.section-subtitle {
  font-size: 15px;
  color: #0066ff;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 30px;
}

.skill-tag {
  background-color: #f0f5ff;
  color: #0066ff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== PROJECTS ===== */
#projects {
  padding: 100px 60px;
  background-color: #f9f9f9;
}

.projects-container {
  max-width: 1100px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.project-link {
  text-decoration: none;
  color: #0066ff;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link:hover {
  color: #0052cc;
}

/* ===== CONTACT ===== */
#contact {
  padding: 100px 60px;
  background-color: #fff;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 50px;
}

.contact-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 220px;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-item p {
  font-size: 15px;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0066ff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  border: none;
  cursor: pointer;
  width: fit-content;
}

/* ===== FOOTER ===== */
footer {
  background-color: #111;
  color: #fff;
  padding: 60px 60px 30px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-social a {
  text-decoration: none;
  color: #888;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #0066ff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  font-size: 13px;
  color: #555;
}

/* ===== TYPING CURSOR ===== */
.hero-role::after {
  content: "|";
  color: #0066ff;
  animation: blink 0.7s infinite;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #111;
  border-radius: 3px;
  transition: all 0.3s;
}

/* ===== HAMBURGER ACTIVE ===== */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* NAVBAR */
  nav {
    padding: 20px 25px;
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 15px;
  }

  /* HERO */
  #hero {
    padding: 60px 25px;
    text-align: center;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-role {
    font-size: 20px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  /* ABOUT */
  #about {
    padding: 70px 25px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 100%;
    height: 280px;
  }

  .about-skills {
    justify-content: center;
  }

  /* PROJECTS */
  #projects {
    padding: 70px 25px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  #contact {
    padding: 70px 25px;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  /* FOOTER */
  footer {
    padding: 50px 25px 25px;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.about-container,
.project-card,
.contact-wrapper,
.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.about-container.animate,
.project-card.animate,
.contact-wrapper.animate,
.section-title.animate,
.section-subtitle.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card.animate:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
}

/* Stagger project cards */
.project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.project-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* ===== FORM RESPONSE ===== */
#form-response {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}
