/* =========================
   RESET & BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #efe4d8;
  color: #111;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 1000;
  color: #fff;
  transition: transform 0.3s ease;
}

.navbar.hide {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: rgba(239, 228, 216, 0.85);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #fff;
}

.nav-links a {
  font-size: 15px;
  opacity: 0.8;
  color: #fff;
}

.nav-links a:hover {
  opacity: 1;
}

/* =========================
   MAIN CONTAINER
========================= */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 140px 40px 0;
}

/* =========================
   HERO
========================= */

.headline {
  text-align: center;
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 50px;
  line-height: 1.3;
}

/* =========================
   FEATURED
========================= */

.featured {
  text-align: center;
  margin-bottom: 80px;
}

.featured img {
  max-width: 600px;
  margin: auto;
  border-radius: 12px;
  background: #ddd;
}

.caption {
  margin-top: 12px;
  font-size: 25px;
  font-weight: 700;
  color: #444;
}

/* =========================
   PROJECTS
========================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-bottom: 100px;
}

.project {
  text-align: center;
}

.project img {
  border-radius: 14px;
}

.project p {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
}

/* =========================
   ABOUT
========================= */

.about {
  margin-top: 200px;
}

.about h2 {
  font-size: 50px;
  margin-bottom: 40px;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: center;
}

.about-text p {
  font-size: 22px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 320px;
  border-radius: 16px;
  filter: grayscale(100%);
}

/* =========================
   SKILLS
========================= */

.skills {
  margin-top: 140px;
}

.skills-title {
  font-size: 50px;
  margin-bottom: 50px;
}

.skill-item {
  border-bottom: 1px solid #999;
  padding: 24px 0;
}

.skill-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
}

.skill-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.skill-content.open {
  max-height: 300px;
  margin-top: 20px;
}

/* =========================
   CONTACT (FULL WIDTH)
========================= */

.contact {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 80px 0;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.contact-label {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-heading {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 50px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-link {
  font-size: 18px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 1;
  transform: translateX(6px);
}

/* =========================
   MOBILE FIXES (NO OVERLAP)
========================= */

@media (max-width: 768px) {

  /* Navbar */
  .nav-links {
    display: none;
    color: #fff;
  }

  .nav-container {
    padding: 16px 20px;
    color: #fff;
  }

  /* Container */
  .container {
    padding: 90px 20px 0;
  }

  /* Projects */
  .projects {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About */
  .about {
    margin-top: 100px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  /* Skills */
  .skills {
    margin-top: 100px;
  }

  .skill-header {
    font-size: 22px;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .contact-heading {
    margin-top: 20px;
  }
}
@media (max-width: 768px) {

  .featured img,
  .project img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .featured {
    overflow: hidden;
  }
}
@media (max-width: 768px) {

  .contact {
    overflow-x: hidden;
  }

  .contact-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .contact-heading {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
  }
}
