@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-color);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.05;
  z-index: 9999; /* On top of everything for the texture effect */
  pointer-events: none;
}

:root {
  --bg-color: #050608;
  --bg-secondary: #0d1117;
  --primary: #00f2ff;
  --secondary: #0072ff;
  --accent: #bc00ff;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(13, 17, 23, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --nav-height: 85px;
  --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #1a1b23; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(0, 242, 255, 0.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(188, 0, 255, 0.05), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(to right, #00f2ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(to right, #0072ff, #bc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cyan { color: #00f2ff; }
.white { color: #ffffff; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.15) 0%, transparent 70%);
  left: -30px;
  top: -25px;
  pointer-events: none;
  filter: blur(15px);
  z-index: -1;
}
.nav-logo { 
  height: 55px; 
  width: auto; 
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-name .white { color: #e2e8f0; } /* Crisp silver/ice-white */
.brand-name .cyan { 
  background: linear-gradient(to right, #00f2ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(188, 0, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(188, 0, 255, 0.4);
}

/* Global Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(188, 0, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(188, 0, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 65px;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(3, 3, 5, 0.7), var(--bg-color)), url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5%;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--primary);
  backdrop-filter: blur(10px);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; }

/* Floating Elements */
.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 100px) scale(1.2); }
}

/* Feature Cards */
.section { padding: 4rem 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 0.8rem; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; max-width: 550px; margin: 0 auto; }

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

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(188, 0, 255, 0.1));
  padding: 3rem 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .cta-card { padding: 3rem 1.5rem; }
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 242, 255, 0.3);
  background: rgba(22, 27, 34, 0.8);
  box-shadow: var(--card-shadow), 0 0 20px rgba(0, 242, 255, 0.05);
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 242, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  transition: 0.3s;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(10deg);
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.stat-item h4 { font-size: 2.4rem; color: var(--primary); margin-bottom: 0.3rem; }
.stat-item p { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--text-muted); font-size: 0.72rem; }

/* Tech Marquee */
.tech-marquee-wrapper {
  background: rgba(10, 11, 16, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tech-marquee { 
  display: flex; 
  width: max-content;
  animation: scroll 25s linear infinite; 
}
.tech-marquee:hover {
  animation-play-state: paused;
}

.tech-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: 1px;
}

.tech-item:hover { 
  opacity: 1; 
  color: var(--primary); 
  transform: scale(1.15);
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 3.5rem 5% 2rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand p { margin-top: 0.8rem; max-width: 300px; color: var(--text-muted); font-size: 0.88rem; }

.footer-links h4 { font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul li { margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive Overhaul */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .nav-cta { display: none; } /* Hide in navbar, show in mobile menu maybe */

  .hero { padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2.8rem; line-height: 1.1; }
  .hero p { font-size: 1rem; }
  .hero-btns { flex-direction: column; gap: 1rem; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }

  .services-grid, .detailed-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; margin-top: 3rem; }
  
  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-brand h3 { font-size: 1.1rem; }
  .tagline { font-size: 0.55rem; letter-spacing: 1px; }
  .nav-logo { height: 35px; }
}
