/* ========================================
   Travanix Labs — Sci-Fi / Futuristic Theme
   Inspired by Arknights: Endfield
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0b10;
  --bg-card: #0d0e16;
  --bg-card-hover: #12131e;
  --text-primary: #e8e8f0;
  --text-secondary: #7a7a90;
  --text-muted: #4a4a5e;
  --accent: #00e5ff;
  --accent-dim: #2dd4bf;
  --accent-warm: #f0a030;
  --accent-gold: #ffb547;
  --accent-blue: #1a2a4a;
  --gradient: linear-gradient(135deg, #00e5ff, #2dd4bf, #f0a030);
  --gradient-text: linear-gradient(135deg, #00e5ff, #2dd4bf, #ffb547);
  --gradient-glow: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(240, 160, 48, 0.5));
  --border: #141828;
  --border-glow: rgba(0, 229, 255, 0.15);
  --radius: 2px;
  --radius-sm: 2px;
  --nav-height: 72px;
  --sidebar-collapsed: 64px;
  --sidebar-expanded: 220px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --clip-corner: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --clip-corner-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --clip-btn: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section__tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section__tag::before {
  content: '//';
  margin-right: 8px;
  color: var(--accent-warm);
  font-weight: 400;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 48px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  clip-path: var(--clip-btn);
  position: relative;
  border-radius: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #050508;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4), 0 0 60px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, #33eaff, #5ee0d0);
}

.btn--outline {
  border: 1.5px solid var(--border-glow);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.03);
  clip-path: var(--clip-btn);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

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

/* ========================================
   Sidebar Navigation (Endfield-style)
   ======================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed);
  height: 100vh;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar:hover {
  width: var(--sidebar-expanded);
  border-right-color: var(--border-glow);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5), 1px 0 0 rgba(0, 229, 255, 0.08);
}

/* Scan-line texture */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 229, 255, 0.01) 3px,
    rgba(0, 229, 255, 0.01) 6px
  );
  pointer-events: none;
  z-index: -1;
}

/* Glowing accent line on right edge */
.sidebar::after {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.2), rgba(240, 160, 48, 0.1), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sidebar:hover::after {
  opacity: 1;
}

/* Logo */
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  height: 64px;
  min-height: 64px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.sidebar__logo-icon {
  font-size: 1.5rem;
  min-width: 24px;
  text-align: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.sidebar__logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
}

.sidebar:hover .sidebar__logo-text {
  opacity: 1;
}

/* Links list */
.sidebar__links {
  list-style: none;
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.25s ease;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.sidebar__link:hover {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.04);
}

.sidebar__link:hover::before {
  height: 24px;
}

.sidebar__link--active {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
}

.sidebar__link--active::before {
  height: 24px;
}

.sidebar__icon {
  min-width: 22px;
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar__link:hover .sidebar__icon {
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5));
}

.sidebar__label {
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
}

.sidebar:hover .sidebar__label {
  opacity: 1;
}

/* Logo classes kept for footer */
.nav__logo {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav__logo-icon {
  font-size: 1.4rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

/* Mobile top bar (hidden on desktop) */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar__logo {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
  transition: var(--transition);
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.3);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__links a {
  display: block;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  clip-path: var(--clip-corner-sm);
  transition: var(--transition);
}

.mobile-menu__links a:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  background: rgba(0, 229, 255, 0.04);
}

/* ========================================
   Home
   ======================================== */
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 42, 74, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(240, 160, 48, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

/* Scan line overlay on home */
.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 229, 255, 0.012) 3px,
    rgba(0, 229, 255, 0.012) 6px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanLineShift 8s linear infinite;
}

@keyframes scanLineShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.home__tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.home__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.home__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating HUD elements */
.hud-float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: transform 0.1s ease-out;
  animation: hudDrift 6s ease-in-out infinite;
}

.hud-float--1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.hud-float--2 {
  top: 20%;
  right: 10%;
  animation-delay: -1.5s;
  animation-duration: 8s;
}

.hud-float--3 {
  bottom: 25%;
  left: 5%;
  animation-delay: -3s;
  animation-duration: 7s;
}

.hud-float--4 {
  top: 12%;
  right: 25%;
  animation-delay: -2s;
  animation-duration: 9s;
}

.hud-float--5 {
  bottom: 18%;
  right: 8%;
  animation-delay: -4s;
  animation-duration: 7.5s;
}

.hud-float--6 {
  top: 35%;
  left: 18%;
  animation-delay: -1s;
  animation-duration: 8.5s;
}

@keyframes hudDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hud-float {
    display: none;
  }
}

.home__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.home__scroll span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.home__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-warm));
  animation: scrollPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Services
   ======================================== */
.services {
  padding: 120px 0;
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Geometric grid pattern */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
}

/* Diagonal top transition */
.services::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(13, 14, 22, 0.8);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  clip-path: var(--clip-corner);
  backdrop-filter: blur(8px);
}

