/* ================================================================
   PORTFOLIO — Your Name | UI/UX Designer & Frontend Developer
   style.css
================================================================ */

/* ── CSS Variables ── */
:root {
  --bg:           #F8F6F3;
  --bg-alt:       #EFECE7;
  --text:         #1C1B19;
  --text-muted:   #7A776F;
  --border:       #E3DED7;
  --white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --nav-h:        76px;
  --max-w:        1200px;
  --section-gap:  120px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ================================================================
   SCROLL ANIMATION CLASSES
================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.85s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(248, 246, 243, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.05); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.55; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-links a {
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-contact {
  border-bottom: 1px solid var(--text) !important;
}
.nav-contact::after { display: none !important; }
.nav-contact:hover { opacity: 0.55; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}
.mobile-menu a:hover { opacity: 0.35; }

/* ================================================================
   HOME — HERO
================================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  padding-left: 60px;
  padding-right: 60px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 0 60px;
}
.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroIn 0.85s 0.1s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 840px;
  opacity: 0;
  animation: heroIn 0.9s 0.25s forwards;
}
.hero-title em { font-style: italic; font-weight: 300; }

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.85;
  margin-bottom: 48px;
  opacity: 0;
  animation: heroIn 0.9s 0.42s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  transition: gap var(--transition), opacity var(--transition);
  opacity: 0;
  animation: heroIn 0.9s 0.58s forwards;
}
.hero-cta:hover { gap: 20px; opacity: 0.5; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PROJECTS SECTION  (used on index + projects page)
================================================================ */
.projects-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px var(--section-gap);
}
.section-label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

/* ── Project Card ── */
.project-card {
  display: grid;
  grid-template-columns: 55% 45%;
  border-bottom: 1px solid var(--border);
  min-height: 500px;
}
.project-card.reverse {
  grid-template-columns: 45% 55%;
}
.project-card.reverse .project-image { order: 2; }
.project-card.reverse .project-info  { order: 1; }

.project-image {
  overflow: hidden;
  position: relative;
  alignment-self:center;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-image img { transform: scale(1.05); }

/* Placeholder gradient blocks (replace with real images) */
.img-ph {
  width: 100%; height: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.img-ph span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,27,25,0.35);
}
.ph-1 { background: linear-gradient(140deg, #D9D5CE 0%, #C2BDB5 100%); }
.ph-2 { background: linear-gradient(140deg, #D0CEC9 0%, #BCBAB4 100%); }
.ph-3 { background: linear-gradient(140deg, #CCCAC5 0%, #B8B6B0 100%); }
.ph-4 { background: linear-gradient(140deg, #D5D1CB 0%, #C0BCB6 100%); }

.project-info {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.project-tags li {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 2px;
}
.project-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.project-info h2 a { transition: opacity var(--transition); }
.project-info h2 a:hover { opacity: 0.45; }
.project-info p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 380px;
}
.view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  width: fit-content;
  transition: gap var(--transition), opacity var(--transition);
}
.view-link:hover { gap: 18px; opacity: 0.5; }

/* ================================================================
   ABOUT PAGE
================================================================ */
.about-hero {
  min-height: 80vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.about-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}
.about-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 600px;
  opacity: 0;
  animation: heroIn 0.9s 0.2s forwards;
}
.about-headline em { font-style: italic; font-weight: 300; }

.about-portrait {
  opacity: 0;
  animation: heroIn 0.9s 0.4s forwards;
}
.portrait-img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.portrait-ph {
  width: 100%;
  background: linear-gradient(155deg, #D5D1CB 0%, #C0BCBA 55%, #B4B0AE 100%);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.portrait-ph span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,27,25,0.35);
}

/* About content */
.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
}
.about-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.about-col {
  padding: 68px 0;
}
.about-col + .about-col {
  padding-left: 72px;
  border-left: 1px solid var(--border);
}

.col-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.bio-text p {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 18px;
  justify-content:center;
}
.bio-text p:last-child { margin-bottom: 0; }

/* Skills list */
.skill-list li {
  font-size: 0.93rem;
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* Tools list */
.tools-list li {
  font-size: 0.93rem;
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tools-list li:last-child { border-bottom: none; }

/* Education */
.edu-table { width: 100%; border-collapse: collapse; }
.edu-table tr { border-bottom: 1px solid var(--border); }
.edu-table tr:last-child { border-bottom: none; }
.edu-table td {
  padding: 18px 0;
  font-size: 0.9rem;
  font-weight: 300;
  vertical-align: top;
  line-height: 1.55;
}
.edu-table td:first-child {
  font-weight: 500;
  width: 58%;
  padding-right: 20px;
}
.edu-table td:last-child { color: var(--text-muted); }

/* Resume CTA */
.resume-cta {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--border);
}
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform 0.2s;
}
.btn-primary:hover { background: #3A3835; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-left: 14px;
  transition: background var(--transition), color var(--transition), transform 0.2s;
}
.btn-outline:hover { background: var(--text); color: var(--bg); transform: translateY(-1px); }

/* ================================================================
   LET'S CHAT SECTION
================================================================ */
.chat-section {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 110px 60px;
}
.chat-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,246,243,0.45);
  margin-bottom: 22px;
}
.chat-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 48px;
}
.btn-chat {
  display: inline-block;
  padding: 16px 44px;
  border: 1px solid rgba(248,246,243,0.3);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-chat:hover {
  background: rgba(248,246,243,0.1);
  border-color: var(--bg);
  transform: translateY(-1px);
}

/* ================================================================
   PROJECTS PAGE HERO
================================================================ */
.page-hero {
  padding-top: var(--nav-h);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 60px 64px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  opacity: 0;
  animation: heroIn 0.9s 0.2s forwards;
}
.page-hero h1 em { font-style: italic; font-weight: 300; }
.page-hero p {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 22px;
  max-width: 480px;
  line-height: 1.8;
  opacity: 0;
  animation: heroIn 0.9s 0.37s forwards;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer p {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color var(--transition), opacity var(--transition);
}
.site-footer a:hover { border-color: var(--text); opacity: 0.65; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: none;
  padding-bottom: 0;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); opacity: 1; }

/* ================================================================
   RESPONSIVE — Tablet  ≤960px
================================================================ */
@media (max-width: 960px) {
  .navbar { padding: 0 36px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 0 36px; }
  .hero-inner { padding: 60px 0 44px; }

  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 60px 36px;
  }
  .about-portrait { max-width: 300px; }

  .about-body { padding: 0 36px; }
  .about-row { grid-template-columns: 1fr; }
  .about-col + .about-col { padding-left: 0; border-left: none; border-top: 1px solid var(--border); }

  .projects-section { padding: 0 36px var(--section-gap); }
  .page-hero-inner { padding: 60px 36px 52px; }

  .project-card,
  .project-card.reverse {
    grid-template-columns: 1fr;
  }
  .project-card.reverse .project-image { order: 0; }
  .project-card.reverse .project-info  { order: 1; }

  .project-image { min-height: 300px; }
  .img-ph { min-height: 300px; }
  .project-info { padding: 44px 36px; }

  .chat-section { padding: 80px 36px; }
  .site-footer { padding: 28px 36px; }
  .resume-cta { padding: 48px 0 64px; }
}

/* ================================================================
   RESPONSIVE — Mobile  ≤560px
================================================================ */
@media (max-width: 560px) {
  :root { --section-gap: 80px; }

  .navbar { padding: 0 22px; }
  .hero { padding: 0 22px; }
  .about-hero-inner { padding: 44px 22px; }
  .about-body { padding: 0 22px; }
  .projects-section { padding: 0 22px var(--section-gap); }
  .page-hero-inner { padding: 44px 22px 40px; }
  .project-info { padding: 36px 22px; }
  .chat-section { padding: 60px 22px; }
  .site-footer { padding: 22px; flex-direction: column; align-items: flex-start; }

  .btn-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
  .edu-table td:first-child { width: 52%; }
}
