/* ====================================================== RESET & BASE ====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #020617, #000000);
  color: #e5e7eb;
  overflow-x: hidden;
}
body {
  margin: 0;
}

.hero h1 {
  margin-top: 0;
}



/* ====================================================== ELECTRICAL BACKGROUND ANIMATION (Flowing current lines) ====================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(56,189,248,0.05) 0px,
      rgba(56,189,248,0.05) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(168,85,247,0.04) 0px,
      rgba(168,85,247,0.04) 1px,
      transparent 1px,
      transparent 140px
    );
  animation: currentFlow 20s linear infinite;
  z-index: -1;
}

@keyframes currentFlow {
  from { background-position: 0 0; }
  to { background-position: 600px 600px; }
}

/* ====================================================== NAVBAR (Circuit Glass Style) ====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56,189,248,0.15);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56,189,248,0.6);
}

.nav-links a {
  color: #cbd5f5;
  text-decoration: none;
  margin-left: 26px;
  position: relative;
  transition: 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* ====================================================== HERO (Oscilloscope Signal Feel) ====================================================== */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(56,189,248,0.12), transparent 60%);
}

.hero h1 {
  font-size: 50px;
  background: linear-gradient(90deg,#38bdf8,#a855f7,#38bdf8);
  background-size: 200% auto;
  animation: signalWave 4s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes signalWave {
  to { background-position: 200% center; }
}

.hero p {
  margin: 18px 0 30px;
  color: #cbd5f5;
}

/* ====================================================== FEST LOGO (Energy Core Animation) ====================================================== */
.fest-logo {
  width: 350px;
  margin: 30px auto;
  display: block;
  animation: logoPowerOn 1.8s ease-out forwards, energyPulse 4s infinite;
}


@keyframes logoPowerOn {
  0% {
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 0 rgba(56,189,248,0));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 35px rgba(56,189,248,0.8));
  }
}

@keyframes energyPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(56,189,248,0.6)); }
  50% { filter: drop-shadow(0 0 45px rgba(168,85,247,0.9)); }
}

/* ====================================================== BUTTON (Electric Spark) ====================================================== */
.btn {
  padding: 13px 28px;
  border-radius: 30px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
  transition: 0.3s;
}

.btn:hover {
  box-shadow: 0 0 40px rgba(168,85,247,0.7);
  transform: translateY(-2px);
}

/* ====================================================== SECTIONS (Lab Glass Panels) ====================================================== */
.section {
  padding: 100px 10%;
}

.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(56,189,248,0.15);
  backdrop-filter: blur(16px);
  border-radius: 20px;
}

/* ====================================================== GRID LAYOUT ====================================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.grid img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(56,189,248,0.25);
  transition: 0.5s;
}

.grid img:hover {
  transform: scale(1.04);
}

/* ====================================================== TEXT ====================================================== */
.text h2 {
  font-size: 32px;
  color: #38bdf8;
  margin-bottom: 14px;
}

.text p {
  line-height: 1.7;
  color: #cbd5f5;
}

/* ====================================================== SCROLL FADE (Signal Rise) ====================================================== */
.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.9s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================== FOOTER ====================================================== */
footer {
  text-align: center;
  padding: 35px;
  border-top: 1px solid rgba(56,189,248,0.15);
  color: #94a3b8;
}
/* ================= CIRCUIT SVG OVERLAY ================= */
.circuit-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
}

.circuit-line {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: circuitFlow 12s linear infinite;
}

.circuit-node {
  fill: #a855f7;
  animation: nodePulse 2.5s ease-in-out infinite;
}

@keyframes circuitFlow {
  to { stroke-dashoffset: -200; }
}

@keyframes nodePulse {
  0%,100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 5; }
}

/* ================= EVENTS ================= */
.events-section {
  padding: 120px 10%;
  text-align: center;
}

.events-section h2 {
  font-size: 2.5rem;
  color: cyan;
  margin-bottom: 50px;
}

/* EVENT GRID */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

/* EVENT CARD */
.event-card {
  position: relative;
  background: #0b1320;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,255,255,0.15);
  transform-style: preserve-3d;
  transition: 0.5s;
}

.event-card:hover {
  transform: translateY(-10px) rotateX(5deg);
}

