/* === DESIGN TOKENS === */
:root {
  /* Theme Variables — unified across all pages */
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);

  --text-main: #ECECEC;
  --text-muted: #94A3B8;

  /* Brand Accents */
  --accent-cyan: #00E5FF;
  --accent-amber: #FFB020;
  --accent-glow: 0 0 20px rgba(0, 229, 255, 0.3);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Animation */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(255, 176, 32, 0.16), transparent 60%),
    radial-gradient(700px 520px at 30% 100%, rgba(0, 229, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled *,
  body.cursor-enabled *::before,
  body.cursor-enabled *::after {
    cursor: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === VISUAL FX === */

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Background Layers */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.court-lines {
  position: absolute;
  inset: -10%;
  opacity: 0.15;
  transform: rotate(-5deg);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

/* Noise Texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.w-full { width: 100%; }
.h-screen { height: 100vh; }
.page-layer { position: relative; z-index: 1; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: 0.5rem; }

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

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

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

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--surface);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 16px;
  right: 16px;
  z-index: 140;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(12px);
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.mobile-nav a:hover { background: var(--surface-hover); }

.form-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  gap: 8px;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.btn.primary {
  background: var(--text-main);
  color: #000;
  border-color: var(--text-main);
}

.btn.primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--accent-glow);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* === SECTIONS === */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

section::before,
section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

section::before {
  inset: -30% -10%;
  background:
    radial-gradient(500px 260px at 15% 20%, rgba(0, 229, 255, 0.12), transparent 70%),
    radial-gradient(460px 240px at 85% 80%, rgba(255, 176, 32, 0.1), transparent 72%);
  opacity: 0.55;
  animation: section-glow-drift 14s ease-in-out infinite alternate;
}

section::after {
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  opacity: 0.08;
  transform: translateX(-16%);
}

section:hover::before {
  opacity: 0.8;
  transform: scale(1.02);
}

section:hover::after {
  opacity: 0.16;
  transform: translateX(16%);
}

section>.container {
  position: relative;
  z-index: 1;
}

@keyframes section-glow-drift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}

/* === HERO SECTION === */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

h1 {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.text-cycle-wrap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  white-space: nowrap;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-cycle-word {
  display: inline-block;
  color: var(--text-main);
  font-weight: 700;
  filter: blur(0);
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
  will-change: transform, opacity, filter;
}

.text-cycle-word.is-exiting {
  transform: translateY(14px);
  opacity: 0;
  filter: blur(6px);
}

.text-cycle-word.is-entering {
  transform: translateY(-14px);
  opacity: 0;
  filter: blur(6px);
}

.text-cycle-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* === GLOW CARDS === */
.glow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.glow-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 1px;
  min-height: 240px;
  background: linear-gradient(120deg,
    rgba(221, 123, 187, 0.8),
    rgba(215, 159, 30, 0.8),
    rgba(90, 146, 44, 0.8),
    rgba(76, 120, 148, 0.8));
  background-size: 200% 200%;
  animation: glow-shift 8s linear infinite;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -120% -20% auto;
  height: 180%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: glow-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.glow-card-inner {
  position: relative;
  z-index: 1;
  background: rgba(8, 11, 18, 0.94);
  border-radius: 19px;
  min-height: 238px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glow-card-media {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(1.1) contrast(1.04);
}

.glow-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glow-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  margin-bottom: 2px;
}

.glow-card h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.glow-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes glow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes glow-sheen {
  0%, 100% { transform: translateX(-45%) rotate(16deg); }
  50% { transform: translateX(45%) rotate(16deg); }
}

/* === ABOUT / BIO === */
.about-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
}

.hero-image-wrap {
  position: sticky;
  top: 100px;
  width: 100%;
  aspect-ratio: 1/1;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
  border-radius: 30px;
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.bio-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.bio-text p strong {
  color: var(--text-main);
  font-weight: 600;
}

/* === CARDS === */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  background: var(--surface-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tags — styled as passive labels, not buttons */
.tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
  user-select: none;
}

/* === SKILLS === */
.skill-bar {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.skill-pip {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}

.skill-pip.fill { background: var(--accent-cyan); }
.skill-pip.fill-amber { background: var(--accent-amber); }

/* === SERVICES & PROOF === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.pricing {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.pricing strong { color: var(--text-main); }

.stat {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.stat .num {
  font-size: 22px;
  font-weight: 800;
}

.stat .label {
  font-size: 12px;
  color: var(--text-muted);
}

.quote {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
}

.quote small {
  display: block;
  color: var(--text-muted);
  margin-top: 10px;
}

/* === TESTIMONIALS === */
.testimonials-shell {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}

.testimonials-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: testimonial-marquee 42s linear infinite;
  will-change: transform;
}

.testimonials-shell:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonial-card {
  width: min(320px, 82vw);
  border-radius: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  padding: 18px;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.35);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 176, 32, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.testimonial-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

.testimonial-handle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.testimonials-fade-left,
.testimonials-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
}

.testimonials-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0));
}

.testimonials-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0));
}

@keyframes testimonial-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

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

/* === FORMS === */
input,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

/* === MOBILE === */
@media (max-width: 1024px) {
  .brand-links { display: none; }

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

  .hero-image-wrap {
    position: relative;
    top: 0;
    max-width: 300px;
    margin: 0 auto;
  }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .nav-links-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .cursor-dot,
  .cursor-outline { display: none; }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  * { cursor: auto; }

  .testimonials-track { animation-duration: 56s; }

  .testimonials-fade-left,
  .testimonials-fade-right { display: none; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-outline { display: none !important; }

  section::before { animation: none !important; }

  .testimonials-track {
    animation: none !important;
    transform: none !important;
    width: 100%;
    flex-wrap: wrap;
  }
}
