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

:root {
  --bg: #0C0C0C;
  --cyan: #00FFFF;
  --violet: #8A2BE2;
  --text: #CCCCCC;
  --white: #ffffff;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;  
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0C0C0C; }
::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00FFFF; }

/* Utilities */
.glass {
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.grid-pattern {
  background-image:
    linear-gradient(rgba(0,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s;
}
header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.logo { height: 48px; cursor: pointer; }
nav.desktop { display: flex; gap: 2rem; }
nav.desktop a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}
nav.desktop a:hover { color: var(--white); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  backdrop-filter: blur(10px);
  background: rgba(12,12,12,0.95);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: white; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(12,12,12,0.8), var(--bg));
  z-index: 1;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}
.glow-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 0;
}
.glow-blob.cyan { background: var(--cyan); top: 25%; right: 25%; animation: floatY 6s ease-in-out infinite; }
.glow-blob.violet { background: var(--violet); bottom: 25%; left: 33%; animation: floatY 6s ease-in-out infinite reverse; animation-delay: 2s; }
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 5rem;
}
.hero-text { max-width: 66%; }
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}
.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  padding: 0.875rem 2rem;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  animation: glowPulse 2s ease-in-out infinite;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,255,255,0.5); }
.btn-secondary {
  padding: 0.875rem 2rem;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(0,255,255,0.1); transform: scale(1.05); }
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.8s 1.5s forwards;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--text); }
.scroll-pill {
  width: 24px; height: 40px;
  border: 1px solid var(--text);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding: 4px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ── SECTIONS COMMON ── */
section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--text); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── SERVICES ── */
#services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.service-card {
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 24px; height: 24px; color: white; stroke: white; fill: none; }
.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card p { color: var(--text); margin-bottom: 1rem; line-height: 1.6; }
.learn-more { color: var(--cyan); text-decoration: none; font-size: 0.95rem; }
.learn-more:hover { text-decoration: underline; }

/* ── WHY US ── */
#why-us { background: var(--bg); }
.why-us-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.why-us-left { flex: 1; min-width: 300px; }
.why-us-left h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.why-us-left > p { color: var(--text); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; stroke: white; fill: none; }
.feature-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-item p { color: var(--text); font-size: 0.9rem; line-height: 1.5; }
.why-us-right { flex: 1; min-width: 300px; }
.why-us-right img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

/* ── CASE STUDIES ── */
#case-studies { background: var(--bg); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.case-card {
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
}
.case-card.visible { opacity: 1; transform: translateY(0); }
.case-card:hover { box-shadow: 0 0 20px rgba(138,43,226,0.2); }
.case-card-img {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.case-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.case-card:hover .case-card-img img { transform: scale(1.1); }
.case-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}
.coming-soon {
  position: absolute;
  top: 1rem; left: 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}
.case-card-body { padding: 1.5rem; }
.case-card-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.case-card-body p { color: var(--text); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag.violet { background: rgba(138,43,226,0.15); color: #a855f7; }
.tag.cyan { background: rgba(0,255,255,0.1); color: var(--cyan); }

/* ── CTA / CONTACT ── */
#contact {
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.contact-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.contact-left { flex: 1; min-width: 300px; }
.contact-left h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.contact-left p { color: var(--text); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.6; }
.contact-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline {
  padding: 0.875rem 2rem;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: white; color: white; background: rgba(255,255,255,0.05); }
.contact-right {
  flex: 1;
  min-width: 300px;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
}
.contact-right h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; color: var(--text); margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}
.form-group textarea { resize: none; }
.form-error { color: #f87171; font-size: 0.8rem; margin-top: 0.25rem; display: none; }
.form-group.error input,
.form-group.error textarea { border-color: #f87171; }
.form-group.error .form-error { display: block; }
.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-submit:hover { box-shadow: 0 0 15px rgba(0,255,255,0.4); transform: scale(1.02); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-icon svg { width: 40px; height: 40px; stroke: white; fill: none; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; }
.form-success p { color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text); font-size: 0.9rem; line-height: 1.6; max-width: 340px; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--text); transition: color 0.2s; }
.social-links a:hover { color: var(--cyan); }
.social-links svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.footer-col h3 { font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }
.footer-contact-item a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--text); font-size: 0.875rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 99;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}
#scroll-top.visible { opacity: 1; pointer-events: all; transform: scale(1); }
#scroll-top:hover { transform: scale(1.1); }
#scroll-top svg { width: 24px; height: 24px; stroke: white; fill: none; }

/* ── ANIMATIONS ── */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0,255,255,0.4); }
  50% { box-shadow: 0 0 30px 5px rgba(0,255,255,0.7); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  nav.desktop { display: none; }
  .hamburger { display: flex; }
  .hero-text { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-us-right { display: none; }
}
