/* =============================================
   JHV TECHNOLOGY — style.css
   Dark Cyberpunk · Neon Accent · Futuristic
============================================= */

:root {
  --bg-primary:   #020818;
  --bg-secondary: #050d24;
  --bg-card:      rgba(8, 20, 50, 0.85);
  --accent:       #00f5ff;
  --accent2:      #7c3aed;
  --accent3:      #f59e0b;
  --text-primary: #e8f0fe;
  --text-muted:   #7a8bb5;
  --border:       rgba(0, 245, 255, 0.15);
  --border-hover: rgba(0, 245, 255, 0.5);
  --glow:         0 0 30px rgba(0,245,255,0.3);
  --glow-strong:  0 0 60px rgba(0,245,255,0.5);
  --radius:       12px;
  --font-head:    'Orbitron', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- BACKGROUND CANVAS ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform 0.1s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.6;
}
body:hover .cursor-ring { opacity: 1; }

/* ---- LOADER ---- */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent), 0 0 80px var(--accent);
  animation: loaderPulse 1s ease infinite;
  letter-spacing: 0.3em;
}
@keyframes loaderPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}
.loader-bar {
  width: 300px;
  height: 2px;
  background: rgba(0,245,255,0.2);
  margin: 2rem auto 1rem;
  border-radius: 1px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: loadFill 2s ease forwards;
  box-shadow: 0 0 10px var(--accent);
}
@keyframes loadFill { to { width: 100%; } }
.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; z-index: 2;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(2, 8, 24, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}
.logo-3d {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.1em;
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--accent); background: rgba(0,245,255,0.07); }
.nav-cta {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  letter-spacing: 0.1em;
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: 0.3s;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: rgba(5, 13, 36, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.25,0.8,0.25,1);
  border-left: 1px solid var(--border);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { margin-bottom: 1rem; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ---- SECTIONS BASE ---- */
section { position: relative; z-index: 1; overflow: hidden; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0,245,255,0.05) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 60%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  max-width: 620px;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(0,245,255,0.08);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.title-line {
  display: block;
}

/* Base 3D text */
.text-3d {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 4rem); /* responsive font size */
  line-height: 1.2;
  text-align: center;

  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--accent) 50%,
    var(--accent2) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.35));

  animation: float3d 4s ease-in-out infinite;
  word-break: break-word; /* prevent overflow */
}

/* Animation */
@keyframes float3d {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .text-3d {
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .text-3d {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.25));
    animation-duration: 5s; /* smoother for mobile */
  }
}

/* Small devices */
@media (max-width: 400px) {
  .text-3d {
    font-size: 1.3rem;
    animation: none; /* disable animation for performance */
  }
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}
.stat p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-visual {
  position: absolute;
  right: 0; top: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}
#hero-canvas { width: 100%; height: 100%; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: bounce 2s ease infinite;
}
.scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(0,245,255,0.08);
  box-shadow: var(--glow);
}
.full-width { width: 100%; text-align: center; }

