@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --color-primary: #000000;
  --color-secondary: #121212;
  --color-charcoal-light: #1e1e1e;
  --color-electric-blue: #00d2ff;
  --color-neon-green: #39ff14;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Core Settings */
html {
  scroll-behavior: smooth;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--color-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-syne {
  font-family: var(--font-display);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-electric-blue);
  box-shadow: 0 0 10px var(--color-electric-blue);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 210, 255, 0.4), 0 0 15px rgba(0, 210, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.8), 0 0 25px rgba(0, 210, 255, 0.4);
  }
}

@keyframes greenPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.4), 0 0 15px rgba(57, 255, 20, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.8), 0 0 25px rgba(57, 255, 20, 0.4);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-blue {
  animation: neonPulse 2s infinite ease-in-out;
}

.pulse-green {
  animation: greenPulse 2s infinite ease-in-out;
}

/* Glassmorphism Components */
.glass-panel {
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(0, 210, 255, 0.2);
  transform: translateY(-5px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glowing text and buttons */
.text-glow-blue {
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.6), 0 0 20px rgba(0, 210, 255, 0.2);
}

.text-glow-green {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.2);
}

.border-glow-blue:hover {
  border-color: var(--color-electric-blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.border-glow-green:hover {
  border-color: var(--color-neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* Interactive Timetable & Grid */
.schedule-slot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.schedule-slot:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--color-electric-blue);
}

/* Custom Checkbox and inputs styling */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-electric-blue) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Hover Zoom effects */
.hover-zoom-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-zoom-container:hover .hover-zoom-img {
  transform: scale(1.08);
}

/* Scroll tracker dynamic width */
#scroll-indicator {
  height: 3px;
  background: linear-gradient(to right, var(--color-electric-blue), var(--color-neon-green));
  width: 0%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Mobile nav panel */
#mobile-menu-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Masonry & grids */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
}

/* Custom Parallax background wrapper */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll; /* Disable parallax on tablet/mobile for performance */
  }
}
