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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* === 2. CUSTOM PROPERTIES === */
:root {
  --color-bg:          #0D1117;
  --color-surface:     #161B22;
  --color-surface-2:   #21262D;
  --color-accent:      #00D4FF;
  --color-accent-warm: #FF6B35;
  --color-text:        #E6EDF3;
  --color-text-muted:  #8B949E;
  --color-white:       #FFFFFF;
  --color-border:      rgba(255, 255, 255, 0.08);

  --gradient-hero:   linear-gradient(135deg, #0D1117 0%, #0a1628 50%, #0D1117 100%);
  --gradient-accent: linear-gradient(135deg, #00D4FF, #0077B6);
  --gradient-warm:   linear-gradient(135deg, #FF6B35, #E84B1A);
  --gradient-card:   linear-gradient(145deg, #161B22, #1C2128);

  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
  --text-xl:   clamp(1.5rem,   3vw,   2rem);
  --text-2xl:  clamp(2rem,     4vw,   3rem);
  --text-3xl:  clamp(2.2rem,   5.5vw, 4.5rem);

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi:   600;
  --weight-bold:   700;
  --weight-black:  900;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  --max-width:   1200px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
}

/* === 3. TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: var(--weight-black);
}

/* === 4. UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semi);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(to right, #00D4FF, #00BDE8);
  color: var(--color-bg);
}
.btn--primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

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

.btn--full {
  width: 100%;
}

.btn--loading .btn__text { opacity: 0; }
.btn--loading .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 17, 23, 0.3);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

/* Tags */
.tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

/* Inline link */
.inline-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--color-white); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semi);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-sm); }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Scroll animation base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 5. NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 1.25rem;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.nav--scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: var(--weight-black);
  color: var(--color-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__logo-accent { color: var(--color-accent); }
.nav__logo:hover .nav__logo-accent { text-shadow: 0 0 12px rgba(0, 212, 255, 0.6); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: width var(--transition-base);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semi);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  transform-origin: center;
}
.nav__burger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === 6. HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-block: 6rem 4rem;
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 212, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  z-index: 0;
}

.hero__bg-grid { position: absolute; inset: 0; z-index: 0; }

/* Glowing orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: float-orb 12s ease-in-out infinite;
  z-index: 0;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 212, 255, 0.18);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 380px;
  height: 380px;
  background: rgba(255, 107, 53, 0.15);
  bottom: -80px;
  left: -80px;
  animation-delay: -5s;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.hero__headline {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__headline-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}


/* === 7. SERVICES === */
.services {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0), transparent);
  transition: background var(--transition-base);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
}

/* Featured card left-border accent */
.service-card--featured {
  border-left: 3px solid var(--color-accent);
}
.service-card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
}

.service-card__icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-card__list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card__list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* === 8. WORK / PORTFOLIO === */
.work {
  padding-block: var(--space-2xl);
  background: var(--color-surface);
  position: relative;
}

.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.work-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.work-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Browser chrome mockup */
.work-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-card__link {
  display: block;
}

