/* ── CORE STYLES ───────────────────────────────── */
:root {
  --cyan: #00f5ff;
  --purple: #a855f7;
  --electric: #7c3aed;
  --gold: #fbbf24;
  --bg: #020408;
  --bg2: #050d18;
  --glass: rgba(0, 245, 255, 0.04);
  --glass-border: rgba(0, 245, 245, 0.15);
  --white: #f0f8ff;
  --font-display: 'Orbitron', monospace;
  --font-body: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── CUSTOM CURSOR ───────────────────────────────── */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s;
  box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan);
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 245, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .18s ease;
}

#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(800px circle at var(--x, 50vw) var(--y, 50vh), rgba(0, 245, 255, 0.15), transparent 40%);
  transition: background 0.1s ease;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  transform: translate(-50%, -50%) scale(2.2);
  background: rgba(0, 245, 255, 0.08);
}

/* ── AURORA MESH BACKGROUND ──────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3; /* Behind canvas */
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: color-dodge;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: floatBlob 20s infinite alternate cubic-bezier(0.25, 1, 0.5, 1);
}
.blob-1 {
  width: 70vw; height: 70vh;
  background: rgba(0, 245, 255, 0.25);
  top: -20vh; left: -20vw;
}
.blob-2 {
  width: 80vw; height: 80vh;
  background: rgba(168, 85, 247, 0.15);
  bottom: -30vh; right: -20vw;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}
.blob-3 {
  width: 60vw; height: 60vh;
  background: rgba(251, 191, 36, 0.08);
  top: 30%; left: 20%;
  animation-duration: 30s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15vw, 15vh) scale(1.1); }
  66% { transform: translate(-15vw, 10vh) scale(0.9); }
  100% { transform: translate(-5vw, -15vh) scale(1.05); }
}

/* ── THREE.JS CANVAS ─────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── INTRO SCREEN ────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: introFadeIn 1.5s ease 0.5s both;
}

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

.intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5));
  animation: logoPulse 3s ease-in-out infinite;
  position: relative;
}

.logo-o-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8em; /* Slightly narrower than full height to match typical letter O */
  height: 1em;
  position: relative;
  margin: 0 0.05em;
}

#earth-o {
  position: absolute;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background-image: url('https://unpkg.com/three-globe/example/img/earth-blue-marble.jpg');
  background-size: auto 100%;
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.8), 0 0 20px var(--cyan);
  animation: orbitDiagonal 4.5s ease-in-out forwards, spinEarth 10s linear infinite;
  z-index: 10;
}

@keyframes spinEarth {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

@keyframes orbitDiagonal {
  0% {
    transform: translate(0, -60vh) scale(3);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(45vw, -45vh) scale(3);
    box-shadow: inset -20px -20px 40px rgba(0,0,0,0.8), 0 0 60px var(--cyan);
  }
  40% {
    transform: translate(45vw, 40vh) scale(2.5);
  }
  65% {
    transform: translate(-45vw, 40vh) scale(2);
  }
  85% {
    transform: translate(-45vw, -30vh) scale(1.5);
  }
  100% {
    transform: translate(0, 0) scale(1);
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.8), 0 0 15px var(--cyan);
    z-index: 10;
  }
}

.intro-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: rgba(240, 248, 255, 0.6);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1rem;
  animation: introFadeIn 1.5s ease 1.2s both;
}

.intro-loading {
  margin-top: 3rem;
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  animation: introFadeIn 1s ease 1.5s both;
}

.intro-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  animation: loadBar 3s ease 1.5s forwards;
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes loadBar {
  to {
    width: 100%;
  }
}

.enter-btn {
  margin-top: 2.5rem;
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: introFadeIn 1s ease 4.8s forwards;
  transition: color .3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  transform: translateX(-100%);
  transition: transform .4s ease;
}

.enter-btn:hover::before {
  transform: translateX(0);
}

.enter-btn:hover {
  color: var(--bg);
}