/* HUD corner brackets */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  clip-path: var(--clip-corner);
  transition: var(--transition);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0.3;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  background: rgba(18, 19, 30, 0.9);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-card:hover::after {
  opacity: 0.8;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  clip-path: var(--clip-corner-sm);
  border: 1px solid rgba(0, 229, 255, 0.1);
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Work / Portfolio
   ======================================== */
.work {
  padding: 120px 0;
  position: relative;
  background: var(--bg-primary);
}

/* Diagonal top */
.work::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-primary));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
  pointer-events: none;
}

.work__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  clip-path: var(--clip-corner);
}

/* HUD corner accent */
.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid rgba(0, 229, 255, 0.2);
  border-left: 2px solid rgba(0, 229, 255, 0.2);
  z-index: 2;
  transition: var(--transition);
  pointer-events: none;
}

.work-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid rgba(240, 160, 48, 0.15);
  border-right: 2px solid rgba(240, 160, 48, 0.15);
  z-index: 2;
  transition: var(--transition);
  pointer-events: none;
}

.work-card--wide {
  grid-row: 1 / 3;
  min-height: 100%;
}

.work-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.work-card:hover::before {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: -2px -2px 10px rgba(0, 229, 255, 0.15);
}

.work-card:hover::after {
  border-color: rgba(240, 160, 48, 0.4);
}

.work-card__overlay {
  padding: 32px;
  width: 100%;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.97) 30%, rgba(5, 5, 8, 0.6) 70%, transparent 100%);
}

.work-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-warm);
  margin-bottom: 8px;
  display: block;
}

.work-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.work-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.work-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.work-card:hover .work-card__link {
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 120px 0;
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Hex-inspired pattern */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(0, 229, 255, 0.02) 0%, transparent 50%),
    linear-gradient(60deg, rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(0, 229, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 40px 70px, 40px 70px;
  pointer-events: none;
}

/* Diagonal transition top */
.about::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
  pointer-events: none;
}

.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.about__pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-warm);
}

.about__pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.about__pillar p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 120px 0;
  position: relative;
  background: var(--bg-primary);
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(240, 160, 48, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 40%, rgba(0, 229, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

/* Diagonal top */
.contact::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-primary));
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact__detail:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.contact__detail svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: rgba(13, 14, 22, 0.8);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  clip-path: var(--clip-corner-sm);
  border-radius: 0;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.form__group select {
  cursor: pointer;
  color: var(--text-muted);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.form__group select:valid {
  color: var(--text-primary);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), inset 0 0 20px rgba(0, 229, 255, 0.03);
  background: rgba(13, 14, 22, 0.95);
}

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

.form__status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form__status--success {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.form__status--error {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 80px 0 32px;
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glow);
}

/* Tech grid pattern */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(240, 160, 48, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 160, 48, 0.008) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 100%);
}

/* Glowing top line */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), rgba(240, 160, 48, 0.15), transparent);
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.footer__col a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  position: relative;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  transform: translateY(12px);
  z-index: 900;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(13, 14, 22, 0.9);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  clip-path: var(--clip-corner-sm);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease, padding 0.3s ease;
  white-space: nowrap;
}

.back-to-top__text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.08);
  gap: 8px;
  padding: 0 20px;
}

.back-to-top:hover .back-to-top__text {
  max-width: 120px;
  opacity: 1;
}

/* ========================================
   Animations (scroll reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered card animations */
.services__grid .service-card:nth-child(1) { transition-delay: 0s; }
.services__grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services__grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services__grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services__grid .service-card:nth-child(5) { transition-delay: 0.1s; }
.services__grid .service-card:nth-child(6) { transition-delay: 0.2s; }
.services__grid .service-card:nth-child(7) { transition-delay: 0.3s; }
.services__grid .service-card:nth-child(8) { transition-delay: 0.4s; }
.services__grid .service-card:nth-child(9) { transition-delay: 0.1s; }
.services__grid .service-card:nth-child(10) { transition-delay: 0.2s; }
.services__grid .service-card:nth-child(11) { transition-delay: 0.3s; }
.services__grid .service-card:nth-child(12) { transition-delay: 0.4s; }

.work__grid .work-card:nth-child(1) { transition-delay: 0s; }
.work__grid .work-card:nth-child(2) { transition-delay: 0.15s; }
.work__grid .work-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .work-card--wide {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  /* Hide sidebar, show mobile topbar */
  .sidebar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  html {
    scroll-padding-top: var(--nav-height);
  }

  .home__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .about__pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section__title {
    margin-bottom: 36px;
  }

  /* Reduce diagonal sections on mobile */
  .services::after,
  .about::after,
  .work::before,
  .contact::after {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .home__actions {
    flex-direction: column;
  }

  .home__actions .btn {
    width: 100%;
  }

  .home__title {
    letter-spacing: 1px;
  }

  .section__title {
    letter-spacing: 0.5px;
  }
}
