*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #0c0c0d;
  color: #f3f3f3;
  font-family: 'Poppins', 'Roboto', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid #151515;
  backdrop-filter: blur(10px);
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-bar a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #8f9298;
  letter-spacing: 0.2px;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.nav-bar a:hover,
.nav-bar a:focus-visible {
  color: #0ad5c7;
}

.nav-bar .active {
  color: #0ad5c7;
  font-weight: 700;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 12px;

  color: #021313;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.15s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
}

/* General layout */
main {
  width: 100%;
}

section {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

h2 {
  font-size: 1.9rem;
  color: #f3f3f3;
  margin: 0 0 28px 0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-lead {
  color: whitesmoke;
  margin: -10px auto 32px;
  max-width: 760px;
}

/* Hero */
#hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0;
  text-align: left;
  overflow: hidden;
}

.hero-ambient {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  color: whitesmoke;
  letter-spacing: 0.4px;
  font-weight: 500;
  margin: 0;
}

.hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0;
}

#hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  color: #0ad5c7;
  margin: 0 0 22px 0;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #2b2b2b;
  font-weight: 700;
  color: #f3f3f3;
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: #0ad5c7;
  border-color: #0ad5c7;
  color: #0c0c0c;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px);
}

.btn.ghost {
  color: whitesmoke;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  color: #0ad5c7;
  border-color: #0ad5c7;
}

/* Portfolio */
#portfolio {
  text-align: center;
}

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

.project-box {
  background: #111;
  border: 1px solid #191919;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #0f0f10, #151515);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-box a {
  text-decoration: none;
  color: #f3f3f3;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  padding: 16px;
  display: block;
}

.project-box:hover {
  transform: translateY(-4px);
  border-color: #0ad5c7;
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.5);
}

.project-box:hover a {
  color: #0ad5c7;
}

/* About */
#about {
  text-align: center;
}

.about-container {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 18px;
  padding: 28px 26px 32px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: whitesmoke;
}


.about-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.about-copy p {
  margin: 0;
  color: whitesmoke;
}

/* Skills */
#skills {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.skill-box {
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 16px;
  padding: 20px 12px 24px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skill-ring {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f0f10;
  border: 1px solid #1c1c1c;
  position: relative;
  padding: 12px;
  box-shadow: inset 0 0 0 2px #121212, 0 12px 22px rgba(0, 0, 0, 0.3);
}

.skill-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.skill-ring span {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0f0f10;
  color: #f3f3f3;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 0 1px #232323;
}

.skill-name {
  color: #f1f1f1;
  font-weight: 600;
  margin: 0;
}

.skill-box.p100 .skill-ring,
.skill-box.p85 .skill-ring,
.skill-box.p70 .skill-ring,
.skill-box.p60 .skill-ring {
  background: #0f0f10;
}

/* Contact */
#contact {
  text-align: center;
}

.contact-me {
  background-color: #0f0f10;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  margin-top: 2rem;
  border: 1px solid #1c1c1c;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #c8c9cd;
  align-items: center;
  align-self: center;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid #3c3c54;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #c8c9cd;
}

.contact-info__headline {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.contact-info__email {
  color: #f3f3f3;
  font-weight: 700;
  text-decoration: none;
}

.contact-info__email:hover,
.contact-info__email:focus-visible {
  text-decoration: underline;
}

.contact-info__subtext {
  margin: 0;
  color: whitesmoke;
}

.contact-form-wrapper {
  background: #0f0f10;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid #1b1b1c;
}

.contact-form-wrapper h2 {
  margin: 0 0 1.25rem 0;
  color: #f3f3f3;
  background: none;
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form__group label {
  font-size: 0.95rem;
  color: #d1d1d3;
}

.contact-form__group input,
.contact-form__group textarea {
  border: none;
  border-bottom: 1px solid #333;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 1rem;
  color: #f3f3f3;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-bottom-color: #0ad5c7;
}

.contact-form__group textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form__group--full {
  width: 100%;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.contact-form button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  background: linear-gradient(145deg, #11f0e0, #0ad5c7);
  color: #0c0c0d;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 213, 199, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 213, 199, 0.3);
}

.contact-form button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(10, 213, 199, 0.28);
}

.response-container {
  margin-top: 1.25rem;
  background-color: #111;
  border-radius: 0.75rem;
  padding: 1.25rem;
  width: min(36rem, 90vw);
  margin-left: auto;
  margin-right: auto;
  color: #f3f3f3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid #1a1a1a;
}

/* Footer */
footer {
  background-color: #0a0a0a;
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid #151515;
  color: whitesmoke;
  margin-top: 80px;
}

/* Utility */
.hideAll,
.response-container {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  #hero {
    padding: 80px 0 100px;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .nav-cta {
    align-self: flex-end;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  section {
    width: min(100%, 100% - 32px);
    padding: 40px 0;
  }

  .nav-links {
    gap: 16px;
  }

  #hero {
    min-height: 60vh;
    padding-top: 40px;
  }

  #hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .contact-me {
    padding: 2rem 1.25rem;
  }
}
