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

:root {
  --indigo: #6366F1;
  --indigo-dk: #4F46E5;
  --lavender: #EEF2FF;
  --navy: #1E1B4B;
  --gray: #6B7280;
  --gray-lt: #F9FAFB;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --success: #10B981;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--navy); text-decoration: none;
}

.nav-logo span { color: var(--indigo); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--indigo); }

.nav-cta {
  background: var(--indigo); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 9px;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--indigo-dk) !important; transform: translateY(-1px); }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding: 8rem 6% 4rem;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, #e0e7ff 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.45rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.08;
  margin-bottom: 1.2rem; max-width: 780px;
  letter-spacing: -0.04em;
}

.hero h1 .highlight { color: var(--indigo); }

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600; color: var(--gray);
  margin-bottom: 1.4rem; max-width: 700px;
  line-height: 1.55;
}

.hero-desc {
  font-size: 1rem; color: var(--gray);
  max-width: 620px; margin-bottom: 1rem; line-height: 1.75;
}
.hero-meta {
  font-size: .83rem; color: var(--gray);
  font-weight: 500; opacity: .82;
  max-width: 560px;
  margin-top: .2rem; margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary, .btn-outline {
  padding: 0.78rem 1.55rem; border-radius: 11px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: background .2s, transform .15s, border-color .2s, color .2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dk); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }

.hero-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: 0 24px 70px rgba(30,27,75,.1);
}

.code-window {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  color: #E5E7EB;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.code-header {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: #FCA5A5; }
.dot:nth-child(2) { background: #FCD34D; }
.dot:nth-child(3) { background: #86EFAC; }

.code-body { padding: 1rem; overflow-x: auto; }
.code-line { white-space: nowrap; margin-bottom: .35rem; }
.code-k { color: #A5B4FC; }
.code-s { color: #86EFAC; }
.code-c { color: #94A3B8; }

section { padding: 5rem 6%; }
.section-tag {
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800; margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.section-sub { color: var(--gray); max-width: 620px; margin-bottom: 3rem; font-size: 0.96rem; }

.trust-strip {
  padding: 1.25rem 6%;
  background: var(--navy);
  color: #E0E7FF;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.trust-strip span {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; text-align: center;
}
.trust-strip span::before { content: '✓'; color: #6EE7B7; }

.skills { background: var(--gray-lt); }
.skills-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.skill-card, .service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.45rem;
  transition: box-shadow .2s, transform .2s;
}
.skill-card:hover, .service-card:hover { box-shadow: 0 10px 28px rgba(99,102,241,.1); transform: translateY(-2px); }

.skill-icon, .service-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--lavender); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.35rem;
}

.skill-card h3, .service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 800; margin-bottom: 0.45rem;
}
.skill-card p, .service-card p { font-size: 0.86rem; color: var(--gray); line-height: 1.55; }
.skill-tags, .project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.skill-tag {
  font-size: 0.72rem; font-weight: 700;
  background: var(--lavender); color: var(--indigo);
  padding: 0.22rem 0.6rem; border-radius: 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.experience-group-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 3.5rem 0 1.5rem;
}

.experience-group-title:first-of-type {
  margin-top: 2rem;
}

.project-card {
  width: 100%;
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: box-shadow .25s, transform .25s;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-card:hover { box-shadow: 0 14px 34px rgba(99,102,241,.12); transform: translateY(-3px); }
.project-card:focus-visible {
  outline: 3px solid rgba(99,102,241,.35);
  outline-offset: 4px;
}
.project-thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.project-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  transition: transform .35s;
}
.project-card:hover .project-thumb-img { transform: scale(1.04); }
.project-meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .6rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--indigo);
  background: var(--lavender);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: .28rem .7rem;
}
.project-body { padding: 1.1rem 1.25rem 1.25rem; }
.project-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem; font-weight: 800;
  margin-bottom: .45rem; line-height: 1.25;
}
.project-body-summary {
  font-size: .84rem; color: var(--gray);
  line-height: 1.55; margin-bottom: .7rem;
}
.project-body .skill-tags { margin-top: 0; margin-bottom: .55rem; }
.project-card-footer { display: flex; justify-content: flex-end; }
.project-cta {
  color: var(--indigo); font-weight: 800;
  font-size: .78rem; white-space: nowrap;
}
.stack-tag {
  font-size: 0.72rem; font-weight: 700;
  background: var(--gray-lt); color: var(--navy);
  border: 1px solid var(--border);
  padding: 0.22rem 0.55rem; border-radius: 7px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.project-modal.is-open { display: flex; }

.project-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  width: min(1040px, 100%);
  height: calc(100vh - 4rem);
  max-height: calc(100vh - 4rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15,23,42,.3);
}

.project-modal-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--gray-lt);
  border-right: 1px solid var(--border);
}

.gallery-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  padding: 0;
  scrollbar-width: none;
  align-items: stretch;
}
.gallery-track::-webkit-scrollbar { display: none; }

.project-modal-shot {
  scroll-snap-align: start;
  flex: 0 0 100%;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: var(--white);
}

