*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #18181B;
  --white: #faf7f5;
  --gray-50: #f7f7f5;
  --gray-100: #f0f0ee;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-800: #27272a;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-bg: #faf5ff;
  --purple-dark: #7c3aed;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,245,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); }
.nav-socials { display: flex; gap: 16px; align-items: center; }
.nav-socials a {
  color: var(--gray-400);
  transition: color 0.2s;
  display: flex;
}
.nav-socials a:hover { color: var(--purple); }
.nav-socials svg { width: 20px; height: 20px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-800);
}

/* ─── HERO ─── */
.hero {
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}
.hero-text h1 span { color: var(--purple); }
.hero-text p {
  font-size: 1.35rem;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--black);
  color: #ffffff;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.3s;
}
.hero-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}
.hero-cta svg {
  transition: transform 0.3s ease;
}
.hero-cta:hover svg {
  transform: translateX(4px);
}
.hero-cta.secondary {
  background: #ffffff;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.hero-cta.secondary:hover {
  border-color: var(--purple-light);
  color: var(--purple);
  background: #ffffff;
  transform: translateY(-2px);
}
.hero-photo {
  display: flex;
  justify-content: center;
}
.hero-photo .photo-wrapper {
  width: 340px;
  height: 400px;
  border-radius: 24px;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--gray-200);
}
.hero-photo .photo-wrapper::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%; right: -20%; bottom: -20%;
  background: radial-gradient(circle at center, var(--purple-light) 0%, transparent 60%);
  opacity: 0.2;
  z-index: -1;
  filter: blur(40px);
}
.hero-photo .photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SECTION SHARED ─── */
section { padding: 96px 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-label-centered {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  text-align: center;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 32px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ─── SKILLS ─── */
.skills { background: var(--gray-50); padding-bottom: 48px; }
#portfolio { padding-top: 56px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.skill-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(168,85,247,0.12);
  transform: translateY(-2px);
}
.skill-card.accent {
  background: #E2D1F3;
  border-color: #d4bffc;
}
.skill-card.accent:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(168,85,247,0.16);
}
.skill-card.accent-light {
  background: var(--purple-bg);
  border-color: #ede5f7;
}
.skill-card.accent-light:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 28px rgba(168,85,247,0.12);
}
.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}
.skill-card p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ─── PROOF (logo marquee) ─── */
#proof { padding: 40px 0; }
#proof .section-label-centered { margin-bottom: 32px; }
.proof-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.proof-marquee {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: marquee 15s linear infinite;
  width: max-content;
}
@media (pointer: fine) {
  .proof-marquee:hover {
    animation-play-state: paused;
  }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.proof-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}
.proof-logo:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}
.proof-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--black); color: #ffffff; }
.testimonials .section-label { color: var(--purple-light); }
.testimonials .section-title { color: #ffffff; }
.testimonials .section-desc { color: var(--gray-400); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--purple);
  transform: translateY(-2px);
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  display: none;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ─── PORTFOLIO ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.portfolio-thumb {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  overflow: hidden;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-info {
  padding: 20px;
}
.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 6px;
}
.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.portfolio-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ─── CONTACT ─── */
.contact { background: var(--gray-50); }
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.contact-inner .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.contact-btn svg {
  transition: transform 0.3s ease;
}
.contact-btn:hover svg {
  transform: translateX(4px);
}
.contact-btn.primary {
  background: var(--black);
  color: #ffffff;
}
.contact-btn.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}
.contact-btn.secondary {
  background: #ffffff;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.contact-btn.secondary:hover {
  border-color: var(--purple-light);
  color: var(--purple);
  transform: translateY(-2px);
}

/* ─── ABOUT PAGE ─── */
.about-hero {
  padding: 140px 0 60px;
}
.about-hero .container {
  max-width: 720px;
}
.about-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}
.about-hero h1 span { color: var(--purple); }
.about-content {
  padding: 0 0 80px;
}
.about-content .container {
  max-width: 720px;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 16px;
}
.about-content .highlight {
  background: var(--purple-bg);
  border-left: 3px solid var(--purple);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.about-content .highlight p {
  color: var(--gray-800);
  margin-bottom: 0;
}
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-200);
  margin-bottom: 32px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── FOOTER ─── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
}
footer a { color: var(--purple); }
footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  #proof { padding: 28px 0; }
  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
  }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-text p { font-size: 1.1rem; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-photo { order: -1; }
  .hero-photo .photo-wrapper { width: 240px; height: 280px; }
  .skills-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .about-hero h1 { font-size: 2rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── FADE-IN ANIMATION ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid children */
.skills-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.portfolio-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.testimonials-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
