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

:root {
  /* Dynamic Neon Tech Color Palette */
  --bg-dark: #f8f9fc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --primary-accent: #D4AF37; /* Golden */
  --secondary-accent: #005ae6; /* Blue */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --glass-border: rgba(0, 0, 0, 0.08); /* Dark subtle border */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05); /* Subtle shadow */
  --gradient-text: linear-gradient(90deg, #D4AF37 0%, #005ae6 100%);
  --custom-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

/* Background Gradients Glows */
body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(10,14,23,0) 70%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0,90,230,0.08) 0%, rgba(10,14,23,0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Typography Utility */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
p.lead {
  color: var(--text-muted);
  font-weight: 400;
}

/* Navbar overrides */
.navbar {
  background-color: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  transition: var(--custom-transition);
  position: relative;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--primary-accent) !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-accent);
  transition: var(--custom-transition);
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
  width: 100%;
}
.navbar-toggler {
  border: none;
  color: var(--text-main);
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  border: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--custom-transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 90, 230, 0.5);
  color: #fff;
}
.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: var(--custom-transition);
}
.btn-outline-custom:hover {
  background: var(--primary-accent);
  color: #000;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: var(--custom-transition);
}
.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.1);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 20px;
  display: inline-block;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: rgba(241, 245, 249, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-text {
  color: var(--text-muted);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--custom-transition);
  display: block;
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary-accent);
  padding-left: 5px;
}

/* Forms */
.form-control {
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  border-radius: 10px;
  padding: 12px 20px;
}
.form-control:focus {
  background-color: #fff;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
  color: var(--text-main);
}
.form-control::placeholder {
  color: var(--text-muted);
}

/* Specific Section Padding */
.py-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Badges */
.badge-custom {
  background: rgba(0, 90, 230, 0.2);
  color: #fff;
  border: 1px solid rgba(0, 90, 230, 0.5);
  border-radius: 30px;
  padding: 6px 15px;
  font-weight: 500;
}

/* Responsive Logo Classes */
.logo-desktop { display: none; }
.logo-mobile { display: block; }
@media (min-width: 992px) {
  .logo-desktop { display: block; }
  .logo-mobile { display: none; }
}

/* LIGHT THEME INVERSIONS */
.text-white { color: var(--text-main) !important; }
.bg-dark { background-color: rgba(0, 0, 0, 0.05) !important; }
.badge-custom { color: var(--secondary-accent); }
.portfolio-overlay { background: rgba(255, 255, 255, 0.95) !important; }
.portfolio-overlay h4 { color: var(--text-main) !important; }
.pricing-card.recommended { background: rgba(255, 255, 255, 0.9) !important; }

/* Animated Tech Background */
.tech-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  opacity: 0.8;
}
.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: slideGrid 20s linear infinite;
  opacity: 0.7;
}
@keyframes slideGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, -40px); }
}
.tech-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
  opacity: 0.15;
  animation: float 15s infinite linear;
}
.tech-particle.p1 { width: 400px; height: 400px; left: -5%; top: -10%; animation-duration: 25s; }
.tech-particle.p2 { width: 500px; height: 500px; right: -5%; bottom: -10%; background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%); animation-duration: 30s; animation-direction: reverse; }
.tech-particle.p3 { width: 300px; height: 300px; left: 40%; top: 50%; animation-duration: 20s; }
@keyframes float {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateY(-30px) rotate(120deg) scale(1.05); }
  66% { transform: translateY(15px) rotate(240deg) scale(0.95); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}
