/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --pink: #ec4899;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --gradient-1: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-2: linear-gradient(135deg, #ec4899, #f59e0b);
  --gradient-3: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  --shadow-3d: 0 25px 60px rgba(139, 92, 246, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ========== BACKGROUND ========== */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0; pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.25;
  z-index: 0; pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate;
}
.bg-glow-1 { background: #8b5cf6; top: -200px; left: -150px; }
.bg-glow-2 { background: #06b6d4; bottom: -200px; right: -150px; animation-delay: -9s; }
.bg-glow-3 { background: #ec4899; top: 40%; left: 50%; width: 400px; height: 400px; animation-delay: -5s; }

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 26, 0.75);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 12px 60px;
  background: rgba(10, 10, 26, 0.92);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  transform: perspective(300px) rotateY(-8deg);
  transition: transform 0.4s ease;
}

.logo:hover .logo-icon { transform: perspective(300px) rotateY(8deg) scale(1.05); }

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

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 26px;
  background: var(--gradient-1);
  border-radius: 50px;
  font-weight: 600; font-size: 0.88rem;
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.nav-cta::after { display: none; }

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

.menu-toggle span {
  width: 26px; height: 2.5px;
  background: #fff; border-radius: 2px;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 60px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1300px; width: 100%;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15; font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-text h1 .gradient-text {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 16px 38px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; color: #fff;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(400px) translateZ(0);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: perspective(400px) translateZ(12px) translateY(-3px);
  box-shadow: 0 22px 50px rgba(139, 92, 246, 0.55);
}

.btn-outline {
  display: inline-block;
  padding: 16px 38px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; color: #fff;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 10px 35px rgba(6, 182, 212, 0.2);
  transform: translateY(-3px);
}

/* ===== 3D NETWORK VISUAL ===== */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
}

.network-canvas {
  width: 100%; max-width: 520px; height: 480px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(139,92,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  position: relative;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s ease;
}

.network-canvas:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }

#networkCanvas { width: 100%; height: 100%; display: block; }

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 2;
}

.floating-card:nth-child(2) { top: 10%; right: -20px; animation-delay: 0s; }
.floating-card:nth-child(3) { bottom: 15%; left: -30px; animation-delay: -3s; }
.floating-card:nth-child(4) { top: 50%; right: -40px; animation-delay: -1.5s; }

.floating-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}

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

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

/* ========== STATS ========== */
.stats-bar {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  padding: 0 60px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
  transform: perspective(600px) rotateX(0deg);
}

.stat-item:hover {
  transform: perspective(600px) rotateX(-4deg) translateY(-6px);
  box-shadow: 0 25px 60px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ========== SECTIONS ========== */
section {
  position: relative; z-index: 1;
  padding: 100px 60px;
}

.page-hero {
  padding-top: 180px;
  padding-bottom: 40px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ========== ABOUT ========== */
.about-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper { position: relative; perspective: 1000px; }

.about-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3d);
  transform: rotateY(4deg) rotateX(2deg);
  transition: transform 0.6s ease;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
}

.about-image:hover { transform: rotateY(0deg) rotateX(0deg); }

.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500;
}

.about-feature .check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: grid; place-items: center;
  color: #22c55e;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ========== SERVICES ========== */
.services-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(800px) rotateX(0deg) translateY(0);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-3);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: perspective(800px) rotateX(-3deg) translateY(-10px);
  box-shadow: 0 30px 70px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.3);
}

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

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
  transform: perspective(300px) rotateY(-6deg);
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: perspective(300px) rotateY(6deg) scale(1.08);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

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

/* ========== INDUSTRIES ========== */
.industries-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; align-items: center; gap: 18px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.industry-item:hover {
  transform: translateX(6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.1);
}

.industry-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.industry-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.industry-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========== CTA BOX ========== */
.cta-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 70px 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3d);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* ========== CONTACT ========== */
.contact-wrapper {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 60px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3d);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.contact-detail .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form { display: grid; gap: 18px; }

.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-secondary); }

.form-submit {
  padding: 16px;
  background: var(--gradient-1);
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; color: #fff;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.45);
}

/* MAP BOX */
.map-box {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.05));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-3d);
}

.map-pin { font-size: 3rem; margin-bottom: 20px; }

.map-inner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.map-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== FOOTER ========== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 60px 60px 30px;
  background: rgba(10, 10, 26, 0.6);
  backdrop-filter: blur(10px);
}

.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer ul li { margin-bottom: 12px; }

.footer ul a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  transition: color 0.3s ease;
}

.footer ul a:hover { color: var(--purple); }

.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-text p { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-wrapper { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 20px;
    background: rgba(10,10,26,0.97);
    padding: 30px;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero { padding: 120px 24px 60px; }
  section { padding: 70px 24px; }
  .page-hero { padding-top: 140px; }
  .stats-bar { padding: 0 24px 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .floating-card { display: none; }
}