/* ============================================
   InitiateHUB Modern Styles - Refined
   ============================================ */

:root {
  /* Light Theme Variables */
  --primary-color: #4A90E2;
  --primary-gradient: linear-gradient(135deg, #4A90E2 0%, #6C5CE7 100%);
  --secondary-color: #6C5CE7;

  --bg-body: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-surface-secondary: #F4F6F9;

  --text-main: #2D3436;
  --text-muted: #636E72;

  --border-color: #E2E8F0;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 25px 50px rgba(74, 144, 226, 0.25);

  --navbar-bg: #FFFFFF;
  --navbar-blur: none;

  --hero-bg: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --primary-color: #5FA3F5;
  --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --secondary-color: #A78BFA;

  --bg-body: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-secondary: #020617;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;

  --border-color: #334155;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.6);

  --navbar-bg: #0F172A;

  --hero-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 100px 0;
  position: relative;
}

/* Navigation */
.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--navbar-bg);
  backdrop-filter: var(--navbar-blur);
  -webkit-backdrop-filter: var(--navbar-blur);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-gradient);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(0.5);
}

/* Adjust based on theme if needed */
[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

/* Theme Toggle */
.theme-toggle {
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

/* Hero */
.hero-section {
  padding: 180px 0 100px;
  background: var(--hero-bg);
}

.hero-title {
  font-size: 3.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-image-wrapper {
  perspective: 1000px;
}

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Cards */
.app-card,
.feature-box,
.science-card,
.testimonial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.app-card:hover,
.feature-box:hover,
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.app-card-image {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
}

.app-card-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-image img {
  transform: scale(1.05);
}

.feature-badge {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 5px;
  display: inline-block;
  margin-bottom: 5px;
}

/* Video Section */
.video-section {
  background: #000;
  position: relative;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0.8;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Buttons & CTA */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.cta-section {
  background: var(--primary-gradient);
  color: white;
}

.cta-title {
  color: white;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

/* Contact & Footer */
.contact-section {
  background-color: var(--bg-surface-secondary);
}

.contact-form {
  background-color: var(--bg-surface);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.form-control {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 15px;
  border-radius: 10px;
}

.footer {
  background-color: var(--bg-surface);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Animation Utility */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.shadow-strong {
  box-shadow: var(--shadow-strong);
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
}