/* ---- MARQUEE ---- */
.marquee-strip {
  overflow: hidden;
  background: rgba(0,245,255,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  align-items: center;
}
.marquee-track span { white-space: nowrap; }
.marquee-track .dot { color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SERVICES ---- */
.services { padding: 7rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,255,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,245,255,0.1);
}
.service-card:hover::before { opacity: 1; }
.card-icon {
  width: 64px; height: 64px;
  margin-bottom: 1.5rem;
}
.icon-canvas { width: 64px; height: 64px; }
.card-number {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.card-features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.card-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.card-features li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: bold;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: letter-spacing 0.2s;
}
.card-link:hover { letter-spacing: 0.2em; }

/* ---- ABOUT ---- */
.about {
  padding: 7rem 0;
  background: var(--bg-secondary);
}
.about-bg-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#about-canvas { width: 100%; height: 100%; opacity: 0.3; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-tag { text-align: left; display: block; margin-bottom: 0.75rem; }
.about-text h2 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; margin-bottom: 1.5rem; }
.about-lead { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.af-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(0,245,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.af-icon { font-size: 1.5rem; flex-shrink: 0; }
.af-item strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; color: #fff; }
.af-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
#about-sphere { width: 100%; max-width: 480px; height: 480px; }

/* ---- PROCESS ---- */
.process { padding: 6rem 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.process-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.process-step:hover::after { transform: scaleX(1); }
.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,245,255,0.1);
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.process-step:hover .step-num { color: var(--accent); }
.process-step h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.75rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- PORTFOLIO ---- */
.portfolio { padding: 7rem 0; background: var(--bg-secondary); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.portfolio-img {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.pi-1 { background: linear-gradient(135deg, #0f2460, #0a3d62, #1a5276); }
.pi-2 { background: linear-gradient(135deg, #3d0066, #6a0dad, #9b59b6); }
.pi-3 { background: linear-gradient(135deg, #004040, #006060, #008080); }
.pi-4 { background: linear-gradient(135deg, #402000, #703000, #b36a00); }
.portfolio-item:hover .portfolio-img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,8,24,0.95) 0%, rgba(2,8,24,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0.6;
  transition: all 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.pi-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.portfolio-overlay h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.4rem; }
.portfolio-overlay p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- TESTIMONIALS ---- */
.testimonials { padding: 7rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.stars { color: var(--accent3); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.av1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.av2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.av3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.testi-author strong { display: block; font-size: 0.9rem; }
.testi-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- CTA BAND ---- */
.cta-band {
  padding: 7rem 0;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
}
.cta-bg-canvas { position: absolute; inset: 0; overflow: hidden; }
#cta-canvas { width: 100%; height: 100%; }
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta-inner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- CONTACT ---- */
.contact { padding: 7rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.ci-item strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 0.3rem; }
.ci-item p { font-size: 0.9rem; color: var(--text-muted); }
.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0,245,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group select { background-color: var(--bg-secondary); cursor: pointer; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: rgba(0,245,255,0.08);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.form-success.visible { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: #010611;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.footer-logo span { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.3em; display: block; margin-top: 2px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: all 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE — Mobile-First Breakpoints
   1024px · 768px · 480px · 360px
============================================= */

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-visual { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }

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

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

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- MOBILE (≤768px) ---- */
@media (max-width: 768px) {
  /* --- disable custom cursor on touch devices --- */
  .cursor-dot,
  .cursor-ring { display: none; }
  body { cursor: auto; }

  /* --- navbar --- */
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-container { padding: 0 1.25rem; }

  /* --- hero --- */
  .hero { padding: 7rem 1.25rem 4rem; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats {
    justify-content: center;
    gap: 1.25rem;
  }
  .stat-num { font-size: 1.6rem; }

  /* --- section spacing --- */
  .services,
  .about,
  .process,
  .portfolio,
  .testimonials,
  .cta-band,
  .contact { padding: 5rem 0; }
  .footer { padding: 4rem 0 2rem; }

  /* --- container padding --- */
  .container { padding: 0 1.25rem; }

  /* --- section header --- */
  .section-header { margin-bottom: 2.5rem; }

  /* --- services --- */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  /* --- about --- */
  .about-features { grid-template-columns: 1fr; }
  .about-text h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* --- process --- */
  .process-steps { grid-template-columns: 1fr; gap: 1rem; }
  .process-step { padding: 1.5rem 1.25rem; text-align: left; }
  .step-num { font-size: 2.2rem; }

  /* --- portfolio --- */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-overlay { opacity: 1; transform: translateY(0); }

  /* --- testimonials --- */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 2rem 1.5rem; }

  /* --- contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { gap: 1.5rem; }

  /* --- footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-social { justify-content: center; }

  /* --- loader --- */
  .loader-bar { width: 220px; }

  /* --- mobile menu panel --- */
  .mobile-menu { width: 100%; border-left: none; }
}

/* ---- SMALL MOBILE (≤480px) ---- */
@media (max-width: 480px) {
  html { font-size: 15px; }

  /* --- hero --- */
  .hero { padding: 6rem 1rem 3.5rem; }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-btns .btn { width: 100%; text-align: center; }
  .hero-stats { gap: 1rem; }
  .stat-divider { height: 30px; }

  /* --- cta --- */
  .cta-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .cta-btns .btn { width: 100%; max-width: 320px; }
  .cta-inner p { font-size: 1rem; }

  /* --- cards & forms --- */
  .service-card,
  .testimonial-card { padding: 1.5rem 1.25rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 1rem; /* prevents iOS zoom on focus */ }

  /* --- process steps horizontal scroll on very small screens --- */
  .process-step { padding: 1.25rem 1rem; }
  .step-num { font-size: 2rem; }

  /* --- portfolio aspect ratio --- */
  .portfolio-item { aspect-ratio: 4/3; }

  /* --- footer --- */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { gap: 1.75rem; }

  /* --- section header --- */
  .section-header { margin-bottom: 2rem; }
  .section-header p { font-size: 0.95rem; }
}

/* ---- EXTRA SMALL (≤360px) ---- */
@media (max-width: 360px) {
  html { font-size: 14px; }

  .nav-container { padding: 0 1rem; }
  .container { padding: 0 1rem; }

  .hero { padding: 5.5rem 1rem 3rem; }
  .logo-3d { font-size: 1.4rem; }

  .hero-stats { flex-direction: column; align-items: center; gap: 0.75rem; }
  .stat-divider { display: none; }

  .service-card,
  .testimonial-card { padding: 1.25rem 1rem; }

  .social-links { gap: 0.5rem; }
  .social-btn { width: 40px; height: 40px; font-size: 0.7rem; }
}

/* ---- TOUCH / HOVER OVERRIDES ---- */
/* Remove hover-only effects on true touch devices */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover { transform: none; box-shadow: none; }
  .testimonial-card:hover { transform: none; }
  .nav-cta:hover { transform: none; }
  .btn-primary:hover { transform: none; box-shadow: none; }
  /* Keep portfolio overlay always visible on touch */
  .portfolio-overlay { opacity: 1; transform: translateY(0); }
  .portfolio-item:hover .portfolio-img { transform: none; }
}


.email-link {
  color: inherit;          /* same color as text */
  text-decoration: none;   /* remove underline */
  cursor: pointer;
}