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

:root {
  /* Brand Colors - Codespot Sharp Neon Variant */
  --bg-color: #020406;
  --bg-surface: rgba(10, 13, 20, 0.4);
  --bg-surface-light: rgba(18, 24, 38, 0.6);
  --accent-base: #2a75d3;
  --accent-neon: #00e5ff; /* Slightly cleaner cyan */
  --accent-neon-glow: rgba(0, 229, 255, 0.3); /* Lower intensity for subtle glow */
  
  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Utilities */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-width: 1280px;
}

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

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

/* Deep Codespot Background: Diagonal Ribbons (No Haze) */
body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: repeating-linear-gradient(135deg, transparent 0px, transparent 150px, rgba(255, 255, 255, 0.015) 150px, rgba(255, 255, 255, 0.015) 300px);
  z-index: -2; pointer-events: none;
}

/* Reduced Ambient Gloom to a tight vignette instead of massive haze */
body::after {
  content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8); /* Dark vignette rather than bright neon */
  z-index: 10000; pointer-events: none;
}

h1 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--accent-neon); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* CSS Trick to perfectly remove white background of the Blue Logo */
.logo-transparent {
    filter: invert(1) hue-rotate(180deg) brightness(1.3) contrast(1.2);
    mix-blend-mode: screen;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; position: relative; } 
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
/* Clean subtitles, no text-shadow */
.section-subtitle {
  color: var(--accent-neon); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.875rem; margin-bottom: 0.5rem; display: block;
}
.text-center { text-align: center; }

/* Sharp Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); cursor: pointer; border: none; position: relative; overflow: hidden;
}
.btn-primary {
  background-color: var(--accent-base); color: #fff;
  border: 1px solid rgba(255,255,255,0.05);
}
.btn-primary i { margin-left: 8px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn-primary:hover {
  background-color: var(--bg-surface-light); border-color: var(--accent-neon); color: var(--text-main);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.1); /* Sleek targeted neon pop */
}
.btn-primary:hover i { transform: translateX(6px); color: var(--accent-neon); }

.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent-neon); color: var(--text-main); }
.btn-outline i { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn-outline:hover i { transform: translateX(4px); color: var(--accent-neon); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: var(--transition); background: transparent; }
.navbar.scrolled { padding: 1rem 0; background: rgba(2, 4, 6, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; transition: var(--transition); }
.nav-logo:hover { filter: drop-shadow(0 0 10px var(--accent-neon-glow)); transform: scale(1.02); }
.nav-logo img { height: 40px; }
.nav-logo span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text-main); }

/* Navigation Links Animation */
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; position: relative; padding-bottom: 5px; transition: var(--transition); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent-neon); transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 8px var(--accent-neon-glow);
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile Menu Toggle */
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.nav-toggle:hover { color: var(--accent-neon); }

/* Footer */
footer { background-color: rgba(2, 4, 6, 0.95); padding: 5rem 0 2rem; border-top: 1px solid var(--border-color); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; margin-bottom: 1.5rem; }
.footer-title { font-size: 1.125rem; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-neon); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.875rem; }

/* High-Contrast Sharp Hover Cards  */
.bento-card, .service-card, .blog-card, .product-image, .contact-info-block {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* Codespot liquid background style */
.bento-card::before, .service-card::before, .blog-card::before, .product-image::before, .contact-info-block::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  opacity: 0; transition: opacity 0.4s ease; z-index: 0; pointer-events: none;
}

.bento-card:hover, .service-card:hover, .blog-card:hover, .product-image:hover, .contact-info-block:hover {
  border-color: var(--accent-neon);
  transform: translateY(-5px) scale(1.01);
  /* Elegant, constrained Neon integration */
  box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 8px rgba(0, 229, 255, 0.1);
}

.bento-card:hover::before, .service-card:hover::before, .blog-card:hover::before, .product-image:hover::before, .contact-info-block:hover::before {
  opacity: 1; animation: blob-spin 8s linear infinite;
}

.bento-card > *, .service-card > *, .blog-card > *, .product-image > *, .contact-info-block > * { position: relative; z-index: 1; }

.bento-icon, .service-icon, .blog-image i, .product-image i {
  font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1.5rem; transition: var(--transition);
}

.bento-card:hover .bento-icon, .service-card:hover .service-icon, .blog-card:hover .blog-image i, .product-image:hover i {
  color: var(--accent-neon); transform: translateY(-3px); filter: drop-shadow(0 0 8px var(--accent-neon-glow));
}

/* SVG Data Lines Animation */
.data-flow-line { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.data-flow-path {
  fill: none; stroke: var(--text-muted); stroke-width: 1.5; opacity: 0.1; /* Subtler gray line drawing */
  stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 12s linear infinite;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes blob-spin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.hover-lift:hover { transform: translateY(-3px); color: var(--text-main) !important; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }

@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  
  /* Restoring the vital mobile drop-down menu layer */
  .nav-links.active {
    display: flex; flex-direction: column; gap: 1.5rem; 
    position: absolute; top: 100%; left: 0; width: 100%; padding: 2rem 5%;
    background: rgba(4, 7, 12, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-neon); box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: center;
  }
  .nav-links.active a::after { display: none; } /* Disable underline anim on mobile */
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
