/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', system-ui, sans-serif;
  --black: #0f0f0f;
  --dark: #1a1a1a;
  --mid: #555;
  --light: #888;
  --muted: #aaa;
  --border: #e5e5e5;
  --bg: #f7f4f0;
  --white: #fdfcfb;
  --nav-h: 56px;
  --accent: #1a9e7a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 0.875rem;
  color: var(--light);
  font-weight: 400;
  transition: color 0.15s;
  padding: 2px 0;
}
.nav-link:hover { color: var(--black); }
.nav-link.active { color: var(--black); font-weight: 500; }

.nav-sep {
  color: var(--border);
  font-size: 0.875rem;
  user-select: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  z-index: 99;
  padding: 20px 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
}

/* ===== PILL BUTTON ===== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.pill-btn:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, #ede8e1 0%, #e4ddd4 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  max-width: 700px;
  z-index: 1;
}

.hero-photo-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 32px;
  background: #ddd;
  flex-shrink: 0;
  position: relative;
}
.hero-photo-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  background: #e0e0e0;
}

.hero-deco {
  position: absolute;
  font-size: 2.2rem;
  color: #c0c0c0;
  font-weight: 400;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}
.deco-left { left: 0; top: 45%; }
.deco-right { right: 0; top: 40%; animation-delay: 1.5s; font-size: 2.8rem; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--mid);
  animation: blink 0.7s step-end infinite;
  transition: opacity 0.4s;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 80px 0 100px;
  background: var(--white);
}

.projects-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.project-row:last-child { border-bottom: 1px solid var(--border); }
a.project-row { border-top: 1px solid var(--border); }
a.project-row + a.project-row { border-top: 1px solid var(--border); }
.projects-footer { border-top: 1px solid var(--border); }

.project-img-box {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  position: relative;
  border: 1px solid var(--border);
}
.project-img-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 8px;
}
.img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ede8e1, #ddd6cc);
}
.img-fallback span {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0,0,0,0.1);
  letter-spacing: -0.05em;
}

/* Clickable project row */
a.project-row {
  display: grid;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border-radius: 12px;
  margin: 0 -16px;
  padding: 48px 16px;
}
a.project-row:hover { background: var(--bg); }
a.project-row:hover .project-img-box img { transform: scale(1.03); }
a.project-row:hover .project-cta { color: var(--black); }

.project-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light);
  transition: color 0.2s;
  margin-top: 4px;
  display: inline-block;
}

/* Document placeholder */
.project-img-doc {
  background: var(--bg) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.doc-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--light);
}
.doc-preview svg { color: var(--mid); }
.bykees-logo-preview {
  width: 60%;
  max-width: 180px;
  height: auto;
  display: block;
  opacity: 0.85;
}
.doc-preview span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--light);
  letter-spacing: 0.04em;
}

/* View all button */
.projects-footer {
  display: flex;
  justify-content: center;
  padding: 48px 0 8px;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--mid);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.project-label svg { flex-shrink: 0; }

.project-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.project-stats {
  display: flex;
  gap: 32px;
}
.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}
.stat span {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.4;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, #ede8e1 0%, #e4ddd4 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.about-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px 72px;
  position: relative;
  z-index: 1;
}

.about-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #ddd;
  position: relative;
  border: 1px solid var(--border);
}
.about-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.about-photo-wrap .photo-fallback {
  font-size: 2.5rem;
  background: #e0e0e0;
}

.about-greeting {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-bio {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 16px;
}
.about-bio strong { color: var(--dark); font-weight: 600; }

.about-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 640px;
}

/* EXPERIENCE */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}
.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.exp-info { flex: 1; }
.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 16px;
}
.exp-header strong {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--black);
}
.exp-date {
  font-size: 0.8rem;
  color: var(--light);
  white-space: nowrap;
}
.exp-role {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 6px;
}
.exp-desc {
  font-size: 0.875rem;
  color: var(--light);
  line-height: 1.65;
}
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.exp-bullets li {
  font-size: 0.875rem;
  color: var(--light);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  color: var(--dark);
}
.skill-icon svg { display: block; flex-shrink: 0; }
.skill-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.skill-card p {
  font-size: 0.8rem;
  color: var(--light);
  line-height: 1.5;
}

.about-cta-section .project-row {
  border-top: none;
  border-bottom: none;
  padding-top: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 40px;
  text-align: center;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.footer-top > p {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-email-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-center { padding: 48px 20px; }
  .hero-bg-shape { display: none; }
  .hero-deco { display: none; }

  .projects-wrap { padding: 0 20px; }
  .project-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .about-intro { padding: 48px 20px 56px; }
  .about-wrap { padding: 0 20px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 2px; }

  .footer { padding: 48px 20px; }
  .footer-top > p { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .project-stats { gap: 20px; flex-wrap: wrap; }
  .skills-grid { grid-template-columns: 1fr; }
}