/* PCB TRACE EFFECT */
.event-card .pcb {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
  opacity: 0;
  animation: pcb 2s linear infinite;
}

.event-card:hover .pcb {
  opacity: 1;
}

@keyframes pcb {
  from { background-position: 0; }
  to { background-position: 600px; }
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-info {
  padding: 20px;
}

.event-info h3 {
  margin-bottom: 15px;
  color: #e6f1ff;
}

.event-info button {
  padding: 10px 22px;
  border-radius: 25px;
  border: 2px solid cyan;
  background: transparent;
  color: cyan;
  cursor: pointer;
  transition: 0.4s;
}

.event-info button:hover {
  background: cyan;
  color: #000;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #0c1425;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(0,255,255,0.3);
  animation: pop 0.5s ease;
}

@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  font-size: 28px;
  float: right;
  cursor: pointer;
  color: cyan;
}

/* FORM */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.register-form input,
.register-form select {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #02040a;
  color: #e6f1ff;
}

.register-form button {
  margin-top: 10px;
  padding: 12px;
  background: cyan;
  color: #000;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s;
}

.register-form button:hover {
  background: #00e0ff;
}


.modal-content h2 {
  color: cyan;
  margin-bottom: 10px;
}

.modal-content h4 {
  margin-top: 18px;
  color: #38bdf8;
}

.modal-content ul {
  padding-left: 18px;
  line-height: 1.6;
}

.modal-content p {
  line-height: 1.6;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
}




/* ===========================
   PORTFOLIO / FACULTY STYLES
   =========================== */

/* ===== PORTFOLIO HERO ===== */
.portfolio-hero {
  text-align: center;
  padding: 140px 20px 80px;
}

.portfolio-hero h1 {
  font-size: 48px;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #38bdf8);
  background-size: 200%;
  animation: portfolioGradient 6s linear infinite;
  background-clip: text;
  color: transparent;
}

.portfolio-hero p {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 16px;
}

@keyframes portfolioGradient {
  to { background-position: 200%; }
}

/* ===== FACULTY SECTION ===== */
.faculty-section {
  padding: 80px 10%;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 45px;
}

/* ===== FACULTY CARD ===== */
.faculty-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  transform-style: preserve-3d;
  animation: facultyFadeUp 1s ease forwards;
}

/* Hover motion */
.faculty-card:hover {
  transform: translateY(-12px) rotateX(4deg);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.45);
}

/* ===== SOFT ELECTRICAL GLOW BORDER ===== */
.faculty-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(120deg, #38bdf8, #a855f7, #38bdf8);
  opacity: 0.18;
  filter: blur(14px);
  z-index: -1;
  animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.35; }
}

/* ===== FACULTY IMAGE ===== */
.faculty-card img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  margin: 0 auto 18px;
  transition: transform 0.5s ease;
}

.faculty-card:hover img {
  transform: scale(1.08) translateY(-4px);
}

/* ===== TEXT ===== */
.faculty-card h3 {
  font-size: 20px;
  color: #e6f1ff;
  margin-top: 6px;
}

.faculty-card p {
  margin: 6px 0;
  color: #94a3b8;
  font-size: 14px;
}

/* ===== SPECIALIZATION BADGE ===== */
.faculty-card span {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ===== ENTRANCE ANIMATION ===== */
@keyframes facultyFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .portfolio-hero h1 {
    font-size: 34px;
  }

  .faculty-section {
    padding: 60px 6%;
  }

  .faculty-card {
    padding: 28px 18px;
  }
}




/* ================= HERO EXTRA INFO ================= */
.hero-info {
  margin-top: 18px;
  text-align: center;
  color: #cfefff;
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

/* ================= COUNTDOWN TIMER ================= */
.countdown {
  margin: 30px auto 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.countdown div {
  width: 85px;
  height: 85px;
  background: rgba(0, 234, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 10px rgba(0,234,255,0.25),
    0 0 18px rgba(0,234,255,0.35);
  animation: pulseGlow 2.5s infinite;
}

.countdown span {
  font-size: 28px;
  font-weight: 700;
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0,234,255,0.8);
}

.countdown small {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b7eaff;
}


/* ================= HERO HIGHLIGHTS ================= */
/* ===== UPDATED HIGHLIGHT SESSION STYLE ===== */
.slideshow {
  margin: 40px auto;
  max-width: 900px;
  height: 420px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(168,85,247,0.45);
  position: relative;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(168,85,247,0.08));
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(50px) scale(1.05);
  transition: opacity 1s ease, transform 1.2s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}


/* ===== PAST EVENTS SLIDER ===== */
.past-slider {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 0 35px rgba(0,234,255,0.35);
}

.past-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: pastMove 25s linear infinite;
}

