/* Header & Nav */
#main-header {
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s, padding 0.4s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
#main-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0 !important;
}
.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s, background 0.3s, transform 0.3s;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  z-index: 1;
}
.nav-link::before {
  content: ''; position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(34,211,238,0.1));
  opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: scale(0.9);
  z-index: -1;
}
.nav-link:hover { color: var(--text); transform: translateY(-2px); }
.nav-link:hover::before, .nav-link.active::before { opacity: 1; transform: scale(1); }
.nav-link.active { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff !important; padding: 0.6rem 1.6rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,92,246,0.5); color: #fff;}

.hamburger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 70px;
  background: var(--glass); backdrop-filter: blur(24px);
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mb-link { font-size: 1.5rem; }

/* Dropdown Hover & Customization */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
  background: var(--glass);
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-top: 0; /* Align perfectly for hover */
}
.dropdown-item {
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.2s;
  font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(34,211,238,0.1));
  color: var(--cyan);
  padding-left: 1.25rem;
}

/* Sections Global */
section { padding: 8rem 0; position: relative; z-index: 1;}

/* Hero Area (Enhanced) */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-animated {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(11,16,33,0.9) 100%);
  z-index: -1;
  transition: background 0.4s;
}
body.light-mode .hero-bg-animated {
  background: linear-gradient(to right, var(--bg) 0%, rgba(247,248,251,0.9) 100%);
}

.isometric-cube {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
@keyframes rotateCube {
  0% { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.floating-anim {
  animation: float 6s ease-in-out infinite;
}
.floating-anim-delay {
  animation: float 7s ease-in-out infinite 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

/* Cards & Grid elements */
.custom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s, border-color 0.4s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.custom-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.4s;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(6,182,212,0.06));
  border-radius: var(--radius);
  pointer-events: none;
}
.custom-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 40px 80px rgba(139,92,246,0.2);
}
.custom-card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s;
}
.custom-card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

/* New Layout: Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(139,92,246,0.15);
  border-color: var(--violet);
}
@media (max-width: 991px) {
  .bento-item { grid-column: span 12 !important; }
}
.icon-box {
  width: 65px; height: 65px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(34,211,238,0.1));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--cyan);
}
.pattern-bg-1::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 250px; height: 250px;
  background: radial-gradient(circle at bottom right, rgba(139,92,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.pattern-bg-2::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 250px; height: 250px;
  background: radial-gradient(circle at bottom right, rgba(34,211,238,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Interactive Industries Tabs Layout */
.industry-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.industry-tab-btn .tab-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(139,92,246,0.1); color: var(--violet);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  transition: all 0.3s;
}
.industry-tab-btn .arrow-icon { opacity: 0; transform: translateX(-15px); transition: all 0.3s; }

.industry-tab-btn:hover {
  transform: translateX(10px); background: linear-gradient(90deg, rgba(139,92,246,0.05), transparent);
  border-color: rgba(139,92,246,0.4);
}
.industry-tab-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-color: transparent; color: #fff;
  transform: translateX(15px);
  box-shadow: 0 15px 30px rgba(139,92,246,0.3);
}
.industry-tab-btn.active span { color: #fff !important; }
.industry-tab-btn.active .tab-icon { background: rgba(255,255,255,0.2); color: #fff; }
.industry-tab-btn.active .arrow-icon { opacity: 1; transform: translateX(0); }

.industry-content {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease; width: 100%; height: 100%; pointer-events: none;
}
.industry-content.active {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.industry-content img, .industry-mobile-content img {
  transform: scale(1.05); transition: transform 6s linear;
}
.industry-content.active img { transform: scale(1); }

.industry-mobile-content { transition: max-height 0.4s ease, opacity 0.4s ease; }
.mob-arrow { transition: transform 0.3s; opacity: 0.5; }
.industry-tab-btn.active .mob-arrow { transform: rotate(180deg); opacity: 1; }

/* Testimonial slider UI */
.testi-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all 0.3s;
}
.testi-dot.active {
  width: 30px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--cyan));
}
.testi-prev:hover { background: var(--violet); color: #fff; border-color: var(--violet) !important; transform: scale(1.1); }
.testi-next:hover { transform: scale(1.1); box-shadow: 0 10px 20px rgba(34,211,238,0.4); }

/* Orbital Animation System */
.orbital-system {
  position: relative; width: 100%; height: 350px;
  display: flex; justify-content: center; align-items: center;
}
.orbital-core {
  width: 130px; height: 130px; z-index: 10;
  animation: pulse-glow 3s infinite alternate;
}
.orbital-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%; border: 1px dashed rgba(139,92,246,0.3);
  transform-style: preserve-3d;
}
.orbital-ring.ring-1 { width: 220px; height: 220px; margin: -110px 0 0 -110px; animation: orbit 20s linear infinite; }
.orbital-ring.ring-2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: orbit 30s linear infinite reverse; }
.orbital-ring.ring-3 { width: 380px; height: 380px; margin: -190px 0 0 -190px; border-style: dotted; animation: orbit 40s linear infinite; }
.orbital-ring.ring-4 { width: 440px; height: 440px; margin: -220px 0 0 -220px; animation: orbit 50s linear infinite reverse; }

