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

:root {
  --bg: #0a0a0f;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);
  --glass-hover: rgba(255,255,255,0.09);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.55);
  --nav-h: 60px;
  --accent: #a78bfa;
  --accent2: #7c3aed;
  --gold: #fbbf24;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: var(--nav-h);
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 44px;
  background: linear-gradient(90deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  height: 44px;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover svg { opacity: 1 !important; }

.nav-cta {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: var(--text) !important;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s !important;
}

@media (hover: hover) {
  .nav-cta:hover { background: rgba(255,255,255,0.14) !important; }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 11px;
  margin-right: -8px;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 99;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active { background: rgba(255,255,255,0.04); color: var(--text); }

/* ── HERO ── */
#hero {
  min-height: 100dvh;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.65) 0%, rgba(10,10,15,0.80) 100%);
  z-index: 1;
}

#hero .hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
}

.hero-profile {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s forwards 0.1s;
}

.hero-form {
  flex: 0 0 400px;
  width: 400px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s forwards 0.25s;
}

.hero-form-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 65%;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .tagline {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-text .bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--muted);
}

.social-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 40px;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.social-btn:active { background: rgba(255,255,255,0.14); color: var(--text); }

@media (hover: hover) {
  .social-btn:hover { background: rgba(255,255,255,0.14); color: var(--text); }
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta-primary:active { opacity: 0.85; }

@media (hover: hover) {
  .hero-cta-primary:hover { opacity: 0.88; transform: translateY(-1px); }
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta-secondary:active { background: rgba(255,255,255,0.14); }

@media (hover: hover) {
  .hero-cta-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
}


.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-card { padding: 1.75rem; }

.form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.form-card .form-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.form-group { margin-bottom: 0.9rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}

.form-group textarea { min-height: 90px; }

.form-submit {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--text);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.form-submit:active { background: rgba(255,255,255,0.18); }

@media (hover: hover) {
  .form-submit:hover { background: rgba(255,255,255,0.18); }
}

.form-success {
  display: none;
  text-align: center;
  padding: 0.75rem;
  color: #4ade80;
  font-size: 0.9rem;
}

/* ── WORK ── */
#work {
  padding: 5rem 1.25rem;
  border-top: 1px solid var(--glass-border);
}

#work .container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.work-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.5s, transform 0.5s;
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card:active {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.18);
}

@media (hover: hover) {
  .project-card {
    transition: opacity 0.5s, transform 0.5s, border-color 0.25s, background 0.25s;
  }
  .project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,0.4);
    background: rgba(167,139,250,0.05);
  }
  .project-card:hover .card-arrow {
    background: rgba(167,139,250,0.25);
    border-color: rgba(167,139,250,0.4);
    transform: translate(2px, -2px);
  }
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card-url {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: auto;
}

.card-arrow {
  align-self: flex-end;
  margin-top: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.card-arrow svg { width: 14px; height: 14px; stroke: #fff; }

/* ── SERVICES ── */
#services {
  padding: 6rem 1.25rem;
  border-top: 1px solid var(--glass-border);
}

#services .container { max-width: 1100px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.scard {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, background 0.25s;
}

@media (hover: hover) {
  .scard:hover {
    border-color: rgba(167,139,250,0.4);
    background: rgba(167,139,250,0.06);
  }
}

.scard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.scard-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scard-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.scard-location {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.scard-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.scard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.scard-list li {
  font-size: 0.83rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.scard-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.scard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.scard-btn:active { background: rgba(255,255,255,0.16); }

@media (hover: hover) {
  .scard-btn:hover { background: rgba(255,255,255,0.16); }
}

@media (max-width: 768px) {
  #services { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── STATS ── */
#stats {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.02);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 2.5rem;
  text-align: center;
}

.stat-num {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .stats-inner { gap: 0; }
  .stat { padding: 0.6rem 1.5rem; }
  .stat-divider:nth-child(4) { display: none; }
  .stats-inner { display: grid; grid-template-columns: 1fr 1px 1fr; }
  .stat-divider { height: auto; align-self: stretch; }
}

/* ── TESTIMONIALS ── */
#testimonials {
  padding: 6rem 1.25rem;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--glass-border);
}

#testimonials .container { max-width: 1100px; margin: 0 auto; }
#testimonials .section-title { margin-bottom: 2.5rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.tcard {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s;
}

@media (hover: hover) {
  .tcard:hover { border-color: rgba(167,139,250,0.35); }
}

.tstars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 1rem;
}

.tquote {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  position: relative;
}

.tquote::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: -0.25rem;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.tauthor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tauthor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tauthor-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.tauthor-role {
  font-size: 0.76rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  #testimonials { padding: 4rem 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 44px;
  padding: 0 0.5rem;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-links a:active { color: var(--text); }

@media (hover: hover) {
  .footer-links a:hover { color: var(--text); }
}

.footer-links svg { width: 17px; height: 17px; flex-shrink: 0; }

footer p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.2);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s, transform 0.55s;
}

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

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .project-card { transition: none !important; animation: none !important; }
  .hero-profile, .hero-form { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── DESKTOP ── */
@media (min-width: 769px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 2rem; }
  .form-group input, .form-group textarea { font-size: 0.9rem; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  #hero {
    padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem;
    align-items: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hero-profile {
    align-items: center;
    gap: 1rem;
  }

  .hero-form {
    flex: none;
    width: 100%;
  }

  .hero-photo {
    width: 110px;
    height: 110px;
    min-width: 110px;
  }

  .hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 0.35rem;
  }

  .hero-text .tagline {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .hero-text .bio {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    justify-content: center;
  }

  .form-card { padding: 1.25rem; }

  #work { padding: 4rem 1.5rem 3rem; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  footer { padding: 1.75rem 1.5rem; }
}