.past-track img {
  width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(56,189,248,0.4);
  transition: transform 0.4s;
}

.past-track img:hover {
  transform: scale(1.08);
}

@keyframes pastMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-highlights {
   margin-top: 28px; 
   display: flex; 
   justify-content: center; 
   gap: 30px; flex-wrap: wrap; 
   font-size: 14px; 
   color: #e8fbff; 
   letter-spacing: 1px; } 
.hero-highlights span {
   padding: 8px 18px; 
   border-radius: 30px; 
   background: linear-gradient( 135deg, rgba(0,234,255,0.18), rgba(0,234,255,0.04) ); 
   border: 1px solid rgba(0,234,255,0.25); box-shadow: 0 0 18px rgba(0,234,255,0.35); 
   transition: transform 0.4s, box-shadow 0.4s; } 
.hero-highlights span:hover { transform: translateY(-5px) scale(1.05);
   box-shadow: 0 0 35px rgba(0,234,255,0.75); }



   /* ===== HIGHLIGHT SESSION CARD ===== */
.highlight-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 35px;
  color: #e6f1ff;
}

.highlight-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.highlight-card {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220, #020617);
  box-shadow: 0 0 45px rgba(56,189,248,0.35);
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* CONTENT OVER IMAGE */
.highlight-content {
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #e6f1ff;
}

.highlight-tag {
  letter-spacing: 4px;
  font-size: 13px;
  color: #94a3b8;
}

.highlight-content h3 {
  font-size: 28px;
  margin: 8px 0 10px;
  color: #ffffff;
}

.highlight-content .date {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 10px;
}

.highlight-content .desc {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5f5;
}

/* NAV ARROWS */
.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.nav-btn:hover {
  background: rgba(56,189,248,0.35);
}

/* DOTS */
.dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.dot.active {
  width: 22px;
  border-radius: 10px;
  background: #e6f1ff;
}

/* ===== MOBILE (vertical look like screenshot) ===== */
@media (max-width: 768px) {
  .highlight-card {
    height: 320px;
  }

  .highlight-content {
    padding: 22px;
  }

  .highlight-content h3 {
    font-size: 22px;
  }

  .highlight-content .desc {
    font-size: 13px;
  }
}



/* ===== MOBILE HERO (QIS FEST STYLE) ===== */
.hero-mobile{
  padding-top:140px;
  text-align:center;
}

.hero-title{
  font-size:38px;
  background:linear-gradient(90deg,#00eaff,#a855f7);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-tagline{
  margin-top:8px;
  font-size:15px;
  color:#cfefff;
}

.hero-logo{
  width:160px;
  margin:25px auto;
  animation:energyPulse 3s infinite;
}

.hero-sub{
  font-size:14px;
  color:#94a3b8;
  line-height:1.5;
}

.hero-date{
  margin-top:10px;
  font-size:15px;
  color:#e6f1ff;
}

/* ===== COUNTDOWN ===== */
.countdown div {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: inset 0 0 15px rgba(56,189,248,0.4),
              0 0 20px rgba(56,189,248,0.3);
  animation: meterGlow 2.5s infinite alternate;
}

@keyframes meterGlow {
  from { box-shadow: 0 0 10px rgba(56,189,248,0.4); }
  to   { box-shadow: 0 0 25px rgba(168,85,247,0.6); }
}


/* ===== HERO BUTTON ===== */
.hero-btn{
  display:inline-block;
  margin-top:15px;
}

/* ===== HIGHLIGHTS ===== */
.hero-highlights{
  margin-top:25px;
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}
.hero-highlights span{
  padding:8px 16px;
  border-radius:20px;
  background:rgba(0,234,255,.12);
  box-shadow:0 0 15px rgba(0,234,255,.4);
  font-size:13px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .hero-title{font-size:32px;}
  .hero-logo{width:140px;}
}



/* ================= MOBILE NAVBAR FIX ================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1100;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  border-radius: 2px;
  transition: 0.4s;
}

/* MOBILE MODE */
@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(2,6,23,0.97);
    backdrop-filter: blur(18px);

    display: flex;                 /* IMPORTANT */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 22px;
    color: #e5e7eb;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}
/* ================= MOBILE HAMBURGER FIX ================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 2000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  border-radius: 2px;
  transition: 0.4s;
}

@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(2,6,23,0.97);
    backdrop-filter: blur(20px);

    display: flex;              /* 🔥 DO NOT REMOVE */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    transition: right 0.4s ease;
    z-index: 1500;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 22px;
  }

  /* X animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}


/* ================= ELECTRICAL ENERGY BACKGROUND ================= */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56,189,248,0.12), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(168,85,247,0.12), transparent 40%);
  animation: energyPulseBG 12s ease-in-out infinite;
  z-index: -2;
}

