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

:root {
  --bg: #FAF9F7;
  --bg-alt: #F2F0EB;
  --ink: #1A1714;
  --ink-soft: #5A5652;
  --ink-muted: #9B968F;
  --accent: #3B2FD9;
  --accent-lt: #EAE8FC;
  --accent-glow: rgba(59, 47, 217, 0.15);
  --gold: #C9A84C;
  --card-bg: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 16px rgba(26, 23, 20, 0.07);
  --shadow-lg: 0 8px 48px rgba(26, 23, 20, 0.12);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 540px;
}

.section-header {
  margin-bottom: 64px;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #2e24b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 47, 217, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 23, 20, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-color: rgba(26, 23, 20, 0.08);
  box-shadow: 0 2px 24px rgba(26, 23, 20, 0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 400;
}

.dot {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  background: #2e24b8;
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 47, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 47, 217, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -150px;
  background: radial-gradient(circle, rgba(59, 47, 217, 0.12), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  left: -100px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1), transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-lt);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-skills span {
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--ink-muted));
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(0.6);
  }
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-avatar-wrap {
  position: relative;
  width: 280px;
  height: 340px;
}

.about-avatar {
  width: 220px;
  height: 260px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, #6C63FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.about-stat-card {
  position: absolute;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.card-1 {
  bottom: -18px;
  right: -18px;
}

.card-2 {
  top: -90px;
  left: -18px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.about-bio {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-bio strong {
  color: var(--ink);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.skill-item {
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lt);
}

.skill-icon {
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 47, 217, 0.15);
}

.service-card--featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.service-card--featured h3,
.service-card--featured .service-duration,
.service-card--featured .service-list li {
  color: rgba(255, 255, 255, 0.9);
}

.service-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 48px rgba(59, 47, 217, 0.3);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.service-duration {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.service-card--featured .service-list li::before {
  color: rgba(255, 255, 255, 0.7);
}

.service-btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.service-card--featured .service-btn {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-btn:hover {
  opacity: 0.75;
}

/* ─────────────────────────────────────────────
   PROJECTS
───────────────────────────────────────────── */
.projects {
  background: var(--bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-tag {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.project-card>p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-stack span {
  background: var(--bg-alt);
  border: 1px solid rgba(26, 23, 20, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.project-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 16px 20px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-item strong {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.highlight-item span {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
}

.highlight-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card>p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-lt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact {
  background: var(--bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lt);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-link strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.contact-link span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.contact-cta-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  top: 20px;
}

.cta-decoration {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 47, 217, 0.4), transparent 70%);
  pointer-events: none;
}

.contact-cta-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-cta-card h3 em {
  color: rgba(201, 168, 76, 0.9);
}

.contact-cta-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.65;
}

.contact-cta-card .btn-primary {
  background: var(--accent);
  font-size: 1rem;
}

.cta-note {
  margin-top: 14px !important;
  text-align: center;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-bottom: 0 !important;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.footer-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids */
.services-grid .service-card:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(3) {
  transition-delay: 0.2s;
}

.projects-grid .project-card:nth-child(2) {
  transition-delay: 0.1s;
}

.testimonials-grid .testimonial-card:nth-child(2) {
  transition-delay: 0.1s;
}

.testimonials-grid .testimonial-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* ─────────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 16px 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    margin: 8px 24px;
    text-align: center;
    border-radius: var(--radius);
    padding: 12px 24px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-avatar-wrap {
    width: 200px;
    height: 260px;
    margin: 0 auto;
  }

  .about-avatar {
    width: 160px;
    height: 200px;
  }

  .card-1 {
    right: 0;
    bottom: 20px;
  }

  .card-2 {
    left: 0;
    top: 10px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cta-card {
    top: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card,
  .project-card {
    padding: 28px 24px;
  }

  .contact-cta-card {
    padding: 36px 28px;
  }

  .about-avatar-wrap {
    width: 160px;
    height: 200px;
  }

  .about-avatar {
    width: 120px;
    height: 150px;
  }

  .card-1 {
    bottom: 10px;
    right: -5px;
  }

  .card-2 {
    top: 5px;
    left: -5px;
  }
}