:root {
  --navy: #2b2b52;
  --navy-deep: #1c1c38;
  --navy-light: #3d3d68;
  --peach: #f6ddc4;
  --lavender: #d9d3de;
  --orange: #e39a63;
  --red: #d64545;
  --cream-bg: #fdfaf6;
  --text-main: #23233f;
  --text-muted: #5c5c78;
  --footer-bg: #14142b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: linear-gradient(90deg, #e0a978 0%, #8d7a94 45%, #2b2b55 100%);
}

.logo svg { display: block; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.nav-links a {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-deep);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-contact .dot { width: 6px; height: 6px; border-radius: 50%; background: #f0a860; display: inline-block; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: #fff; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #f6e2cc 0%, #ded9e2 55%, #d8d3df 100%);
  padding: 90px 24px 70px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero .subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.btn-primary {
  display: inline-block;
  background: var(--navy-light);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- GEOMETRIC GRAPHIC ---------- */
.geo-wrap {
  max-width: 900px;
  margin: 50px auto 0;
}

/* ---------- SOFTWARE / ICONS ---------- */
.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.software-block { padding: 70px 24px 20px; text-align: center; }
.icons-row { max-width: 1000px; margin: 0 auto; }

/* ---------- SKILLS ---------- */
.skills-block { padding: 60px 24px 90px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-card { text-align: center; padding: 0 10px; }
.skill-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--peach);
  font-size: 22px;
}
.skill-card h3 { font-size: 18px; margin: 0 0 10px; }
.skill-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- PROJECTS PREVIEW (home) ---------- */
.projects-preview { padding: 20px 24px 90px; }
.projects-preview .eyebrow { color: var(--text-muted); font-size: 15px; margin-bottom: 2px; }
.projects-preview h2 { font-size: 30px; margin: 0 0 40px; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.proj-card img { border-radius: 14px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(30,20,50,0.12); }
.proj-tag { color: var(--orange); font-size: 13px; font-weight: 600; }
.proj-card h3 { font-size: 18px; margin: 10px 0 8px; line-height: 1.35; }
.proj-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.proj-card a.arrow { color: var(--navy); }

/* ---------- HOBBY (home teaser) ---------- */
.hobby-block { padding: 20px 24px 100px; }
.hobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hobby-grid .eyebrow { color: var(--text-muted); font-size: 15px; margin-bottom: 4px; }
.hobby-grid h2 { font-size: 32px; margin: 0 0 20px; }
.hobby-grid p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin-bottom: 18px; }
.hobby-grid img { border-radius: 16px; box-shadow: 0 20px 40px rgba(30,20,50,0.18); }

.btn-collection {
  display: inline-block;
  background: var(--navy-deep);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
}
.btn-collection:hover { background: var(--navy-light); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--footer-bg);
  color: #cfcfe0;
  padding: 60px 24px 30px;
  text-align: center;
}
footer .footer-logo { margin-bottom: 40px; }
footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13.5px;
  color: #9797ad;
  flex-wrap: wrap;
  gap: 10px;
}
footer .footer-links { display: flex; gap: 24px; }
footer .footer-links a:hover { color: #fff; }

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  background: linear-gradient(135deg, #f6e2cc 0%, #ded9e2 55%, #d8d3df 100%);
  padding: 70px 24px 90px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-grid .eyebrow { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; }
.about-grid h1 { font-size: 46px; margin: 0 0 18px; }
.about-grid .role { font-size: 18px; color: var(--text-muted); margin-bottom: 26px; }
.about-grid p { font-size: 15.5px; line-height: 1.8; color: var(--text-main); margin-bottom: 18px; }
.about-photo { position: relative; text-align: center; }
.about-photo img { max-width: 600px; margin: 0 auto; }

/* ---------- PROJECTS PAGE ---------- */
.projects-hero {
  background: linear-gradient(135deg, #f6e2cc 0%, #ded9e2 55%, #d8d3df 100%);
  padding: 70px 24px 60px;
  text-align: center;
}
.projects-hero h1 { font-size: 48px; margin: 0 0 14px; }
.projects-hero .subtitle { font-size: 17px; color: var(--text-muted); margin-bottom: 30px; }

.project-section {
  padding: 90px 24px;
  border-bottom: 1px solid #ece6dd;
}
.project-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}
.project-inner.reverse { direction: rtl; }
.project-inner.reverse > * { direction: ltr; }

.project-text .eyebrow { color: var(--text-muted); font-size: 15px; margin-bottom: 6px; }
.project-text h2 { font-size: 30px; margin: 0 0 18px; line-height: 1.3; }
.project-text .tagline { font-weight: 600; color: var(--text-main); margin-bottom: 14px; }
.project-text p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.project-text a.hl { color: var(--orange); font-weight: 600; }

.project-media img { border-radius: 14px; box-shadow: 0 20px 45px rgba(30,20,50,0.15); margin-bottom: 20px; }
.project-media .media-sub { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; }
.project-media .media-sub img { margin-bottom: 0; }

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  background: rgba(227, 154, 99, 0.55);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-watch:hover {
  background: var(--red);
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(214,69,69,0.45);
}

.btn-see {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  background: var(--navy-deep);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--navy-deep);
  transition: background 0.25s ease;
}
.btn-see:hover { background: var(--navy-light); }

/* ---------- PHOTOGRAPHY PAGE ---------- */
.photo-hero {
  background: linear-gradient(135deg, #f6e2cc 0%, #ded9e2 55%, #d8d3df 100%);
  padding: 70px 24px 60px;
  text-align: center;
}
.photo-hero h1 { font-size: 46px; margin: 0 0 12px; }

.photo-gallery {
  padding: 50px 24px 100px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 26px;
}
.photo-card { cursor: pointer; }
.photo-card img {
  border-radius: 8px;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 14px;
  transition: transform 0.35s ease;
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card h3 { font-size: 16px; margin: 0 0 6px; }
.photo-card .loc-type { color: var(--orange); font-size: 13.5px; margin-bottom: 10px; }
.photo-card .meta { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 8px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,20,40,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 82vw;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-prev { left: 30px; }
.lightbox .lb-next { right: 30px; }
.lightbox .lb-close {
  position: absolute; top: 24px; right: 30px;
  background: none; border: none; color: #fff; font-size: 30px; cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid, .project-inner, .project-inner.reverse { grid-template-columns: 1fr; direction: ltr; }
  .hobby-grid { grid-template-columns: 1fr; }
  .skills-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1, .about-grid h1, .projects-hero h1, .photo-hero h1 { font-size: 34px; }
  .navbar { padding: 18px 20px; }
  .skills-grid, .proj-grid, .photo-gallery { grid-template-columns: 1fr; }
  .project-media .media-sub { grid-template-columns: 1fr; }
}