.enter-btn span {
  position: relative;
  z-index: 1;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.95) 0%, transparent 100%);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(240, 248, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: .6rem 1.8rem;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  color: var(--bg);
  border: none;
  cursor: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: box-shadow .3s;
  font-weight: 700;
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

/* Nav Logo with Hex Icon and Pulsing Text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--white);
  text-decoration: none;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.4));
}
.nav-logo span {
  animation: logoTextGlow 2.5s ease-in-out infinite alternate;
  font-family: var(--font-display);
  background: linear-gradient(90deg, #fff 0%, #00f5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes logoTextGlow {
  from { 
    filter: drop-shadow(0 0 4px rgba(0, 245, 255, 0.6));
    opacity: 0.85;
  }
  to { 
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 1));
    opacity: 1;
  }
}
.nav-logo-icon {
  filter: drop-shadow(0 0 8px #00f5ff);
  flex-shrink: 0;
  animation: logoIconPulse 2s ease-in-out infinite alternate;
}
@keyframes logoIconPulse {
  from { transform: scale(0.95) rotate(0deg); opacity: 0.8; }
  to   { transform: scale(1.05) rotate(5deg); opacity: 1; }
}

.nav-logo-img {
  height: 36px;
  width: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.4));
  transform-style: preserve-3d;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.2) rotateX(15deg) rotateY(15deg);
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 1));
}

/* ── SECTIONS COMMON ─────────────────────────────── */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease;
}

.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease .1s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-desc {
  font-size: 1.05rem;
  color: rgba(240, 248, 255, 0.55);
  line-height: 1.8;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease .2s;
}

.section-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  animation: heroBadge 1s ease 0.3s both;
}

@keyframes heroBadge {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: heroTitle 1s ease 0.5s both;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: rgba(240, 248, 255, 0.55);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3rem;
  animation: heroTitle 1s ease 0.7s both;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: heroTitle 1s ease 0.9s both;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  color: var(--bg);
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: box-shadow .3s, transform .2s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: all .3s;
}

.btn-secondary:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
}

/* ── SERVICES ────────────────────────────────────── */
#services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.magnetic {
  will-change: transform;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.decode-text {
  opacity: 0;
}

.service-card {
  background: linear-gradient(135deg, rgba(0,10,20,0.98) 0%, rgba(0,25,50,0.95) 100%);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.05) 0%, transparent 80%),
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: cover, 30px 30px, 30px 30px;
  background-position: center, 0 0, 0 0;
  animation: bgScroll 30s linear infinite;
  
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 3rem 1.8rem;
  position: relative;
  overflow: hidden;
  cursor: none;
  text-align: center;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
  transform-style: preserve-3d;
}

/* Service-Specific Thematic Background "Bit Rain" or Icons */
.service-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  font-family: monospace;
  font-size: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-content: center;
  white-space: pre-wrap;
  transition: opacity 0.4s ease;
  user-select: none;
}

.service-card:hover .service-bg {
  opacity: 0.25;
  animation: bgFloat 10s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-20px); }
}

/* Web Dev: Code snippets background */
.service-web-dev .service-bg::after {
  content: '{ } < / > if ( ) while for def const import [ ] ; = + - * %';
  color: #00f5ff;
}

/* Web Designing: Geometric shapes/blobs */
.service-web-design .service-bg::after {
  content: '● ■ ▲ ♦ ○ ◌ ▩ ▥ ░ ▒ ▓';
  color: #a855f7;
}

/* App Development: Mobile UI symbols */
.service-app-dev .service-bg::after {
  content: '📱 📶 🌐 ⚙️ 🔔 🕒 🔋 📲 📶';
  color: #38bdf8;
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 1.2rem;
}

/* App Designing: Interface elements */
.service-app-design .service-bg::after {
  content: '─ ┐ └ ╳ ▢ ▤ ▥ ▩ ├ ┤ ┬ ┴';
  color: #00ffaa;
}

/* SEO: Charts/Upwards symbols */
.service-seo .service-bg::after {
  content: '📈 🚀 📊 🔍 📈 💹 🔝 💎';
  color: #6ee7b7;
  font-family: inherit;
  font-size: 1.4rem;
}

/* Content Writing: Words and Letters */
.service-content .service-bg::after {
  content: 'Aa Bb Cc Dd TEXT WORD PEN EDIT COPY BLOG SEO WRITE';
  color: #cbd5e1;
}

/* Corner bracket HUD decorations */
.service-card::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow:
    inset 16px 16px 0 -14px rgba(0,245,255,0.7),     /* TL */
    inset -16px 16px 0 -14px rgba(168,85,247,0.7),   /* TR */
    inset 16px -16px 0 -14px rgba(56,189,248,0.7),   /* BL */
    inset -16px -16px 0 -14px rgba(0,245,255,0.7);   /* BR */
}
.service-card:hover::after {
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  box-shadow:
    inset 20px 20px 0 -16px rgba(0,245,255,1),
    inset -20px 20px 0 -16px rgba(168,85,247,1),
    inset 20px -20px 0 -16px rgba(56,189,248,1),
    inset -20px -20px 0 -16px rgba(0,245,255,1);
}

