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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(7, 11, 18, 0.92), rgba(7, 11, 18, 0.96)),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  color: #f4f7fb;
  line-height: 1.6;
}

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

/*! HEADER/NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.navbar {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #22c55e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.resume-button {
  border: 1px solid #22c55e;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #22c55e !important;
}

.resume-button:hover {
  background: rgba(34, 197, 94, 0.12);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.9rem;
  cursor: pointer;
}

/*! HERO */


.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}


.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 690px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.8rem, 4.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}

.hero-text {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero h1 span {
  color: #22c55e;
}


.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-image {
  position: relative;
  z-index: 1;
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;

  border: 2px solid rgba(34, 197, 94, 0.65);
  box-shadow:
    0 0 40px rgba(34, 197, 94, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.portrait-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

/*! BUTTONS */

.button {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary-button {
  background: #22c55e;
  color: #04110a;
}

.primary-button:hover {
  background: #16a34a;
}

.secondary-button {
  border: 1px solid #334155;
  color: #e2e8f0;
}

.secondary-button:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

/*! SECTIONS */

.section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.section-heading p {
  color: #94a3b8;
  font-size: 1.08rem;
}

/*! PROJECTS */

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.4rem;
  overflow: hidden;

  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(15, 23, 42, 0.95);
}

.project-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 360px;
}

.project-image {
  background: #020617;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  display: block;

  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);}

.placeholder-image {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.02em;
  background:
    linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.9)),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.project-card-content {
  padding: 2rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number {
  color: #22c55e;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.project-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.tags span {
  font-size: 0.85rem;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.project-links .project-link {
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  width: 150px;
  height: 50px;
  padding: 0;

  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);

  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;

  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.project-links .project-link iconify-icon {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.project-links .project-link span {
  line-height: 1;
}

.project-links .project-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  text-decoration: none;
}

.project-links .project-link-demo {
  background: #22c55e;
  border-color: #22c55e;
  color: #04110a;
}

.project-links .project-link-demo:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #04110a;
}

.projects-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/*! SKILLS */

.skills-section .section-heading {
  max-width: 760px;
}

.skills-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.9rem;
}
.skill-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.2rem;
  padding: 1.15rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  min-height: 120px;
  text-align: center;

  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.skill-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(15, 23, 42, 0.95);
}

.skill-item iconify-icon {
  font-size: 2.25rem;
}

.skill-item span {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.95rem;
}

.skill-item .icon-light {
  color: #e2e8f0;
}

/*! ABOUT */

.about-section {
  text-align: center;
}

.about-section .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.about-content {
  max-width: 950px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 1.12rem;
  line-height: 1.75;
}

.about-content p {
  margin-bottom: 1.2rem;
}

.about-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
/*! CONTACT */

.contact-section {
  text-align: center;
}

.contact-section .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.contact-button iconify-icon {
  font-size: 1.25rem;
}

/*! FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

/*! MOBILE */

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2.5rem;
  }

  .portrait-image {
    width: 340px;
    height: 340px;
  }

  .portrait-glow {
    width: 380px;
    height: 380px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
  }
}

@media (max-width: 900px) {
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-image {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    min-height: 240px;
  }

  .project-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 0.75rem;
    border-radius: 1rem;

    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
  }

  .nav-links a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
  }

  .resume-button {
    border: 1px solid #22c55e;
    margin-top: 0.35rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-portrait {
    order: 1;
  }

  .hero-content {
    order: 2;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .portrait-image {
    width: 260px;
    height: 260px;
  }

  .portrait-glow {
    width: 300px;
    height: 300px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 1.1rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .about-section .section-heading {
    margin-bottom: 1.5rem;
  }

  .about-content {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .project-image {
    min-height: 200px;
    padding: 0.75rem;
  }

  .project-card h3 {
    font-size: 1.6rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }
}

/*! MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  max-width: 520px;
  width: 100%;

  padding: 2.25rem;
  border-radius: 28px;

  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);

  text-align: center;
}

.modal-box h2 {
  margin-bottom: 0.9rem;
  color: #f8fafc;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.modal-box p {
  color: #cbd5e1;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;

  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;

  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: rgba(34, 197, 94, 0.7);
  color: #22c55e;
}