@keyframes energyPulseBG {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}


/* ================= GLOBAL FONTS ================= */
body {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
}

/* Logo + Fest Name */
.logo,
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Hero subtitle */
.hero h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Section titles */
h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.5px;
}

/* Countdown numbers */
.countdown span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

/* Buttons */
.btn {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* Navbar links */
.nav-links a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Paragraph text */
p {
  line-height: 1.7;
  font-size: 0.95rem;
}


.hero h1 {
  text-shadow:
    0 0 10px #00eaff,
    0 0 20px rgba(0,234,255,0.6),
    0 0 40px rgba(0,234,255,0.4);
}

/* ================= FEST MAIN HEADING ================= */
.hero h1 {
  font-family: 'Monoton', cursive;   /* Variety fest font */
  font-size: clamp(4rem, 10vw, 7rem); /* Large & responsive */
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #bcecf0;

  text-shadow:
    0 0 8px rgba(0,234,255,0.8),
    0 0 18px rgba(0,234,255,0.6),
    0 0 40px rgba(0,234,255,0.4);

  margin-bottom: 10px;
}




/* ================= ABOUT PAGE ================= */
.about-hero{
  padding:140px 10% 80px;
  text-align:center;
  background:radial-gradient(circle at top,#38bdf833,transparent 60%);
}

.about-hero h1{
  font-size:42px;
  color:#38bdf8;
}

.about-section{
  padding:90px 10%;
}

.about-section h2{
  text-align:center;
  margin-bottom:50px;
  color:#38bdf8;
}

/* ================= HOD GRID ================= */
.hod-grid{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:40px;
  align-items:center;
}

/* ================= HOD PHOTO (GRAPHICS ANIMATION) ================= */
.hod-photo img{
  width:100%;
  border-radius:20px;
  box-shadow:0 0 40px rgba(56,189,248,.4);
  animation: hodGlow 4s ease-in-out infinite;
  transition: transform .6s ease;
}

.hod-photo img:hover{
  transform: scale(1.05);
}

@keyframes hodGlow{
  0%,100%{
    box-shadow:0 0 30px rgba(56,189,248,.4);
  }
  50%{
    box-shadow:0 0 55px rgba(168,85,247,.7);
  }
}

/* ================= HOD DETAILS (CONTENT ANIMATION) ================= */
.hod-details{
  animation: hodSlide 1s ease forwards;
}

@keyframes hodSlide{
  from{
    opacity:0;
    transform: translateX(40px);
  }
  to{
    opacity:1;
    transform: translateX(0);
  }
}

/* ================= TABLE ================= */
.hod-details table{
  width:100%;
  margin:20px 0;
  border-collapse:collapse;
}

.hod-details td{
  padding:8px;
  border-bottom:1px solid rgba(255,255,255,.1);
  animation: rowFade .8s ease forwards;
}

.hod-details td:nth-child(odd){
  animation-delay:.2s;
}
.hod-details td:nth-child(even){
  animation-delay:.4s;
}

@keyframes rowFade{
  from{
    opacity:0;
    transform: translateY(10px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* ================= LIST ================= */
.hod-details ul{
  padding-left:20px;
}

.hod-details li{
  opacity:0;
  animation: listFade .6s ease forwards;
}

.hod-details li:nth-child(1){animation-delay:.2s}
.hod-details li:nth-child(2){animation-delay:.4s}
.hod-details li:nth-child(3){animation-delay:.6s}
.hod-details li:nth-child(4){animation-delay:.8s}

@keyframes listFade{
  from{
    opacity:0;
    transform: translateY(12px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width:900px){
  .hod-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .hod-details{
    animation: hodSlideMobile 1s ease forwards;
  }

  @keyframes hodSlideMobile{
    from{
      opacity:0;
      transform: translateY(30px);
    }
    to{
      opacity:1;
      transform: translateY(0);
    }
  }
}

/* ================= COURSES ================= */
.course-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
}

.course-card{
  padding:30px;
  background:rgba(255,255,255,.05);
  border-radius:18px;
  text-align:center;
  box-shadow:0 0 25px rgba(56,189,248,.25);
  transition:.4s;
}

.course-card:hover{
  transform:translateY(-10px);
  box-shadow:0 0 45px rgba(56,189,248,.6);
}

/* ================= STUDENTS ================= */
.table-wrap{
  overflow-x:auto;
}

.student-table{
  width:100%;
  border-collapse:collapse;
}

.student-table th,
.student-table td{
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.15);
  text-align:center;
}

/* ================= INFRA ================= */
/* ================= INFRASTRUCTURE CONTINUOUS MARQUEE ================= */
.infra-slider{
  overflow:hidden;
  width:100%;
  position:relative;
}

.infra-marquee{
  display:flex;
  width:fit-content;
  animation: infraScroll 80s linear infinite;
}

.infra-track{
  display:flex;
  gap:30px;
  padding-right:30px;
}

/* CONTINUOUS SCROLL */
@keyframes infraScroll{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}

/* PAUSE ON HOVER */
.infra-slider:hover .infra-marquee{
  animation-play-state: paused;
}

/* ================= INFRA CARDS ================= */
.infra-card{
  position:relative;
  flex-shrink:0;
}

.infra-card img{
  width:360px;
  height:220px;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 0 30px rgba(56,189,248,.35);
  transition:transform .4s, box-shadow .4s;
}

.infra-card:hover img{
  transform:scale(1.07);
  box-shadow:0 0 55px rgba(56,189,248,.7);
}

/* LABEL */
.infra-label{
  position:absolute;
  bottom:0;
  width:100%;
  padding:12px;
  text-align:center;
  font-weight:600;
  letter-spacing:.5px;
  color:#e5f3ff;
  background:linear-gradient(
    to top,
    rgba(2,6,23,.9),
    rgba(2,6,23,.25)
  );
  backdrop-filter:blur(6px);
  border-radius:0 0 18px 18px;
}

/* MOBILE */
@media(max-width:768px){
  .infra-card img{
    width:280px;
    height:180px;
  }
}



/* ================= EVENTS PAGE ================= */

.events-section{
  padding:120px 8%;
  background:radial-gradient(circle at top,#0b1d3a,#040814);
}

.section-title{
  font-size:38px;
  text-align:center;
  margin:80px 0 40px;
  color:#38bdf8;
}

.event-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:40px;
}

.event-card{
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  padding:15px;
  cursor:pointer;
  box-shadow:0 0 25px rgba(56,189,248,0.18);
  transition:0.4s;
}

.event-card:hover{
  transform:translateY(-14px) scale(1.05);
  box-shadow:0 0 45px rgba(168,85,247,0.6);
}

.event-card img{
  width:100%;
  border-radius:15px;
}

.event-card h3{
  text-align:center;
  margin-top:15px;
  color:#e6f1ff;
}

/* ================= MODALS ================= */

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(10px);
  z-index:3000;
  justify-content:center;
  align-items:center;
}

.modal-content{
  width:90%;
  max-width:800px;
  padding:35px;
  border-radius:25px;
  background:rgba(10,20,40,0.95);
  box-shadow:0 0 50px rgba(56,189,248,0.45);
  max-height:90vh;
  overflow-y:auto;
  position:relative;
}

.modal-content h2{
  color:#38bdf8;
}

.close{
  position:absolute;
  right:25px;
  top:15px;
  font-size:30px;
  cursor:pointer;
}

.modal-content input{
  width:100%;
  padding:12px;
  border-radius:8px;
  border:none;
  margin:10px 0;
  background:#020617;
  color:#e6f1ff;
}

/* ================= MOBILE ================= */

@media(max-width:768px){
  .section-title{font-size:30px;}
}


/* ================= CONTACT SECTION ================= */

.contact-section {
  text-align: center;
}

.contact-subtitle {
  color: #cbd5f5;
  margin-bottom: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

/* CONTACT CARD */
.contact-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(56,189,248,0.2);
  box-shadow: 0 0 30px rgba(56,189,248,0.2);
  transition: transform 0.4s, box-shadow 0.4s;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(56,189,248,0.6);
}

.contact-card h3 {
  color: #38bdf8;
  margin-bottom: 12px;
}

.contact-card p {
  margin: 6px 0;
  color: #e5e7eb;
}






/* ======================================================
   GLOBAL RESET & SAFETY (MOBILE SAFE)
====================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================================================
   BODY & ELECTRICAL BACKGROUND
====================================================== */
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: radial-gradient(circle at top, #020617, #000000);
  color: #e5e7eb;
  overflow-x: hidden;
  position: relative;
}

/* FLOWING CURRENT GRID */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(56,189,248,0.05) 0px,
      rgba(56,189,248,0.05) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(168,85,247,0.04) 0px,
      rgba(168,85,247,0.04) 1px,
      transparent 1px,
      transparent 140px
    );
  animation: currentFlow 20s linear infinite;
  z-index: -10;
}

@keyframes currentFlow {
  to { background-position: 600px 600px; }
}

/* ======================================================
   NAVBAR + MOBILE HAMBURGER
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56,189,248,0.15);
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56,189,248,0.6);
}

/* DESKTOP NAV */
.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5f5;
  position: relative;
  font-size: 15px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  border-radius: 3px;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(2,6,23,0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 20px;
  }
}

/* ======================================================
   HERO SECTION
====================================================== */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  background: linear-gradient(90deg,#38bdf8,#a855f7,#38bdf8);
  background-size: 200%;
  background-clip: text;     /* standard */
  color: transparent;
  animation: signalWave 4s linear infinite;
}


@keyframes signalWave {
  to { background-position: 200%; }
}

.hero p {
  margin: 12px auto 20px;
  max-width: 600px;
  color: #cbd5f5;
  padding: 0 12px;
}

.fest-logo {
  width: 180px;
  max-width: 70vw;
  margin: 24px auto;
  z-index: 10;
  animation: energyPulse 4s infinite;
}

@keyframes energyPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(56,189,248,0.6)); }
  50% { filter: drop-shadow(0 0 45px rgba(168,85,247,0.9)); }
}