.orbital-planet {
  position: absolute; width: 45px; height: 45px;
  top: -22.5px; left: 50%; margin-left: -22.5px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  animation: counter-orbit 10s linear infinite;
}
.ring-1 .orbital-planet { animation-duration: 20s; }
.ring-2 .orbital-planet { animation-duration: 30s; animation-direction: reverse; background: var(--surface); border: 2px solid var(--violet); }
.ring-2 .orbital-planet i { color: var(--violet) !important; }
.ring-3 .orbital-planet { animation-duration: 40s; }
.ring-4 .orbital-planet { animation-duration: 50s; animation-direction: reverse; background: var(--surface); border: 2px solid var(--cyan); }
.ring-4 .orbital-planet i { color: var(--cyan) !important; }

@keyframes orbit { 100% { transform: rotate(360deg); } }
@keyframes counter-orbit { 100% { transform: rotate(-360deg); } }
@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(34,211,238,0.2), inset 0 0 10px rgba(34,211,238,0.1); }
  100% { box-shadow: 0 0 40px rgba(139,92,246,0.4), inset 0 0 20px rgba(139,92,246,0.2); }
}

/* Numbered Steps / Solutions */
.solution-item {
  display: flex; gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s, background 0.4s;
  border-radius: 12px;
}
.solution-item:first-of-type { border-top: 1px solid var(--border); }
.solution-item:hover { 
  padding-left: 1.5rem; 
  background: linear-gradient(90deg, rgba(139,92,246,0.05), transparent); 
  border-bottom-color: rgba(139,92,246,0.3);
}
.solution-num {
  font-family: 'Sora', sans-serif; font-size: 3.5rem; font-weight: 800;
  line-height: 1; color: transparent; 
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.3;
  transition: opacity 0.4s, transform 0.4s; min-width: 60px;
}
.solution-item:hover .solution-num { opacity: 1; transform: scale(1.1); }
.solution-title { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }

/* Mission / Vision Cards */
.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.4s, box-shadow 0.4s;
}
.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
}

/* Check Icons */
.check-icon {
  width: 28px; height: 28px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.8rem; color: var(--violet);
  transition: transform 0.3s;
}
.d-flex:hover .check-icon { transform: scale(1.2); background: var(--violet); color: #fff;}

/* Footer elements */
.footer {
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-socials a {
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); text-decoration: none;
}
.footer-socials a:hover {
  border-color: var(--violet); background: var(--violet); color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(139,92,246,0.4);
}
.footer-link {
  color: var(--muted); text-decoration: none; transition: color 0.2s, transform 0.2s; display: inline-block; margin-bottom: 0.6rem;
}
.footer-link:hover { color: var(--text); transform: translateX(5px); }

/* Forms */
.form-control-custom {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  transition: all 0.3s;
}
.form-control-custom:focus {
  background: rgba(139,92,246,0.05);
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
  outline: none;
}
.form-control-custom::placeholder {
  color: var(--muted);
}
/* Enhanced Scroll Indicator */
.mouse-indicator {
  width: 30px; height: 50px;
  border: 2px solid var(--muted);
  border-radius: 20px;
  position: relative;
  display: flex; justify-content: center;
  opacity: 0.6;
}
.mouse-wheel {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 4px;
  margin-top: 8px;
  animation: scrollWheel 2s infinite ease;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* Helpers */
.text-color-primary { color: var(--text) !important; }
.text-color-muted { color: var(--muted) !important; }