/* HUD Scan Line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; 
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #00f5ff, #a855f7, transparent);
  animation: scanLine 3s linear infinite;
  z-index: 2;
}
@keyframes scanLine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.2), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,245,255,0.15);
  border-color: rgba(0, 245, 255, 0.5);
  transform: translateY(-6px) scale(1.02);
}

/* Service Card Details Hidden */
.service-details { display: none; }
.expand-icon { display: none; }

/* Proper z-indexing for content */
.service-icon-wrap, .service-name {
  position: relative;
  z-index: 3;
}

@keyframes bgScroll {
  from { background-position: center, 0 0, 0 0; }
  to   { background-position: center, 60px 60px, 60px 60px; }
}

/* Glowing animated top border line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; 
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #00f5ff, #a855f7, transparent);
  animation: scanLine 3s linear infinite;
  z-index: 1;
}
@keyframes scanLine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* Corner bracket decorations - ONLY the 4 corner lines, no fill */
.service-card::after {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid transparent;
  border-image: none;
  box-shadow:
    inset 14px 14px 0 -12px rgba(0,245,255,0.6),      /* top-left corner */
    inset -14px 14px 0 -12px rgba(168,85,247,0.6),    /* top-right corner */
    inset 14px -14px 0 -12px rgba(56,189,248,0.5),    /* bottom-left corner */
    inset -14px -14px 0 -12px rgba(0,245,255,0.5);    /* bottom-right corner */
  pointer-events: none;
  z-index: 0;
  transition: box-shadow 0.4s ease;
}
.service-card:hover::after {
  box-shadow:
    inset 18px 18px 0 -14px rgba(0,245,255,1),
    inset -18px 18px 0 -14px rgba(168,85,247,1),
    inset 18px -18px 0 -14px rgba(56,189,248,0.9),
    inset -18px -18px 0 -14px rgba(0,245,255,0.9);
}

/* All card content must sit above the pseudo-elements */
.service-icon-wrap, .service-name, .service-sub {
  position: relative;
  z-index: 2;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.2), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,245,255,0.15);
  border-color: rgba(0, 245, 255, 0.5);
  transform: translateY(-6px) scale(1.02);
}

/* Circuit dot background pattern on hover */
.service-card:hover::before {
  animation-duration: 1.2s;
  background: linear-gradient(90deg, transparent, #00ffaa, #a855f7, transparent);
}

/* Service Card Details Hidden (Read by JS) */
.service-details {
  display: none;
}
.expand-icon {
  display: none;
}

/* ── FULLSCREEN SERVICE MODAL ────────────────────── */
#service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#service-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#service-modal {
  position: fixed;
  top: 50%; left: 50%;
  width: 90%; max-width: 600px;
  background: rgba(10, 15, 25, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.15);
  border-radius: 20px;
  padding: 3rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) perspective(2000px) rotateY(180deg) scale(0.5);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#service-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) perspective(2000px) rotateY(0deg) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--cyan);
}

/* ── MODAL GRID & VISUALS ────────────────────────── */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .modal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .visual-container { height: 180px; }
}

.visual-container {
  width: 100%;
  height: 250px;
  background: rgba(0, 5, 15, 0.4);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 245, 255, 0.05);
}

.tw-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: var(--cyan);
  vertical-align: middle;
  animation: blink 0.8s infinite;
  margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 1. Web Dev (Browser Building) */
.anim-browser { width: 80%; height: 75%; border-radius: 6px; border: 2px solid var(--cyan); background: #0a0f19; overflow:hidden; opacity: 0; transform: translateY(20px); }
#service-modal.active .anim-browser { animation: popIn 0.5s ease forwards 0.3s; }
.anim-b-head { height: 16px; border-bottom: 2px solid var(--cyan); display:flex; gap: 4px; padding: 4px; }
.anim-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: 0.5; }
.anim-b-body { display: flex; height: 100%; }
.anim-sidebar { width: 30%; border-right: 2px solid rgba(0,245,255,0.3); transform: translateX(-100%); }
#service-modal.active .anim-sidebar { animation: slideRight 0.5s ease forwards 0.8s; }
.anim-content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.anim-block { height: 15px; border-radius: 4px; background: rgba(0,245,255,0.2); max-width: 0; opacity: 0; }
#service-modal.active .a-b1 { animation: drawWidthAnim 0.5s ease forwards 1.2s; width: 100%; }
#service-modal.active .a-b2 { animation: drawWidthAnim 0.5s ease forwards 1.4s; width: 80%; }
#service-modal.active .a-b3 { animation: drawWidthAnim 0.5s ease forwards 1.6s; width: 90%; }