.project-modal-shot img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  opacity: 0; transition: opacity .2s;
}
.project-modal-gallery:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: var(--lavender); color: var(--indigo); }
.gallery-prev { left: .5rem; }
.gallery-next { right: .5rem; }

.project-modal-content {
  padding: 4rem 2.25rem 2.25rem;
  overflow-y: auto;
  min-height: 0;
}

.project-modal-content > h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
}

.project-modal-content > p {
  color: var(--gray);
  margin-bottom: 1.75rem;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15,23,42,.1);
}

.project-modal-close:hover { color: var(--indigo); border-color: #C7D2FE; }

.modal-country {
  display: inline-flex;
  margin-bottom: .85rem;
  padding: .3rem .7rem;
  border: 1px solid #C7D2FE;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 800;
}

.modal-section { margin-top: 1.4rem; }
.modal-section h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.modal-section p, .modal-section li {
  color: var(--gray);
  font-size: .88rem;
  line-height: 1.65;
}
.modal-section ul { padding-left: 1.2rem; }

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.about { background: var(--lavender); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.avatar-ring {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo) 0%, #818cf8 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(99,102,241,.25);
}
.avatar-initials {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem; font-weight: 800; color: #fff;
}
.floating-badge {
  position: absolute;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.62rem 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 0.5rem;
}
.fb-top { top: 10px; right: -10px; }
.fb-bottom { bottom: 10px; left: -20px; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.about-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.92rem; color: var(--navy);
}
.about-list li::before {
  content: '✓';
  width: 20px; height: 20px; min-width: 20px;
  background: var(--indigo); color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; margin-top: 1px;
}

.why { background: var(--gray-lt); }
.why-inner {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: 4rem; align-items: center;
}
.why-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.why-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 15px; padding: 1.15rem;
  display: flex; align-items: flex-start; gap: .75rem;
}
.why-check {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 8px; background: var(--lavender);
  color: var(--indigo); display: flex;
  align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}
.why-item h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .92rem; margin-bottom: .2rem;
}
.why-item p { color: var(--gray); font-size: .82rem; line-height: 1.5; }

.process { background: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.process-step {
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.65rem 1.45rem;
}
.process-number {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lavender); color: var(--indigo);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  margin-bottom: 1rem;
}
.process-step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 800;
  margin-bottom: .45rem;
}
.process-step p { font-size: .86rem; color: var(--gray); line-height: 1.6; }

.contact { background: var(--navy); color: #fff; text-align: center; }
.contact .section-tag { color: #a5b4fc; }
.contact .section-title { color: #fff; }
.contact .section-sub { color: #c7d2fe; margin: 0 auto 2.5rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  padding: 0.72rem 1.35rem; border-radius: 11px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .15s;
}
.contact-link:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.contact-email { gap: 0.6rem; }
.contact-email-text {
  color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 700;
}
.contact-email-text:hover { text-decoration: underline; }
.contact-copy-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.12);
  border: none; border-radius: 7px;
  padding: 0.3rem 0.55rem;
  color: #fff; font-family: inherit;
  font-size: 0.78rem; font-weight: 700;
  line-height: 1; cursor: pointer;
  transition: background .2s;
}
.contact-copy-btn:hover { background: rgba(255,255,255,.22); }
.contact-copy-btn.copied { background: rgba(16,185,129,.3); }
.contact-microcta {
  font-size: .9rem; color: #c7d2fe;
  margin: 0 auto 1.75rem;
  max-width: 520px;
}
a:focus-visible {
  outline: 3px solid rgba(99,102,241,.35);
  outline-offset: 4px;
}
.contact-link:focus-visible { outline-color: #A5B4FC; }

footer {
  background: var(--navy); color: #8B94C6;
  text-align: center; padding: 1.5rem 6%;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 620px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { margin-bottom: 1rem; }
  .why-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-modal { align-items: flex-start; }
  .project-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
  }
  .project-modal-gallery {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .gallery-track { padding: 3.5rem 0 0; }
  .project-modal-content { padding-top: 2rem; overflow-y: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 7rem; }
  .fb-top { right: 10px; }
  .fb-bottom { left: 10px; }
}

@media (max-width: 560px) {
  section { padding: 4rem 5%; }
  nav { padding-inline: 5%; }
  .hero { padding: 6.5rem 5% 3.5rem; gap: 2rem; }
  .hero-actions a { width: 100%; justify-content: center; }
  .trust-strip { grid-template-columns: 1fr; padding-inline: 5%; }
  .trust-strip span { justify-content: flex-start; text-align: left; }
  .projects-grid, .skills-grid, .services-grid, .process-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-card { padding: .8rem; }
  .code-window { font-size: .72rem; }
  .project-modal { align-items: flex-start; padding: .75rem; }
  .project-modal-card { border-radius: 16px; }
  .project-modal-gallery { min-height: 190px; }
  .gallery-track { padding: 3rem 0 0; }
  .project-modal-content { padding: 1.5rem 1.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
