/* =============================================
   TESSERACT TECHNOLABS — STYLESHEETS
   Futuristic AI Company Design
   ============================================= */

/* === CSS RESET & TOKENS === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

:root {
  /* Color Palette */
  --c-bg:          #050811;
  --c-bg-2:        #080d1a;
  --c-bg-glass:    rgba(8, 20, 48, 0.6);
  --c-border:      rgba(0, 212, 255, 0.12);
  --c-border-h:    rgba(0, 212, 255, 0.35);

  --c-cyan:        #00d4ff;
  --c-cyan-dim:    rgba(0, 212, 255, 0.15);
  --c-purple:      #7b2dff;
  --c-purple-dim:  rgba(123, 45, 255, 0.15);
  --c-violet:      #a855f7;
  --c-teal:        #06b6d4;
  --c-pink:        #ec4899;

  --grad-primary:  linear-gradient(135deg, #00d4ff, #7b2dff);
  --grad-text:     linear-gradient(90deg, #00d4ff, #a855f7, #7b2dff);
  --grad-card:     linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,45,255,0.05));

  /* Typography */
  --font-main:     'Outfit', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad:   7rem 2rem;
  --radius-card:   20px;
  --radius-sm:     10px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-glow-cyan:   0 0 40px rgba(0,212,255,0.2);
  --shadow-glow-purple: 0 0 40px rgba(123,45,255,0.2);
  --shadow-card:        0 8px 32px rgba(0,0,0,0.4);
}

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

body {
  font-family: var(--font-main);
  background: var(--c-bg);
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* === CUSTOM CURSOR === */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
  box-shadow: 0 0 10px var(--c-cyan);
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: all 0.12s var(--ease-out);
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  transform: translate(-50%, -50%) scale(1.8);
  border-color: var(--c-cyan);
  background: rgba(0, 212, 255, 0.05);
}

/* === PARTICLE CANVAS === */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* === GLOBAL TYPOGRAPHY === */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
p { color: #94a3b8; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  padding: 6px 16px;
  border: 1px solid var(--c-border-h);
  border-radius: 100px;
  margin-bottom: 1.2rem;
  background: var(--c-cyan-dim);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  color: var(--c-cyan);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid var(--c-border-h);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-ghost:hover {
  background: var(--c-cyan-dim);
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Logo image (replaces SVG icon + text) */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Subtle hover scale */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo:hover .logo-img {
  opacity: 0.88;
  transform: scale(1.03);
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  animation: rotateY 8s linear infinite;
}

@keyframes rotateY {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.btn-nav-cta {
  padding: 9px 24px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: block;
  background: rgba(5, 8, 17, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 2rem;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
}

.mobile-menu.open {
  max-height: 85vh;
  padding: 1rem 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-nav-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--c-cyan); }

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 2rem 80px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 3rem;
  overflow: hidden;
}

.hero-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,45,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--c-border-h);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--c-cyan);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-line { display: block; color: #f1f5f9; }
.hero-title-gradient {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-cyan);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-cyan);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
}

/* === TESSERACT ANIMATION === */
.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tesseract-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tesseract-outer {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(0, 212, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateOuter 12s linear infinite;
  position: relative;
}

.tesseract-outer::before,
.tesseract-outer::after {
  content: '';
  position: absolute;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
}

.tesseract-outer::before { width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
.tesseract-outer::after  { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }

.tesseract-inner {
  width: 110px;
  height: 110px;
  border: 2px solid rgba(123, 45, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateInner 8s linear infinite reverse;
  position: relative;
}

.tesseract-inner::before,
.tesseract-inner::after {
  content: '';
  position: absolute;
  background: var(--c-purple);
  box-shadow: 0 0 8px var(--c-purple);
}

.tesseract-inner::before { width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
.tesseract-inner::after  { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }

.tesseract-core {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(0,212,255,0.8), rgba(123,45,255,0.8));
  border-radius: 4px;
  animation: spin 4s linear infinite, glowPulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(123,45,255,0.4);
}

/* Connection lines from outer to inner corners */
.tesseract-outer::before { opacity: 0.3; }
.tesseract-outer::after  { opacity: 0.3; }
.tesseract-inner::before { opacity: 0.5; }
.tesseract-inner::after  { opacity: 0.5; }

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: orbit 6s linear infinite;
}

.orbit-ring-1 {
  width: 240px;
  height: 240px;
  border-color: rgba(0, 212, 255, 0.15);
  animation-duration: 14s;
}

.orbit-ring-2 {
  width: 320px;
  height: 320px;
  border-color: rgba(123, 45, 255, 0.1);
  animation-duration: 20s;
  animation-direction: reverse;
}

.orbit-ring-3 {
  width: 380px;
  height: 380px;
  border-color: rgba(168, 85, 247, 0.08);
  animation-duration: 28s;
}

.orbit-ring::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--c-cyan);
}

.orbit-ring-2::after { background: var(--c-purple); box-shadow: 0 0 10px var(--c-purple); }
.orbit-ring-3::after { background: var(--c-violet); box-shadow: 0 0 10px var(--c-violet); width: 6px; height: 6px; }