/* ======================================================
   BUTTON
====================================================== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 30px;
  background: linear-gradient(90deg,#38bdf8,#a855f7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(56,189,248,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(168,85,247,0.8);
}

/* ======================================================
   GRID SECTIONS
====================================================== */
.section {
  padding: 90px 10%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.grid img {
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(56,189,248,0.3);
}

/* ======================================================
   SLIDERS
====================================================== */
.slider,
.past-slider,
.infra-slider {
  overflow: hidden;
}

.slide-track,
.past-track,
.infra-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollLinear 30s linear infinite;
}

@keyframes scrollLinear {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.slider img,
.past-track img,
.infra-card img {
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .slider img,
  .past-track img,
  .infra-card img {
    height: 150px;
  }
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  text-align: center;
  padding: 35px;
  border-top: 1px solid rgba(56,189,248,0.15);
  color: #94a3b8;
}


/* ================= HERO LOGO – FINAL VISIBILITY FIX ================= */

.fest-logo {
  position: relative;
  z-index: 50;              /* 🔥 higher than everything */
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ================= IMAGE VISIBILITY FIX ================= */
.hero,
.section,
.grid {
  position: relative;
  z-index: 5;
}

.hero img,
.section img,
.grid img {
  position: relative;
  z-index: 6;
}

/* Highlight Session Fix */
.slide {
  position: relative;
}

.slide img {
  z-index: 5;
}

.slide-caption {
  position: absolute;
  z-index: 10;
}
/*upi timer*/
#upiTimer{
  color:#ff4d4d;
  font-weight:600;
  margin:10px 0;
}

canvas{
  margin:15px auto;
  display:block;
}

#utrInput{
  width:100%;
  padding:12px;
  border-radius:8px;
  border:none;
  margin:15px 0;
  text-align:center;
  font-size:16px;
  letter-spacing:1px;
}


