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

:root {
  --primary-red: #E52029;
  --primary-red-hover: #c41820;
  --primary-blue: #002060;
  --primary-blue-hover: #001a4d;
  --dark-bg: #050608;
  --card-bg: rgba(10, 11, 15, 0.8);
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --accent-blue: #0ea5e9;
  --platinum: #e5e7eb;
}

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

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

h1, h2, h3, h4, .heading-primary, .heading-secondary {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 50%, rgba(229, 32, 41, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 32, 96, 0.12) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Base Utilities */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

.heading-primary {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.heading-secondary {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.heading-secondary::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-red {
  color: var(--primary-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(229, 32, 41, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 32, 41, 0.5);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary-red);
  background: rgba(229, 32, 41, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(229, 32, 41, 0.4);
  box-shadow: 0 0 50px rgba(229, 32, 41, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.glass-premium {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.pulse-red {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 32, 41, 0.7);
  animation: pulse-red 2s infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 32, 41, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(229, 32, 41, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 32, 41, 0); }
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(229, 32, 41, 0.1);
    border: 1px solid rgba(229, 32, 41, 0.3);
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

/* Navbar */
header.scrolled {
  padding: 5px 0;
  background: rgba(15, 16, 18, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar {
  transition: var(--transition);
  padding: 20px 0;
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.nav-link {
  color: var(--text-white) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 1rem;
  background-color: var(--primary-red);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red) !important;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Custom Navbar Collapse for Mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
  }
}

/* Mobile Menu Toggle - DEPRECATED for Bootstrap */
.mobile-menu-btn {
  display: none;
}

/* Footer */
footer {
  background: #080808;
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--primary-red);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* Mouse Glow Effect */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 32, 41, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(229, 32, 41, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 55%;
  transform: translateY(-50%);
  width: 45%;
  height: 60%;
  pointer-events: none;
}

.circuit-bg {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(229, 32, 41, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 32, 41, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.5;
}

/* Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.overview-card {
  padding: 40px;
  text-align: center;
  transition: var(--transition);
}

.overview-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-red);
}

.overview-card i {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.overview-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.overview-card p {
  color: var(--text-muted);
}

/* Services Preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-item {
  position: relative;
  padding: 30px;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-item p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-item a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-item a:hover {
  gap: 15px;
}

/* CTA */
.cta {
  background: linear-gradient(rgba(15, 16, 18, 0.8), rgba(15, 16, 18, 0.8)), 
              url('Knowledge_Logo_No-BG.png') center/contain no-repeat;
  background-attachment: fixed;
}

/* Responsive */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.text-center {
  text-align: center;
}

.dual-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list i {
  color: var(--primary-red);
}

.page-header {
  background: linear-gradient(to bottom, #151618, var(--dark-bg));
  padding-top: 180px;
  padding-bottom: 80px;
}

/* Animations for Mobile Menu */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #0f1012;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    z-index: 1001;
    display: flex;
    border-left: 1px solid var(--glass-border);
  }

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

  .dual-column-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.tech-visualizer {
  background: rgba(229, 32, 41, 0.03);
  padding: 80px 60px;
  border-radius: 40px;
  margin-top: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.node {
  width: 15px;
  height: 15px;
  background: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-red);
}

.line {
  height: 2px;
  width: 50px;
  background: linear-gradient(90deg, var(--primary-red), transparent);
}

@media (max-width: 968px) {
  .tech-visualizer {
    padding: 40px 20px;
    margin-top: 5rem;
  }
}

/* --- WhatsApp Floating Icon --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(15deg);
  color: #FFF;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.logo-white {
  filter: brightness(0) invert(1);
  height: 50px;
  width: auto;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 80px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 320px;
  line-height: 1.8;
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  letter-spacing: 0.5px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links li, .footer-contact li {
  margin-bottom: 1.2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-red);
  transform: translateX(8px);
}

.footer-contact li {
  display: flex;
  gap: 15px;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--primary-red);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-red);
  transform: translateY(-5px);
}

/* Mobile Footer Fixes */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations Hub */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* SEO Content Boosters */
.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
