/* =========================================================================
   VARIABLES & THEMING (Dark Theme with Neon Accents)
   ========================================================================= */
:root {
  --bg-color: #030514;
  /* Deep space blue/black */
  --bg-darker: #01020a;
  --text-primary: #ffffff;
  --text-secondary: #94A3B8;

  /* Vihrant Accents */
  --accent-primary: #6366f1;
  /* Indigo */
  --accent-secondary: #06b6d4;
  /* Cyan */
  --accent-glow: rgba(6, 182, 212, 0.4);
  --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px 0;
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* =========================================================================
   LIGHT MODE VARIABLES
   ========================================================================= */
body.light-mode {
  --bg-color: #f8fafc;
  /* Very light slate */
  --bg-darker: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-highlight: rgba(0, 0, 0, 0.15);
}

body.light-mode .glass-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar.scrolled {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-menu {
  background: rgba(248, 250, 252, 0.95);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

body.light-mode .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-number {
  color: var(--text-primary);
}

body.light-mode .service-icon {
  color: var(--accent-primary);
}

body.light-mode .plan-features i {
  color: rgba(0, 0, 0, 0.2);
}

body.light-mode .plan-features i.text-accent {
  color: var(--accent-secondary);
}

body.light-mode .footer {
  background: #f1f5f9;
}

body.light-mode .social-links a {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .social-links a:hover {
  color: white;
  background: var(--gradient-brand);
}

/* Logos visibility */
.logo-img {
  height: 48px;
  width: auto;
}

.logo-light {
  display: none;
}

body.light-mode .logo-dark {
  display: none;
}

body.light-mode .logo-light {
  display: block;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

.bg-darker {
  background-color: var(--bg-darker);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography Classes */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-accent {
  color: var(--accent-secondary);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-auto {
  margin-top: auto;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

/* =========================================================================
   DECORATIVE ELEMENTS
   ========================================================================= */
.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.orb-1 {
  background: var(--accent-primary);
  top: -200px;
  left: -200px;
}

.orb-2 {
  background: var(--accent-secondary);
  bottom: -200px;
  right: -200px;
  opacity: 0.3;
}

/* Glassmorphism Utilities */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-highlight);
  transform: translateY(-2px);
}

/* =========================================================================
   HEADER / NAVBAR
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(3, 5, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.logo-t {
  font-weight: 900;
  font-size: 1.5rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 100%;
  height: 100vh;
  background: rgba(3, 5, 20, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  border-left: 1px solid var(--glass-border);
  padding: 40px;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.close-menu-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 40px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-link:hover {
  color: white;
}


/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  /* Offset for navbar */
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Decorative Hero Mockup */
.hero-image-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-mockup {
  width: 100%;
  aspect-ratio: 4/3;
  padding: 0;
  overflow: hidden;
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--glass-highlight);
}

.hero-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg);
}

.mockup-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.mockup-content {
  padding: 30px;
  height: calc(100% - 32px);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.mockup-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.w-75 {
  width: 75%;
}

.w-50 {
  width: 50%;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.mockup-box {
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.mockup-brand {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
}


/* =========================================================================
   GENERIC SECTION HEATERS
   ========================================================================= */
.section-header {
  max-width: 650px;
  margin-bottom: 60px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}


/* =========================================================================
   FEATURES
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--glass-highlight);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
}

.service-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  filter: blur(80px);
  opacity: 0;
  top: -50px;
  right: -50px;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.service-card:hover .service-glow {
  opacity: 0.5;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}


/* =========================================================================
   PRICING
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlighted {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  z-index: 2;
}

.pricing-card.highlighted:hover {
  transform: scale(1.05) translateY(-5px);
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 30px;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.plan-price span {
  color: var(--accent-secondary);
}

.plan-price small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-price-old {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.plan-features {
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.plan-features i {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.2);
}

.plan-features i.text-accent {
  color: var(--accent-secondary);
}

/* =========================================================================
   PORTFOLIO
   ========================================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-item {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.portfolio-img {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-info h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}


/* =========================================================================
   CTA SECTION
   ========================================================================= */
.cta-card {
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}


/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: #000000;
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-secondary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid var(--glass-border);
}

.social-links a:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}


/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}


/* =========================================================================
   MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.highlighted {
    transform: none;
  }

  .pricing-card.highlighted:hover {
    transform: translateY(-5px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-col {
    grid-column: span 1;
  }
}