.amount{
  font-weight:600;
  margin-bottom:10px;
}

.upi-apps{
  display:flex;
  justify-content:center;
  gap:26px;
  margin:14px 0;
}

.upi-apps div{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:12px;
  opacity:0.95;
}

.upi-apps img{
  width:36px;
  height:36px;
  margin-bottom:4px;
}

.upi-steps{
  background:#0b1325;
  border-radius:12px;
  padding:14px;
  text-align:left;
  font-size:14px;
  margin:15px 0;
}

.upi-steps h4{
  margin-bottom:8px;
  color:#00eaff;
  font-family:'Orbitron';
}

.upi-steps ol{
  padding-left:18px;
}

.upi-steps li{
  margin-bottom:6px;
  line-height:1.4;
}





.upi-links{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:14px 0;
}

.upi-btn{
  padding:8px 14px;
  border-radius:20px;
  font-size:13px;
  font-weight:600;
  color:#fff;
  text-decoration:none;
}

.phonepe{ background:#5f259f; }
.gpay{ background:#1a73e8; }
.paytm{ background:#00b9f1; }








.event-started {
  font-size: 32px;
  font-weight: 700;
  color: #00eaff;
  text-align: center;
  padding: 25px 40px;
  border-radius: 20px;
  background: rgba(0, 234, 255, 0.08);
  box-shadow: 0 0 30px rgba(0,234,255,0.6);
  animation: electricGlow 1.2s infinite alternate;
}

@keyframes electricGlow {
  from {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0,234,255,0.5);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(168,85,247,0.9);
  }
}

.started-animation {
  animation: flashBackground 1s ease-in-out;
}

@keyframes flashBackground {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}



/* ===== PRO SESSION SLIDER ===== */

.pro-slider {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 0 50px rgba(56,189,248,0.5);
}

.slides {
  position: relative;
}

/* SLIDE BASE */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* IMAGE LAYER */
.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* DARK OVERLAY LAYER */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* controls darkness */
  z-index: 1;
}

/* TEXT LAYER — ALWAYS BRIGHT */
.slide-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;   /* ABOVE OVERLAY */
  padding: 15px 25px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
}

