* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f8;
  color: #0f172a;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #d9e0e8;
  backdrop-filter: blur(10px);
}

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

.nav-logo {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

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

.nav-links a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* GENERAL TEXT */

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #5b7292;
  margin: 0 0 10px 0;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 2.4rem;
}

h2 {
  color: #0f172a;
}

.intro {
  margin: 12px 0 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #44556b;
}

.subtitle {
  margin: 0 0 18px 0;
  color: #5b7292;
  font-size: 1rem;
}

.description {
  margin: 0 0 20px 0;
  color: #334155;
  line-height: 1.7;
  font-size: 1rem;
}

/* HERO SECTION */

.hero-section {
  margin-bottom: 70px;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.name {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.hero-description,
.hero-goals {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 16px;
  max-width: 820px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-primary {
  background: #0f172a;
  color: white;
}

.cta-secondary {
  background: #e8edf3;
  color: #0f172a;
  border: 1px solid #d5dde7;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.hero-image-container {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  object-fit: cover;
  background: #e5e7eb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

/* SKILLS SECTION */

.skills-section {
  margin-bottom: 70px;
}

.skills-header {
  margin-bottom: 28px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-card {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.skill-card h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
}

.skill-card p {
  margin: 0;
  color: #44556b;
  line-height: 1.65;
}

/* BACKGROUND SECTION */

.background-section {
  margin-bottom: 70px;
  scroll-margin-top: 90px;
}

.background-header {
  margin-bottom: 30px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.background-card {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.background-card h2 {
  margin: 0 0 18px 0;
}

.background-card h3 {
  margin: 0 0 6px 0;
}

.date {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 16px;
}

.experience-list {
  margin-top: 14px;
  padding-left: 20px;
}

.experience-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #334155;
}

/* PROJECTS SECTION */

.projects-section {
  scroll-margin-top: 90px;
}

.projects-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
  gap: 32px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.project-card h2 {
  margin: 0 0 6px 0;
  font-size: 1.8rem;
}

/* PROJECT IMAGE GRIDS */

.project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin-bottom: 22px;
  background: #e9edf2;
}

.project-images {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
}

.project-images img {
  width: 100%;
  max-width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  background: #e9edf2;
}

.project-images.two-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-images.three-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-images.three-images img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

.project-images.four-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* PROJECT GIFS */

.project-gifs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: -8px 0 22px 0;
}

.project-gifs-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  background: #e9edf2;
}

/* TAGS */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d5dde7;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #42556f;
  background: #f7f9fb;
}

/* CONTACT SECTION */

.contact-section {
  margin-top: 90px;
  padding: 46px 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  scroll-margin-top: 90px;
}

.contact-section p {
  max-width: 720px;
  margin: 16px auto 0;
  color: #44556b;
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e8edf3;
  border: 1px solid #d5dde7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

/* LIGHTBOX */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

#lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}

#lightbox-img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.18s ease;
}

#lightbox.active #lightbox-img {
  transform: scale(1);
}

#lightbox-caption {
  margin-top: 14px;
  max-width: 80vw;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

#prev-btn,
#next-btn,
#lightbox-close {
  position: absolute;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, transform 0.18s ease;
}

#prev-btn,
#next-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  font-size: 2rem;
  z-index: 10001;
}

#prev-btn {
  left: 24px;
}

#next-btn {
  right: 24px;
}

#lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  z-index: 10001;
}

#prev-btn:hover,
#next-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-50%) scale(1.05);
}

#lightbox-close:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: scale(1.05);
}

#lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.project-images img,
.project-image,
.hero-image {
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.project-images img:hover,
.project-image:hover,
.hero-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  filter: brightness(1.03);
}

/* TABLET */

@media (max-width: 1000px) {
  .hero-content,
  .projects-header,
  .background-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    gap: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: 280px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .container {
    padding: 32px 16px 60px;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .nav-btn {
    padding: 8px 14px;
  }

  .hero-content {
    padding: 28px;
  }

  h1 {
    font-size: 2rem;
  }

  .project-card {
    padding: 22px;
  }

  .project-card h2 {
    font-size: 1.45rem;
  }

  .project-images.two-images,
  .project-images.three-images,
  .project-images.four-images,
  .project-gifs-row {
    grid-template-columns: 1fr;
  }

  .project-images img,
  .project-images.three-images img:first-child,
  .project-gifs-row img {
    height: 220px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }

  #lightbox {
    padding: 16px;
  }

  #prev-btn,
  #next-btn {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  #prev-btn {
    left: 10px;
  }

  #next-btn {
    right: 10px;
  }

  #lightbox-close {
    top: 10px;
    right: 10px;
  }

  #lightbox-counter {
    bottom: 12px;
    font-size: 0.85rem;
  }

  #lightbox-caption {
    margin-top: 10px;
    font-size: 0.85rem;
  }
}
.contact-email {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #44556b;
  font-family: monospace;
}
/* CONTACT BUTTON (matches links style) */
.contact-btn {
  background: #0f172a;
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
@media print {
  body {
    background: white;
  }

  .navbar,
  .hero-cta,
  .contact-links,
  #lightbox {
    display: none !important;
  }

  .container {
    padding: 0;
    max-width: 100%;
  }

  .project-card,
  .background-card,
  .skill-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h1, h2 {
    page-break-after: avoid;
  }

  section {
    page-break-inside: avoid;
  }
}
