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

:root {
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --cyan-glow: rgba(0, 212, 255, 0.3);
  --cyan-glow-strong: rgba(0, 212, 255, 0.6);
  --silver: #c0c8d4;
  --silver-light: #e0e6ef;
  --dark-bg: #0a0a0f;
  --dark-card: #111118;
  --dark-card-hover: #16161f;
  --dark-border: #1e1e2e;
  --text-primary: #e8ecf1;
  --text-secondary: #8892a4;
  --gradient-cyan: linear-gradient(135deg, #00d4ff, #0077b6);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0d0d15 50%, #0a0a0f 100%);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--silver-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--silver-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 212, 255, 0.06) 1px, transparent 0);
  background-size: 60px 60px;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--silver-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

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

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

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

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-logo {
  width: 320px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
  animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 .text-silver {
  color: var(--silver-light);
}

.hero h1 .text-cyan {
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-cyan);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 25px var(--cyan-glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--cyan-glow-strong);
  color: #fff;
}

.hero-binary {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(0, 212, 255, 0.12);
  pointer-events: none;
  white-space: nowrap;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 36px 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--dark-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 12px;
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-tag {
  padding: 4px 12px;
  font-size: 0.78rem;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.12);
  font-weight: 500;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 10px;
}

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

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--silver-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.stat-box:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
  text-shadow: 0 0 30px var(--cyan-glow);
}

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

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.contact-card .contact-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin: 0 auto 18px;
}

.contact-card strong {
  color: var(--silver-light);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 8px;
}

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

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--dark-border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer h4 {
  color: var(--silver-light);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  margin-left: 24px;
}

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

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--silver-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  color: var(--silver-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-page h3 {
  font-size: 1.1rem;
  color: var(--silver-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--cyan);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-logo {
    width: 240px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 16px;
  }

  .legal-page {
    padding: 100px 0 60px;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 200px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 22px;
  }
}