/* BRIGHT GLOW TITLE */
.slide-content h3 {
  font-size: 32px;
  color: #38bdf8;
  text-shadow:
    0 0 10px #38bdf8,
    0 0 20px #38bdf8,
    0 0 30px #38bdf8;
}

/* BRIGHT DESCRIPTION */
.slide-content p {
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
}

/* ARROWS */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 18px;
  cursor: pointer;
  z-index: 3;
}

.slide-btn.left { left: 15px; }
.slide-btn.right { right: 15px; }

/* DOTS */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background: gray;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #38bdf8;
}

/* ===== ULTRA HERO ===== */

.ultra-hero {
  position: relative;
  text-align: center;
  padding-top: 160px;
}

.glow-title {
  font-size: 70px;
  color: #00eaff;
  text-shadow:
    0 0 20px #00eaff,
    0 0 40px #00eaff,
    0 0 80px #00eaff;
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  50% { text-shadow: 0 0 40px #a855f7; }
}

.typing-text {
  margin-top: 10px;
  font-size: 28px;
  color: #fff;
  border-right: 3px solid #00eaff;
  width: fit-content;
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4s steps(30), blink .8s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 320px }
}

@keyframes blink {
  50% { border-color: transparent }
}

.pro-btn {
  margin-top: 25px;
  display: inline-block;
  padding: 15px 35px;
  border-radius: 40px;
  background: linear-gradient(90deg,#00eaff,#a855f7);
  color: white;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 25px #00eaff;
  transition: .4s;
}

.pro-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px #a855f7;
}

