/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e2e8f0;
  background: #0a1628;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

/* ========== Navigation ========== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; color: #fff;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
}
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color 0.3s; position: relative;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 28px; border-radius: 50px; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff; border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: #fff;
  transition: all 0.3s; display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a1a3e 50%, #0d1f3c 100%);
}
#particles-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 24px; border-radius: 50px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa; font-size: 14px; font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #2563eb, #06b6d4, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 20px; color: rgba(255,255,255,0.7);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 16px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff; border: none; cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5); }
.btn-outline {
  padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 16px;
  background: transparent;
  color: #fff; border: 2px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block; width: 24px; height: 40px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3); position: relative;
}
.hero-scroll span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrollDot 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scrollDot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 22px; } }

/* ========== About / Stats ========== */
.about { background: #0f1d32; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text h2 {
  font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.2;
}
.about-text .sub-heading {
  font-size: 18px; color: #06b6d4; font-weight: 600; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 2px;
}
.about-text p { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 32px 24px; text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}
.stat-number {
  font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ========== Services ========== */
.services { background: #0a1628; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .sub-heading {
  font-size: 14px; color: #06b6d4; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}
.section-header h2 { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: rgba(255,255,255,0.5); max-width: 600px; margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 36px 28px;
  transition: all 0.4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ========== Tech Stack ========== */
.techstack { background: #0f1d32; }
.tech-categories { display: flex; flex-direction: column; gap: 40px; }
.tech-category h3 {
  font-size: 16px; font-weight: 600; color: #06b6d4;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(6,182,212,0.2);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-tag {
  padding: 10px 20px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}
.tech-tag:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #fff; transform: translateY(-2px);
}

/* ========== Cases ========== */
.cases { background: #0a1628; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card {
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s;
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.case-cover {
  height: 200px; position: relative;
  display: flex; align-items: flex-end; padding: 20px;
}
.case-cover-1 { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.case-cover-2 { background: linear-gradient(135deg, #1a1a3e, #8b5cf6); }
.case-cover-3 { background: linear-gradient(135deg, #0d3331, #06b6d4); }
.case-cover .case-type {
  padding: 6px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; color: #fff;
}
.case-body { padding: 24px; }
.case-body h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 16px; line-height: 1.6; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span {
  padding: 4px 12px; border-radius: 6px; font-size: 12px;
  background: rgba(37, 99, 235, 0.1); color: #60a5fa; font-weight: 500;
}

/* ========== Why Us ========== */
.whyus { background: #0f1d32; }
.whyus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.whyus-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: all 0.4s;
}
.whyus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}
.whyus-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
}
.whyus-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.whyus-card p { font-size: 15px; color: rgba(255,255,255,0.5); }

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #06b6d4 100%);
  text-align: center;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: ctaPulse 6s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.cta-section h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; position: relative; }
.btn-white {
  padding: 16px 48px; border-radius: 50px; font-weight: 700; font-size: 16px;
  background: #fff; color: #2563eb; border: none; cursor: pointer;
  transition: all 0.3s; position: relative;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }

/* ========== Footer ========== */
.footer {
  background: #060e1a; padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col h4 {
  font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.4);
  margin-bottom: 10px; transition: color 0.3s;
}
.footer-col a:hover { color: #06b6d4; }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-bottom a:hover { color: #06b6d4; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-grid, .cases-grid, .whyus-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(10, 22, 40, 0.98); backdrop-filter: blur(20px);
    padding: 20px 24px; gap: 16px;
  }
  .hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .services-grid, .cases-grid, .whyus-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2, .about-text h2 { font-size: 30px; }
  .section-padding { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .stat-number { font-size: 36px; }
}
