/* ==========================================================================
   WEBITOF - Optimized Design System & Custom Stylesheet
   Theme: Futuristic Dark Tech / EdTech SaaS
   ========================================================================== */

/* Preconnect and load only necessary weights with display=swap for performance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Plus+Jakarta+Sans:wght@500;800&display=swap');

:root {
  --bg-dark-primary: #050816;
  --bg-dark-secondary: #081020;
  --bg-dark-tertiary: #0b1020;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(20, 30, 55, 0.8);
  
  --accent-blue-vivid: #2563eb;
  --accent-blue-bright: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-glow: rgba(59, 130, 246, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark-primary);
  color: var(--text-white);
}

body {
  background-color: var(--bg-dark-primary);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.bg-glow-orb-top {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(5, 8, 22, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-orb-right {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -100px;
  top: 30%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(5, 8, 22, 0) 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-glow);
  box-shadow: 0 12px 35px -10px rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
}

/* Floating Tech Badge Animation */
.floating-badge {
  animation: float-anim 5s ease-in-out infinite alternate;
}

.floating-badge-delayed {
  animation: float-anim 6s ease-in-out 1.5s infinite alternate;
}

@keyframes float-anim {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050816;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Active State Navigation Highlight */
.nav-link {
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-blue-bright), transparent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  border-radius: 4px;
}

.nav-link:hover::after {
  width: 80%;
  opacity: 0.5;
}

.nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-link.active::after {
  width: 100%;
  opacity: 1;
  background: linear-gradient(90deg, #60a5fa, #2563eb, #60a5fa);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.8);
}

/* Text Gradients & Highlights */
.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accordion Custom Styling */
.accordion-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.accordion-header {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-blue-bright);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Marquee Section Styles */
.mask-edges {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marquee-reverse 35s linear infinite;
}

.marquee-track-reverse:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.company-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.5) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.company-card:hover {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 25px -10px rgba(59, 130, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Custom styles matching header/footer requirements */
.header-nav {
  transition: all 0.3s ease;
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav.scrolled {
  background: rgba(5, 8, 22, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.btn-primary-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-blue:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* Hero Banner Background Responsive Settings */
.hero-home-bg {
  background-image: linear-gradient(to right, rgba(5, 8, 22, 0.95) 20%, rgba(5, 8, 22, 0.6) 50%, rgba(5, 8, 22, 0.92) 100%), url('assets/img/home_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-mern-bg {
  background-image: linear-gradient(rgba(5, 8, 22, 0.88), rgba(5, 8, 22, 0.98)), url('assets/img/mern_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-dm-bg {
  background-image: linear-gradient(rgba(5, 8, 22, 0.88), rgba(5, 8, 22, 0.98)), url('assets/img/bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero-home-bg {
    background-image: linear-gradient(to bottom, rgba(5, 8, 22, 0.88) 0%, rgba(5, 8, 22, 0.98) 100%), url('assets/img/home_bg.webp') !important;
    background-position: 80% center !important; /* shifts background to focus on building lit logo on mobile */
  }
  
  .hero-mern-bg {
    background-image: linear-gradient(to bottom, rgba(5, 8, 22, 0.85) 0%, rgba(5, 8, 22, 0.98) 100%), url('assets/img/mern_bg.webp') !important;
    background-position: 82% center !important; /* shifts background to focus on building lit logo on mobile */
  }

  .hero-dm-bg {
    background-image: linear-gradient(to bottom, rgba(5, 8, 22, 0.85) 0%, rgba(5, 8, 22, 0.98) 100%), url('assets/img/bg.webp') !important;
    background-position: 80% center !important;
  }
}
