/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root[data-theme="dark"] {
  --clr-bg:          #0d0d0d;
  --clr-bg-2:        #141414;
  --clr-bg-3:        #1a1a1a;
  --clr-surface:     #1e1e1e;
  --clr-surface-2:   #252525;
  --clr-border:      rgba(255,255,255,0.07);
  --clr-accent:      #e8d5a3;
  --clr-accent-2:    #c4a265;
  --clr-accent-glow: rgba(232,213,163,0.15);
  --clr-text:        #f0ece4;
  --clr-text-2:      #a09a8e;
  --clr-text-3:      #6b6560;
  --clr-white:       #ffffff;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
}

:root[data-theme="light"] {
  --clr-bg:          #ffffff;
  --clr-bg-2:        #f8f9fa;
  --clr-bg-3:        #e9ecef;
  --clr-surface:     #ffffff;
  --clr-surface-2:   #f1f3f5;
  --clr-border:      rgba(0,0,0,0.08);
  --clr-accent:      #a38e5a;
  --clr-accent-2:    #826d3e;
  --clr-accent-glow: rgba(163,142,90,0.1);
  --clr-text:        #212529;
  --clr-text-2:      #495057;
  --clr-text-3:      #adb5bd;
  --clr-white:       #000000;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
}

:root {
  --clr-star:        #e8c55a;
  --clr-red:         #e05c5c;
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --dur:  0.3s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 15px;
  transition: background-color var(--dur), color var(--dur);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-2xl) 0; }
.section-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; text-align: center; color: var(--clr-white); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  height: 70px;
  display: flex; align-items: center;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-family: var(--font-display); font-size: 1.25rem; color: var(--clr-white); }
.nav__logo img { height: 36px; width: auto; }

.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__link { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: var(--clr-text-2); transition: var(--dur); }
.nav__link:hover { color: var(--clr-accent); }

.nav__actions { display: flex; align-items: center; gap: var(--space-lg); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center; color: var(--clr-text-2);
  transition: all var(--dur);
}
.theme-toggle:hover { background: var(--clr-surface-2); color: var(--clr-accent); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { padding-top: 140px; padding-bottom: 80px; }
.hero__name { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--clr-white); margin-bottom: 1rem; }
.hero__bio { max-width: 600px; color: var(--clr-text-2); margin-bottom: 2rem; }

/* ── CARDS ───────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.portfolio-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; transition: 0.3s; cursor: pointer; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--clr-accent); }
.portfolio-card__img { aspect-ratio: 16/10; overflow: hidden; }
.portfolio-card__img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card__body { padding: 1.5rem; }
.portfolio-card__title { font-weight: 700; margin-bottom: 0.5rem; color: var(--clr-white); }
.portfolio-card__desc { font-size: 0.9rem; color: var(--clr-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── REVIEWS ─────────────────────────────────────────────── */
.review-card { background: var(--clr-bg-2); padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--clr-border); }
.review-card__stars { color: var(--clr-star); margin-bottom: 0.5rem; }
.review-card__text { font-style: italic; font-size: 0.95rem; margin-bottom: 1rem; }
.review-card__author { font-weight: 700; font-size: 0.9rem; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 2rem;
  backdrop-filter: blur(10px);
}
.modal--active { display: flex; animation: fadeIn 0.3s ease; }
.modal__content {
  background: var(--clr-bg); max-width: 1000px; width: 100%; max-height: 90vh;
  overflow-y: auto; border-radius: var(--radius-lg); position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal__close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.5);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.modal__img { width: 100%; }
.modal__body { padding: 2.5rem; }
.modal__title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.modal__desc { color: var(--clr-text-2); line-height: 1.8; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero__name { font-size: 2.5rem; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer p {
  color: var(--clr-text-2);
  font-size: 0.9rem;
}
.footer-link {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--dur);
  display: inline-block;
}
.footer-link:hover {
  color: var(--clr-white);
  transform: translateY(-1px);
  text-shadow: 0 0 10px var(--clr-accent-glow);
}
