/* ============================================
   AIPE Premium Design Overrides
   (Glassmorphism, Neon Glows, Micro-Animations)
   ============================================ */

:root {
  /* Richer, more vibrant colors */
  --clr-primary: #818CF8; /* Indigo */
  --clr-primary-rgb: 129, 140, 248;
  --clr-secondary: #C084FC; /* Purple */
  --clr-secondary-rgb: 192, 132, 252;
  --clr-accent: #38BDF8; /* Sky Blue */
  --clr-accent-rgb: 56, 189, 248;
  --clr-bg-dark: #05050A; /* Deeper dark for better contrast */
  --clr-bg-card: rgba(18, 22, 33, 0.4); /* More transparent for glass */
  --clr-bg-glass: rgba(255, 255, 255, 0.05);
  --clr-border: rgba(255, 255, 255, 0.1);
  --clr-border-glow: rgba(129, 140, 248, 0.5);
  
  --clr-gradient-1: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  --clr-gradient-2: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
  
  --shadow-card: 0 10px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.4);
  --shadow-accent: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* 1. Cyber Grid Background & Enhanced Orbs */
body {
  background-color: var(--clr-bg-dark);
}

.bg-particles {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

.bg-particles .orb {
  filter: blur(100px);
  opacity: 0.25; /* Brighter orbs */
}

/* 2. Enhanced Buttons with Light Sweep */
.btn-primary {
  background: var(--clr-gradient-1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: var(--shadow-glow) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(192, 132, 252, 0.6) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* 3. True Glassmorphism Cards (Faculty, News, Curriculum) */
.faculty-card, .gallery-item, .feature-card, .curriculum-tables table {
  background: var(--clr-bg-card) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  border: 1px solid var(--clr-border) !important;
  box-shadow: var(--shadow-card) !important;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Bounce effect */
}

.faculty-card:hover, .gallery-item:hover, .feature-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--clr-border-glow) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), var(--shadow-glow) !important;
}

/* Internal Images inside Cards */
.faculty-card .photo img, .gallery-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.faculty-card:hover .photo img, .gallery-item:hover img {
  transform: scale(1.08) !important;
}

/* 4. Glowing Text for Headings */
.section-title {
  background: linear-gradient(to right, #FFF, var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.hero-title .highlight {
  background: var(--clr-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(192, 132, 252, 0.5);
}

/* 5. Sleeker Navbar */
.navbar.scrolled {
  background: rgba(5, 5, 10, 0.7) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 6. Form Inputs */
input, select, textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFF !important;
  backdrop-filter: blur(5px) !important;
  transition: 0.3s !important;
}

input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--clr-primary) !important;
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.3) !important;
  outline: none !important;
}