/* ===== FLIP COUNTDOWN ===== */

.flip {
  background: rgba(0,234,255,.08);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px #00eaff;
}

.flip span {
  font-size: 35px;
  font-weight: bold;
  display: block;
  color: #00eaff;
}

/* ===== PARTICLE BACKGROUND ===== */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
}

@media (max-width: 768px) {

  .flip {
    width: 60px;      /* was bigger */
    padding: 8px;
  }

  .flip span {
    font-size: 20px;  /* slightly smaller */
  }

  .flip small {
    font-size: 9px;
  }

}

@media (max-width: 768px) {

  /* Electrify text smaller */
  .typing-text {
    font-size: 13px;
  }

  /* Countdown container */
  .countdown {
    gap: 4px;
    flex-wrap: nowrap;   /* prevents wrapping */
  }

  /* Countdown boxes smaller */
  .flip {
    width: 45px;
    padding: 6px;
  }

  .flip span {
    font-size: 16px;
  }

  .flip small {
    font-size: 7px;
  }

}







.pro-slider {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 0 50px rgba(56,189,248,0.5);
}

.slides {
  position: relative;
}

/* SLIDE BASE */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* IMAGE LAYER */
.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* DARK OVERLAY LAYER */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* controls darkness */
  z-index: 1;
}

/* TEXT LAYER — ALWAYS BRIGHT */
.slide-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;   /* ABOVE OVERLAY */
  padding: 15px 25px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
}

/* BRIGHT GLOW TITLE */
.slide-content h3 {
  font-size: 32px;
  color: #38bdf8;
  text-shadow:
    0 0 10px #38bdf8,
    0 0 20px #38bdf8,
    0 0 30px #38bdf8;
}

/* BRIGHT DESCRIPTION */
.slide-content p {
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
}

/* ARROWS */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 18px;
  cursor: pointer;
  z-index: 3;
}

.slide-btn.left { left: 15px; }
.slide-btn.right { right: 15px; }

/* DOTS */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background: gray;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #38bdf8;
}

/* ===== ULTRA HERO ===== */

.ultra-hero {
  position: relative;
  text-align: center;
  padding-top: 160px;
}

.glow-title {
  font-size: 70px;
  color: #00eaff;
  text-shadow:
    0 0 20px #00eaff,
    0 0 40px #00eaff,
    0 0 80px #00eaff;
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  50% { text-shadow: 0 0 40px #a855f7; }
}

.typing-text {
  margin-top: 10px;
  font-size: 28px;
  color: #fff;
  border-right: 3px solid #00eaff;
  width: fit-content;
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4s steps(30), blink .8s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 320px }
}

@keyframes blink {
  50% { border-color: transparent }
}

.pro-btn {
  margin-top: 25px;
  display: inline-block;
  padding: 15px 35px;
  border-radius: 40px;
  background: linear-gradient(90deg,#00eaff,#a855f7);
  color: white;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 25px #00eaff;
  transition: .4s;
}

.pro-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px #a855f7;
}

/* ===== FLIP COUNTDOWN ===== */

.flip {
  background: rgba(0,234,255,.08);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px #00eaff;
}

.flip span {
  font-size: 35px;
  font-weight: bold;
  display: block;
  color: #00eaff;
}

/* ===== PARTICLE BACKGROUND ===== */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
}

@media (max-width: 768px) {

  .flip {
    width: 60px;      /* was bigger */
    padding: 8px;
  }

  .flip span {
    font-size: 20px;  /* slightly smaller */
  }

  .flip small {
    font-size: 9px;
  }

}

@media (max-width: 768px) {

  /* Electrify text smaller */
  .typing-text {
    font-size: 13px;
  }

  /* Countdown container */
  .countdown {
    gap: 4px;
    flex-wrap: nowrap;   /* prevents wrapping */
  }

  /* Countdown boxes smaller */
  .flip {
    width: 45px;
    padding: 6px;
  }

  .flip span {
    font-size: 16px;
  }

  .flip small {
    font-size: 7px;
  }

}