/* 2. Web Designing (Shapes & Cursor) */
.anim-design-canvas { width: 100%; height: 100%; position: relative; }
.anim-shape { position: absolute; border: 2px solid var(--cyan); opacity: 0; transform: scale(0); }
.circle-shape { width: 60px; height: 60px; border-radius: 50%; top: 30%; left: 20%; border-color: var(--gold); }
.square-shape { width: 70px; height: 70px; border-radius: 12px; bottom: 30%; right: 20%; border-color: var(--cyan); }
#service-modal.active .circle-shape { animation: popIn 0.5s ease forwards 0.5s; background: rgba(251,191,36,0.2); }
#service-modal.active .square-shape { animation: popIn 0.5s ease forwards 0.8s; background: rgba(0,245,255,0.2); }
.anim-cursor { position: absolute; font-size: 2rem; color: #fff; top: 100%; left: 50%; opacity:0; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
#service-modal.active .anim-cursor { animation: moveCursor 2s ease forwards 1.2s; }

/* 3. App Dev (Code compiling in phone) */
.anim-phone { width: 50%; height: 85%; border: 3px solid var(--cyan); border-radius: 16px; background: #0a0f19; position: relative; overflow: hidden; opacity: 0; transform: translateY(30px); }
#service-modal.active .anim-phone { animation: popIn 0.5s ease forwards 0.3s; }
.anim-code-stream { padding: 15px; font-family: monospace; font-size: 0.75rem; color: var(--cyan); display: flex; flex-direction: column; gap: 6px; }
.anim-code-stream div { opacity: 0; transform: translateX(-10px); }
#service-modal.active .anim-code-stream div { animation: typeLine 0.1s forwards; }

/* 4. App Design (UI sliding up in phone) */
.anim-ui-card { width: 80%; height: 30px; background: rgba(0,245,255,0.15); border: 1px solid rgba(0,245,255,0.4); border-radius: 8px; margin: 15px auto; transform: translateY(100px); opacity: 0; }
#service-modal.active  .c1 { animation: slideUpFade 0.5s cubic-bezier(0.2,0.8,0.2,1) forwards 0.6s; }
#service-modal.active  .c2 { animation: slideUpFade 0.5s cubic-bezier(0.2,0.8,0.2,1) forwards 0.8s; }
#service-modal.active  .c3 { animation: slideUpFade 0.5s cubic-bezier(0.2,0.8,0.2,1) forwards 1.0s; }

/* 5. SEO (Chart) */
.anim-chart-wrap { width: 80%; height: 70%; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); position: relative; display: flex; align-items: flex-end; justify-content: space-evenly; padding: 0 10px; }
.anim-bar { width: 18%; background: var(--cyan); border-top-left-radius: 4px; border-top-right-radius: 4px; height: 0; opacity: 0.8; }
#service-modal.active .b1 { animation: growBar 0.5s forwards 0.5s; height: 20%; }
#service-modal.active .b2 { animation: growBar 0.5s forwards 0.7s; height: 40%; }
#service-modal.active .b3 { animation: growBar 0.5s forwards 0.9s; height: 60%; }
#service-modal.active .b4 { animation: growBar 0.5s forwards 1.1s; height: 90%; background: var(--gold); }
.anim-line { position: absolute; width: 100%; height: 100%; background: linear-gradient(to top right, transparent 49%, var(--gold) 50%, #000 51%); opacity: 0.5; mix-blend-mode: screen; clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%); bottom:0; left:0; }
#service-modal.active .anim-line { animation: drawLineChart 1.5s forwards 0.5s; }

/* 6. Content Writing (Document Lines) */
.anim-doc { width: 60%; height: 80%; background: #e2e8f0; border-radius: 4px; padding: 20px; box-shadow: 0 0 20px rgba(255,255,255,0.1); opacity: 0; transform: scale(0.9); }
#service-modal.active .anim-doc { animation: popIn 0.5s forwards 0.3s; }
.anim-text-line { height: 8px; background: #94a3b8; border-radius: 4px; margin-bottom: 12px; max-width: 0; opacity: 0; }
#service-modal.active .t1 { animation: drawWidthAnim 0.6s ease forwards 0.8s; width: 100%; }
#service-modal.active .t2 { animation: drawWidthAnim 0.7s ease forwards 1.4s; width: 90%; }
#service-modal.active .t3 { animation: drawWidthAnim 0.5s ease forwards 2.0s; width: 95%; }
#service-modal.active .t4 { animation: drawWidthAnim 0.4s ease forwards 2.5s; width: 60%; }

/* Animation Keyframes */
@keyframes popIn { 100% { opacity: 1; transform: translate(0) scale(1); } }
@keyframes slideRight { 100% { transform: translateX(0); } }
@keyframes drawWidthAnim { 100% { max-width: 100%; opacity: 1; } }
@keyframes moveCursor { 0% { top: 100%; left: 50%; opacity:1; } 50% { top: 40%; left: 30%; opacity:1; } 100% { top: 60%; left: 70%; opacity:1; transform: scale(0.9); } }
@keyframes typeLine { 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideUpFade { 100% { transform: translateY(0); opacity: 1; } }
@keyframes growBar { 0% { height: 0; } } /* uses inline height targeting */
@keyframes drawLineChart { 100% { clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0); } }

.service-icon-wrap {
  width: 76px;
  height: 76px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.2rem;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.service-icon {
  font-size: 1.8rem;
  color: var(--cyan);
  display: block;
}

.service-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 245, 255, 0.05);
  line-height: 1;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.service-desc {
  font-size: 0.88rem;
  color: rgba(240, 248, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.service-tag {
  padding: .25rem .8rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  color: rgba(240, 248, 255, 0.4);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.service-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(0, 245, 255, 0.4);
  transition: all .3s;
}

.service-card:hover .service-arrow {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.client-name {
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ── CONTACT ─────────────────────────────────────── */
#contact {
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s, transform .7s;
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.35);
  display: block;
  margin-bottom: .2rem;
}

.contact-value {
  font-size: .95rem;
  color: var(--white);
}

.contact-value a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity .3s;
}

.contact-value a:hover {
  opacity: .7;
}

/* ── FORM ────────────────────────────────────────── */
.contact-form {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s .15s, transform .7s .15s;
}

.contact-form.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.35);
  margin-bottom: .6rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.12);
  color: var(--white);
  padding: .9rem 1.2rem;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--cyan), var(--electric));
  border: none;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: box-shadow .3s, transform .2s;
  position: relative;
  overflow: hidden;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 245, 255, 0.08);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── RESPONSIVE ──────────────────────────────────── */
/* ── TABLET / MOBILE RESPONSIVENESS ───────── */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.75rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-title { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Hide cursor effects on touch devices */
  #cursor, #cursor-ring, #spotlight { display: none !important; }
  
  /* Navigation */
  nav { 
    justify-content: center; 
    padding: 1rem; 
  }
  .nav-links, .nav-cta { display: none !important; }
  .nav-logo { font-size: 1.1rem; gap: 0.5rem; }
  .nav-logo-icon { width: 30px; height: 30px; }

  /* Hero Section */
  #hero { min-height: 80vh; padding: 6rem 1rem 2rem; }
  .hero-title { font-size: 2.2rem; line-height: 1.2; margin-bottom: 1.5rem; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-btns { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; clip-path: none; }

  /* Common Section Spacing */
  section { padding: 4rem 1.2rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
  
  /* Grids */
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 1.2rem;
    width: 100%;
  }
  .service-card { 
    padding: 2rem 1.5rem; 
    width: 100%;
    clip-path: none; /* simpler shapes for mobile performance/clarity */
    border-radius: 12px;
  }
  
  /* Footer */
  footer { 
    flex-direction: column; 
    text-align: center; 
    padding: 2rem 1rem;
    font-size: 0.8rem;
  }

  /* Contact Form Spacing */
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info, .contact-form { transform: none !important; opacity: 1 !important; }
  .contact-detail { padding: 0.8rem 0; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-badge { font-size: 0.65rem; }
  .nav-logo span { font-size: 0.9rem; }
}
