/* ====================================
   JavidTech — Premium Design System
   ==================================== */

:root {
  /* Deep color palette */
  --bg-0: #050508;
  --bg-1: #0a0a12;
  --bg-2: #0f0f1a;
  --bg-card: rgba(15, 15, 30, 0.6);
  --bg-glass: rgba(15, 15, 30, 0.45);
  --border: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.03);
  --border-hover: rgba(120, 119, 255, 0.3);

  --text: #eeeef0;
  --text-2: #b0b0c0;
  --text-3: #6e6e82;

  --accent: #7877ff;
  --accent-2: #a5a4ff;
  --accent-glow: rgba(120, 119, 255, 0.12);
  --cyan: #00e5ff;
  --magenta: #d946ef;
  --green: #10b981;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

::selection {
  background: rgba(120, 119, 255, 0.3);
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--cyan));
  border-radius: 10px;
}

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(120, 119, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.35s var(--ease), background 0.35s var(--ease),
              opacity 0.35s var(--ease);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(120, 119, 255, 0.6);
  background: rgba(120, 119, 255, 0.08);
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease),
              background 0.2s var(--ease);
}
.cursor-dot.hovering {
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

@media (hover: none) {
  .cursor, .cursor-dot { display: none !important; }
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loader-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  animation: loaderSlide 1s var(--ease) forwards;
  transform-origin: left;
}
@keyframes loaderSlide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(120, 119, 255, 0.3), 0 4px 20px rgba(120, 119, 255, 0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, var(--cyan));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(120, 119, 255, 0.5), 0 8px 32px rgba(120, 119, 255, 0.35);
}
.btn-primary span,
.btn-primary svg { position: relative; z-index: 1; }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-hover);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 0.82rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(120, 119, 255, 0.2);
}
.btn-nav:hover {
  box-shadow: 0 4px 24px rgba(120, 119, 255, 0.4);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }
.btn-arrow {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}
.logo-j {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  margin-right: 6px;
}
.logo-rest { color: var(--text); }
.logo-accent { color: var(--accent-2); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-3);
  transition: color 0.3s var(--ease);
  overflow: hidden;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 32px 32px;
  gap: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 16px 0;
  color: var(--text-2);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  cursor: pointer;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--text); padding-left: 8px; }

/* ===== HERO ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 119, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 119, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(120, 119, 255, 0.2), transparent 70%);
  top: -30%; left: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
  bottom: -20%; right: -5%;
  animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.1), transparent 70%);
  top: 40%; right: 30%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 60px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -40px) scale(1.05); }
  66% { transform: translate(30px, -60px) scale(0.9); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.1s forwards;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pingDot 2s ease-out infinite;
}
@keyframes pingDot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 1.2s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 1.35s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 1.5s; }

@keyframes lineReveal {
  to { transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--magenta) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  font-style: normal;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-3);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-1);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 30px;
}
.section-header {
  margin-bottom: 40px;
}

/* ===== GLASS CARDS ===== */
.glass-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(120, 119, 255, 0.15), transparent 40%, transparent 60%, rgba(0, 229, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.glass-card:hover::before { opacity: 1; }

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.glass-card:hover .card-spotlight { opacity: 1; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.about-text {
  color: var(--text-2);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.terminal-card {
  background: rgba(10, 10, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-dots { display: flex; gap: 8px; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td.red { background: #ff5f57; }
.td.yellow { background: #febc2e; }
.td.green { background: #28c840; }
.terminal-title { font-size: 0.75rem; color: var(--text-3); font-family: monospace; }
.terminal-body { padding: 24px; font-family: monospace; font-size: 0.85rem; color: var(--text-2); display: flex; flex-direction: column; gap: 12px; }
.t-prompt { color: var(--green); margin-right: 8px; }
.t-key { color: var(--accent-2); margin-right: 12px; }
.t-val.highlight { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.4); }
.cursor-blink .t-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(120, 119, 255, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.service-icon-wrap svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.1rem; }
.service-card p { font-size: 0.85rem; color: var(--text-3); }

/* ===== PORTFOLIO ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}
.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.work-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.work-img { width: 100%; height: 100%; object-fit: cover; }
.work-overlay {
  position: absolute; inset: 0; background: rgba(5,5,8,0.7); opacity: 0;
  transition: opacity 0.4s var(--ease); display: flex; align-items: center; justify-content: center;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-visit-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: #fff; color: #000;
  border-radius: 30px; font-weight: 600; font-size: 0.9rem; transform: translateY(20px); transition: transform 0.4s var(--ease);
}
.work-card:hover .work-visit-btn { transform: translateY(0); }
.work-visit-btn svg { width: 16px; height: 16px; }
.work-title { font-size: 1.4rem; font-family: var(--font-display); margin-bottom: 8px; }
.work-desc { font-size: 0.95rem; color: var(--text-2); margin-bottom: 16px; }
.work-tags { display: flex; gap: 8px; }
.work-tags span { font-size: 0.75rem; padding: 4px 12px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 20px; color: var(--text-3); }
.work-placeholder { background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.placeholder-icon { display:flex; justify-content:center; align-items:center; margin-bottom: 12px;}
.placeholder-icon svg { width: 40px; height: 40px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(120, 119, 255, 0.1);
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-right: 16px;
}
.contact-link-item { display: flex; align-items: center; margin-bottom: 24px; }
.cl-label { display: block; font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.cl-value { display: block; font-size: 1.05rem; font-weight: 500; }
.form-card { padding: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
  width: 100%; background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; color: var(--text); font-family: var(--font); font-size: 0.95rem; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

/* --- NO SCROLL SPA OVERRIDES --- */
body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* STRICT NO SCROLLING */
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - 80px); /* Fill remaining space below nav */
}

.global-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: scale(0.98) translateY(20px);
  visibility: hidden;
}

.section.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
  visibility: visible;
}

.nav {
    position: relative !important;
}

@media (max-height: 850px) {
  .section-title { font-size: 2rem; margin-bottom: 20px; }
  .about-grid { gap: 40px; }
  .service-card { padding: 1.5rem; gap: 8px;}
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px;}
  .form-card { padding: 24px; }
  .contact-grid { gap: 40px; }
  .contact-form { gap: 12px; }
  .work-grid { gap: 16px; }
  .work-img-wrap { height: 180px; }
}