@keyframes rotateOuter { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes rotateInner { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin        { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes orbit       { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(123,45,255,0.4); }
  50%       { box-shadow: 0 0 50px rgba(0,212,255,0.9), 0 0 100px rgba(123,45,255,0.6); }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* === SERVICES SECTION === */
.services-section {
  padding: var(--section-pad);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-h);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.service-card--featured {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(123,45,255,0.06));
  border-color: rgba(0, 212, 255, 0.25);
}

.service-card--featured:hover {
  box-shadow: var(--shadow-card), 0 0 60px rgba(0,212,255,0.25);
}

.service-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,212,255,0.06), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover .service-card-glow { opacity: 1; }

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,45,255,0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--c-cyan);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.service-icon-wrap {
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--c-cyan-dim), var(--c-purple-dim));
  border: 1px solid var(--c-border-h);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(123,45,255,0.2));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: scale(1.05);
}

.service-icon svg { width: 28px; height: 28px; }

.service-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-cyan);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-features li {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--grad-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-cyan);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-cta:hover {
  gap: 8px;
  color: #fff;
}

/* === ABOUT SECTION === */
.about-section {
  position: relative;
  padding: var(--section-pad);
  overflow: hidden;
  z-index: 1;
}

.about-glow {
  position: absolute;
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 45, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* === CODE MOCKUP === */
.about-image-wrap {
  position: relative;
}

.about-mockup {
  background: rgba(8, 12, 28, 0.9);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.mockup-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--c-border);
}

.mockup-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.mockup-code {
  padding: 1.5rem 1.8rem;
  line-height: 1.9;
}

.code-line { white-space: nowrap; }
.code-indent { padding-left: 1.5rem; }
.code-keyword { color: #c792ea; }
.code-var     { color: #82aaff; }
.code-op      { color: #89ddff; }
.code-fn      { color: #c792ea; }
.code-class   { color: #ffcb6b; }
.code-prop    { color: #82aaff; }
.code-str     { color: #c3e88d; }
.code-obj     { color: #e2e8f0; }
.code-comment { color: #546e7a; font-style: italic; }
.code-output  { color: var(--c-cyan); }

.code-cursor {
  display: inline-block;
  color: var(--c-cyan);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.about-floating-card {
  position: absolute;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border-h);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.floating-card-dot {
  width: 8px;
  height: 8px;
  background: #28c840;
  border-radius: 50%;
  box-shadow: 0 0 8px #28c840;
  animation: pulse 2s infinite;
}

.card-1 {
  bottom: -1.5rem;
  right: -1.5rem;
  animation: float 4s ease-in-out infinite;
}

.card-2 {
  top: 2rem;
  left: -2rem;
  animation: float 5s ease-in-out infinite 1s;
}

/* === ABOUT CONTENT === */
.about-content { padding: 1rem 0; }
.about-content .section-title { margin-top: 1rem; }

.about-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

.about-pillar:hover {
  border-color: var(--c-border-h);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--c-cyan-dim), var(--c-purple-dim));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.about-pillar p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

/* === STATS SECTION === */
.stats-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(123,45,255,0.03));
  pointer-events: none;
}

.stats-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-h);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === TECH SECTION === */
.tech-section {
  padding: var(--section-pad);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech-category {
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
}

.tech-category:hover {
  border-color: var(--c-border-h);
}

.tech-cat-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.02);
  transition: all 0.25s var(--ease-out);
  cursor: default;
}

.tech-tag:hover {
  border-color: var(--c-border-h);
  color: var(--c-cyan);
  background: var(--c-cyan-dim);
}

/* === PROCESS SECTION === */
.process-section {
  padding: var(--section-pad);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-purple));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 72px;
  height: 72px;
  background: var(--c-bg);
  border: 2px solid var(--c-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-cyan);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow-cyan);
  transition: all 0.3s var(--ease-out);
}

.process-step:hover .process-step-num {
  background: var(--c-cyan-dim);
  transform: scale(1.1);
}

.process-step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.process-step-content p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact-section {
  position: relative;
  padding: var(--section-pad);
  overflow: hidden;
  z-index: 1;
}

.contact-glow {
  position: absolute;
  top: 20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
}

.contact-item:hover {
  border-color: var(--c-border-h);
}

.contact-icon {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-cyan-dim), var(--c-purple-dim));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-item a, .contact-item p {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--c-cyan); }

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s var(--ease-out);
}

.social-link:hover {
  border-color: var(--c-border-h);
  color: var(--c-cyan);
  background: var(--c-cyan-dim);
  transform: translateY(-2px);
}

/* === CONTACT FORM === */
.contact-form {
  background: var(--c-bg-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 12, 28, 0.8);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #e2e8f0;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #334155;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-border-h);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

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

.form-success {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  text-align: center;
}

.form-success.show {
  display: block;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #28c840;
}

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--c-border);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  max-width: 340px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: #475569;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--c-cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.82rem;
  color: #334155;
}

/* === ANIMATIONS (AOS-like) === */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"]    { transform: scale(0.85); }

[data-aos].animated {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-section { flex-direction: column; text-align: center; padding-top: 140px; }
  .hero-content { max-width: 100%; }
  .hero-subtitle, .hero-actions { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 300px; height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline::before { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem 1.2rem; }
  .nav-links, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
  .card-1, .card-2 { display: none; }
}

/* === SELECTION === */
::selection {
  background: rgba(0, 212, 255, 0.2);
  color: var(--c-cyan);
}
