/* Smart Campus - Enhanced Styles */

html { scroll-behavior: smooth; }

/* Disable Tailwind hover effects on touch devices */
@media (hover: none) {
  [class*="hover:"]:hover {
    color: inherit !important;
    background-color: inherit !important;
    transform: none !important;
    box-shadow: inherit !important;
  }
  /* Explicitly handle common background color transitions to prevent sticky states */
  .hover\:bg-accent:hover { background-color: #E0F2FE !important; } /* surface-alt default for tabs */
  .hover\:bg-accent-light:hover { background-color: #2563EB !important; } /* primary accent */
  .hover\:bg-gray-100:hover { background-color: transparent !important; }
}

/* ===== Navbar ===== */
#navbar {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#navbar a, #navbar button { color: #0F172A; }
#nav-indicator {
  opacity: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border: 1px solid rgba(30, 64, 175, 0.28);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: left 0.3s ease, width 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
}
.nav-link {
  z-index: 1;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-link.has-indicator {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}
.nav-cta {
  color: #0F172A !important;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
@media (hover: hover) {
  .nav-cta:hover,
  .nav-cta:focus-visible {
    color: #0F172A !important;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(180, 83, 9, 0.18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
}
.navbar-logo {
  display: block;
  height: 81px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .navbar-logo {
    height: 48px;
    max-width: 180px;
  }
}

/* ===== Hero Enhancements ===== */

/* Hero video glass frame */
.hero-video-frame {
  background: #fff;
  border: 2px solid #1E293B;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ===== Claymorphism Feature Cards ===== */
.feature-card {
  border-radius: 20px !important;
  border: 2px solid #1E293B !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
  background: #fff !important;
  position: relative;
  overflow: hidden;
}
@media (hover: hover) {
  .feature-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  }
}

/* ===== Stat Items ===== */
.stat-item {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid #1E293B;
}

/* ===== Video Cards - Gallery Style ===== */
.video-item {
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid #1E293B;
  background: #fff;
}
@media (hover: hover) {
  .video-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
}
.video-item .aspect-video {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.video-item .aspect-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.08) 100%);
  pointer-events: none;
}

/* ===== Gallery Concept Cards ===== */
#gallery .group {
  border-radius: 20px !important;
  overflow: hidden;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}
@media (hover: hover) {
  #gallery .group:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  }
}

/* ===== Invest Section Cards ===== */
#invest .rounded-2xl {
  background: #fff !important;
  border: 2px solid #1E293B !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
@media (hover: hover) {
  #invest .rounded-2xl:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
}

/* ===== Stats Bar Enhancement ===== */
.stat-item {
  position: relative;
  padding: 1rem;
  border-radius: 16px;
}

/* ===== Section Decorative Gradients ===== */
.section-gradient-top {
  background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
}

/* ===== Scroll Reveal - Enhanced ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ===== Fade In ===== */
.animate-fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Video Filter Tabs ===== */
.video-tab {
  transition: all 0.25s ease-out;
  border: 1px solid transparent;
}
@media (hover: hover) {
  .video-tab:hover { transform: translateY(-1px); }
}
.video-tab.active {
    background-color: #2563EB !important; /* accent */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);  }
/* ===== Contact Cards ===== */
#contact .rounded-2xl {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
@media (hover: hover) {
  #contact .rounded-2xl:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
}

/* ===== Video Modal ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.video-modal.active { opacity: 1; pointer-events: auto; }

/* ===== Video Poster & Play Button ===== */
.video-poster {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.video-poster .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s;
}
.video-poster .play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s, filter 0.3s;
}
@media (hover: hover) {
  .video-poster:hover .play-btn {
    background: rgba(0,0,0,0.15);
  }
  .video-poster:hover .play-btn svg {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .animate-fade-in { animation: none; }
.feature-card, .video-item, #invest .rounded-2xl, #gallery .group, #contact .rounded-2xl {
    transition: none !important;
  }
  .feature-card:hover, .video-item:hover, #invest .rounded-2xl:hover, #gallery .group:hover {
    transform: none !important;
  }
}
