* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── WAVE TEXT ── */
.wave-text {
  display: inline-flex;
}

.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  pointer-events: none;
}

.char {
  display: inline-block;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.char--top {
  transform: translateY(0%);
}

.char--bot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(105%);
  pointer-events: none;
}

.wave-text:hover .char--top {
  transform: translateY(-105%);
}

.wave-text:hover .char--bot {
  transform: translateY(0%);
}

/* ── MENU OVERLAY ── */
/* z-index 100 — deliberately below header (101) so nav stays clickable */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 3rem 3rem;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.dark .menu-overlay {
  background-color: rgba(10, 10, 10, 0.6);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex: 1;
}

.menu-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.25;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.menu-link::before {
  content: attr(data-num);
  font-size: 0.65rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.menu-link:hover {
  opacity: 1;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-footer .socials {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu-footer .socials li a {
  color: inherit;
  display: flex;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.menu-footer .socials li a:hover {
  opacity: 1;
}

#menu-copyright {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* ── NAV ── */
/* z-index 101 — always above overlay so MENU/CLOSE button is always clickable */
header {
  position: relative;
  z-index: 101;
}

nav ul {
  padding: 2rem 3rem;
  font-size: 0.8rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
}

#logo-text {
  text-decoration: none;
  color: inherit;
  font-family: "Zeyada", cursive;
  font-size: 1.4rem;
}

#theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#dark-btn-main,
#light-btn-main,
#menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: inherit;
  letter-spacing: 0.05em;
}

nav ul li a {
  color: inherit;
  text-decoration: none;
}

/* ── MAIN ── */
main {
  flex: 1;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 6rem 3rem 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
}

.hero-name {
  font-family: "Zeyada", cursive;
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.08;
  text-align: center;
  user-select: none;
}

.hero-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.hero-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.hero-location {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

/* ── WORK LIST ── */
.work {
  padding: 0 3rem 5rem;
}

.project-list {
  list-style: none;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
  font-size: 0.9rem;
}

.project-number {
  opacity: 0.35;
  font-size: 0.7rem;
}

.project-name {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.project-type {
  opacity: 0.45;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.project-item a {
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.project-item a:hover {
  opacity: 1;
}

/* ── FEATURED PROJECT ── */
.featured {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 2rem 3rem 8rem;
  align-items: start;
}

.featured-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.35;
  margin-bottom: 1.5rem;
}

.featured-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.featured-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.6;
  margin-bottom: 2rem;
}

.featured-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.featured-link:hover {
  opacity: 1;
}

.featured-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.featured-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── SKILLS ── */
.skills {
  padding: 2rem 3rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.35;
  margin-bottom: 3rem;
  align-self: flex-start;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 800px;
}

.skill-group-title {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-bottom: 1.25rem;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-group ul li {
  font-size: 1.1rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

/* ── CONTACT ── */
.contact {
  padding: 2rem 3rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-label {
  align-self: flex-start;
}



.contact-form {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0.6rem 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: inherit;
  outline: none;
  width: 100%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  opacity: 1;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  opacity: 0.4;
  color: inherit;
}

.form-field select option {
  background-color: #ffffff;
  color: #000000;
}

body.dark .form-field select option {
  background-color: #0a0a0a;
  color: #ffffff;
}

.form-field textarea {
  resize: none;
}

.form-submit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: inherit;
  padding: 0;
  align-self: flex-start;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  opacity: 1;
}

.form-status {
  font-size: 0.8rem;
  opacity: 0.6;
  min-height: 1.2rem;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

#copyright {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.socials {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.socials li a {
  color: inherit;
  display: flex;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.socials li a:hover {
  opacity: 1;
}

#curtain-1,
#curtain-2 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transform: translateY(0%);
}

#curtain-1 {
  z-index: 998;
  background-color: #d0d0d0;
  animation: curtain-slide 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.3s forwards;
}

#curtain-2 {
  z-index: 999;
  background-color: #707070;
  animation: curtain-slide 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.1s forwards;
}

body.dark #curtain-1 {
  background-color: #404040;
}

body.dark #curtain-2 {
  background-color: #000000;
}

@keyframes curtain-slide {
  to {
    transform: translateY(100%);
  }
}
svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ── DARK MODE ── */
body.dark {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul {
    padding: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .menu-overlay {
    padding: 5rem 1.5rem 2rem;
  }

  .menu-links {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .work, .skills, .contact {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .featured {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem 5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
}


section {
  padding : 4rem;
}
.contact-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 4rem 0;
  margin : auto;
}