.work-card__browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: #1e1e2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.work-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.work-card__dot:nth-child(1) { background: #ff5f57; }
.work-card__dot:nth-child(2) { background: #ffbd2e; }
.work-card__dot:nth-child(3) { background: #28c840; }

.work-card__url {
  flex: 1;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-align: center;
  max-width: 220px;
  margin-left: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__screen {
  flex: 1;
  height: calc(100% - 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Coffee site mockup */
.work-card__screen--coffee {
  background: #f5f0e8;
}
.work-card__screen--coffee .mock-nav {
  height: 36px;
  background: #2c2c2c;
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  gap: 0.5rem;
}
.work-card__screen--coffee .mock-nav::before {
  content: '';
  display: block;
  width: 30px;
  height: 8px;
  background: #fff;
  border-radius: 3px;
}
.work-card__screen--coffee .mock-nav::after {
  content: '';
  display: block;
  margin-left: auto;
  width: 50px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
}
.work-card__screen--coffee .mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
}
.mock-headline-bar {
  width: 70%;
  height: 14px;
  border-radius: 4px;
}
.mock-headline-bar--sm {
  width: 50%;
  height: 10px;
  border-radius: 4px;
}
.mock-btn-bar {
  width: 90px;
  height: 24px;
  border-radius: 20px;
  margin-top: 0.4rem;
}
.work-card__screen--coffee .mock-headline-bar { background: #3a2a1a; }
.work-card__screen--coffee .mock-headline-bar--sm { background: #7a6a5a; }
.work-card__screen--coffee .mock-btn-bar { background: #8B6940; }

/* Golf site mockup */
.work-card__screen--golf {
  background: linear-gradient(180deg, #1F472F 55%, #2a5c3e 100%);
}
.work-card__screen--golf .mock-nav {
  height: 36px;
  background: rgba(15, 35, 22, 0.9);
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  gap: 0.5rem;
}
.work-card__screen--golf .mock-nav::before {
  content: '';
  display: block;
  width: 30px;
  height: 8px;
  background: #D4AF37;
  border-radius: 3px;
}
.work-card__screen--golf .mock-nav::after {
  content: '';
  display: block;
  margin-left: auto;
  width: 50px;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}
.work-card__screen--golf .mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
}
.work-card__screen--golf .mock-headline-bar { background: #ffffff; }
.work-card__screen--golf .mock-headline-bar--sm { background: rgba(255,255,255,0.55); }
.work-card__screen--golf .mock-btn-bar { background: #D4AF37; }

/* Bagel site mockup */
.work-card__screen--bagel {
  background: #FAF6EE;
}
.work-card__screen--bagel .mock-nav {
  height: 36px;
  background: #3E2C1C;
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  gap: 0.5rem;
}
.work-card__screen--bagel .mock-nav::before {
  content: '';
  display: block;
  width: 30px;
  height: 8px;
  background: #E8B84B;
  border-radius: 3px;
}
.work-card__screen--bagel .mock-nav::after {
  content: '';
  display: block;
  margin-left: auto;
  width: 50px;
  height: 8px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
}
.work-card__screen--bagel .mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
}
.work-card__screen--bagel .mock-headline-bar { background: #2F2418; }
.work-card__screen--bagel .mock-headline-bar--sm { background: #8A7A64; }
.work-card__screen--bagel .mock-btn-bar { background: #C98D3F; }

/* Hover overlay */
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 3;
}
.work-card__link:hover .work-card__overlay { opacity: 1; }

.work-card__visit {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-white);
  background: rgba(13, 17, 23, 0.75);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
}

.work-card__info {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}

.work-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.work-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.work-card__cta {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.work-card__cta:hover {
  gap: 0.7rem;
  color: var(--color-white);
}

.work__more {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === 9. ABOUT === */
.about {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.about__avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 212, 255, 0.35);
  animation: spin-slow 20s linear infinite;
}

.about__avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: var(--weight-black);
  color: var(--color-bg);
  letter-spacing: -0.03em;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.about__stats {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  width: 100%;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.about__text .section-tag { margin-bottom: var(--space-sm); }
.about__text .section-title {
  text-align: left;
  margin-bottom: var(--space-md);
}

.about__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}
.about__text p:last-of-type { margin-bottom: var(--space-lg); }

/* === 10. CONTACT & FORM === */
.contact {
  padding-block: var(--space-2xl);
  background: var(--color-surface);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__detail-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.contact__detail-value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

a.contact__detail-value {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}
a.contact__detail-value:hover { color: var(--color-white); }

.contact__detail {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.contact__detail:last-child { border-bottom: none; }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B949E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  cursor: pointer;
  color: var(--color-text-muted);
}
.form-group select.has-value { color: var(--color-text); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--text-xs);
  color: #FF4444;
  min-height: 1rem;
}

.form-success {
  text-align: center;
  padding: var(--space-md);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* Submit button position context */
#submitBtn {
  position: relative;
  overflow: hidden;
}

/* === 11. FOOTER === */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.footer__brand { display: flex; flex-direction: column; gap: 0.4rem; }

.footer__logo {
  font-size: 1.25rem;
  font-weight: var(--weight-black);
  color: var(--color-white);
}
.footer__logo-accent { color: var(--color-accent); }

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
}
.footer__nav a {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.footer__nav a:hover { color: var(--color-accent); }

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
}

/* === 12. ANIMATIONS & KEYFRAMES === */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.04); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* === 13. MEDIA QUERIES === */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__burger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    font-size: var(--text-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 1050;
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--color-text);
  }

  .nav__link--cta {
    font-size: 1rem;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Work */
  .work__grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .about__text .section-title { text-align: center; }
  .about__text { display: flex; flex-direction: column; align-items: center; }
  .about__visual { order: -1; }
  .about__stats { flex-wrap: wrap; gap: var(--space-md); }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  .footer__brand { align-items: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .about__stats {
    gap: var(--space-sm);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .about__avatar-ring,
  .hero__scroll-line::after {
    animation: none;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
