*{
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body{
   margin:0;
   background-color:black;

   background:
   linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)),
   url("for background.jpeg");

   background-size:120%;
   background-position:center;
   background-repeat:no-repeat;

   height:100vh;

   animation:moveBg 25s linear infinite;
   
}
body::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    z-index:-1;
}

@keyframes moveBg{
    0%{
        background-position:0% 50%;
    }
    50%{
        background-position:100% 50%;
    }
    100%{
        background-position:0% 50%;
    }
}



.section{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
}

                                

.can{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 60px;
    gap : 20px;

    perspective: 1000px;
    
    
}  


.box::before{
    content: "";
    position:absolute;
    inset : 0;
    border-radius: 7px;

    box-shadow:
        0 0 20px #22d3ee,
        0 0 40px #0ea5e9,
        0 0 70px rgba(14,165,233,0.7);
    
    opacity: 0;
   
   transition: transform 0.4s ease, box-shadow 0.4s ease;
   
}

.box:hover::before{
   
    opacity: 1;
}


   

.box{
    width:200px;
    height:200px;
    background-color:rgb(39, 149, 149);
    border-radius:20px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:15px;

    color:white;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;

    position:relative;
    overflow:hidden;

    transition:0.4s ease;

    transform-style: preserve-3d;
    will-change: transform;
    animation: float 4s ease-in-out infinite;

    box-shadow:
  0 10px 20px rgba(0,0,0,0.6),
  0 0 15px rgba(0,255,255,0.3);
}
@keyframes float{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-8px);
    }
    100%{
        transform: translateY(0px);
    }
}
   
.box::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:20px;

    border:2px solid transparent;
    background:linear-gradient(120deg,#00ffff,#22d3ee,#5b04f1,#e872bc,#3bec6a);
    background-size:300%;

    opacity:0;
    transition:0.4s;

    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite:exclude;
    padding:2px;
}
    
.box:hover::after{
    opacity:1;
    animation:borderGlow 3s linear infinite;
}

@keyframes borderGlow{
    0%{background-position:0%}
    100%{background-position:300%}
}

.box img{
    width:60px;
    height:auto;
    transition:0.3s;
}

.box:hover img{
    filter: drop-shadow(0 0 10px cyan);
    transform: scale(1.1);
}
.box p{
 color:white;
 font-size:20px;
 font-weight: bold;
 margin:0;
 font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}
.box:hover{
    transform: translateY(-12px) scale(1.06);

    box-shadow:
      0 25px 40px rgba(0,0,0,0.8),
      0 0 25px #22d3ee,
      0 0 45px #0ea5e9;
}

#overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35); /* transparent */
  backdrop-filter: blur(8px);     /* glass effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.7s ease-in-out;
}

/* Swipe up animation */
#overlay.hide {
  transform: translateY(-100%);
}

/* Overlay text */
.overlay-content {
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
}

.overlay-content h1 {
  font-size: 60px;
  margin-bottom: 200px;
  font-weight: bolder;
  color: rgb(238, 193, 48);
  text-align: center;
  font-family: 'space mono', monospace;

  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px rgba(0,255,255,0.7);
    animation: glowPulse 3s infinite;
  

   
}
@keyframes glowPulse{
  0%{text-shadow:0 0 10px #00ffff;}
  50%{text-shadow:0 0 30px #00ffff;}
  100%{text-shadow:0 0 10px #00ffff;}
}
.overlay-content h4 {
  font-size: 18px;
  opacity: 0.8;
  color:black;
  background-color: chartreuse;
  padding:9px 16px;
  background: transparent;
  border-radius: 10px;
  background-color: cyan;
  display: inline-block;

}
.overlay-content pre{
    margin:0px;
    white-space: pre;
    font-family: 'space mono',monospace;
    
}
.pre{
    
    background: transparent;
    margin-top: 100px;
}


/* ===== CSE PORTAL ===== */
#cse-portal {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #050b18, #0b1f3a);
  z-index: 9999;
  display: none;
  flex-direction: column;
  color: #eaf6ff;
  font-family: "Segoe UI", sans-serif;
  overflow-y: auto;
}

/* Active state */
#cse-portal.active {
  display: flex;
  animation: slideUp 0.6s ease forwards;
}

/* Slide animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.cse-header {
  text-align: center;
  padding: 30px;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Content grid */
.cse-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 40px;
}

/* Cards */
.cse-card {
  background: rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(24, 27, 208, 0.25);
  backdrop-filter: blur(12px);
  transition: 0.3s;
  cursor: pointer;
}


.cse-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 0 30px rgba(0,255,255,0.45);
}

.cse-card h3 {
  margin-bottom: 10px;
  color: #7efcff;
}

/* Back button */
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 25px;
  border: 1px solid #7efcff;
  color: #7efcff;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn:hover {
  background: #7efcff;
  color: #000;
}

/* ===== CSE CONTENT GRID ===== */
.cse-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 35px;
  padding: 50px 80px;
  justify-items: center;
}

/* ===== CSE CARDS (BIGGER) ===== */
.cse-card {
  width: 100%;
  max-width: 320px;          /* controls size */
  min-height: 160px;
  background: rgba(241, 238, 238, 0.888);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(12, 219, 219, 0.3);
  backdrop-filter: blur(14px);
  transition: 0.35s ease;
  cursor: pointer;
}

.cse-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 35px rgba(229, 103, 7, 0.5);
}

/* ===== TEXT ===== */
.cse-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #7efcff;
}

.cse-card p {
  font-size: 14px;
  opacity: 0.85;
}


::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:#0b1f3a;
}

::-webkit-scrollbar-thumb{
  background:linear-gradient(#49cfe3,#4db1df);
  border-radius:10px;
}

/* ===== FIX NEW COURSE PORTAL ===== */

#course-portal {
  position: fixed;
  inset: 0;
   background: 
    radial-gradient(circle at 20% 30%, rgba(0,255,150,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,150,255,0.15), transparent 40%),
    linear-gradient(135deg, #0f172a, #1e293b);;
  display: none;              /* hidden initially */
  flex-direction: column;
  justify-content: flex-start;
box-shadow: inset 0 0 100px rgba(0, 255, 150, 0.1);
  z-index: 9998;              /* below overlay */
  overflow-y: auto;
}

/* ACTIVE STATE */
#course-portal.active {
  display: flex;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* TITLE */
#course-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin-top: 60px;
font-family: 'Inter', sans-serif;
  background: linear-gradient(270deg, #00f5a0, #4ab2c0, #ca95ea);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% }
  50% { background-position: 100% }
  100% { background-position: 0% }
}
/* CONTENT GRID */
.course-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 80px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  color:whitesmoke;
  font-size: large;
  font-weight: bold;
}

/* CARDS */
.course-card {
  background: rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 25px;
  border: 1px solid rgba(0,255,255,0.25);
  backdrop-filter: blur(12px);
}

.course-card h3 {
  color: #3bec6a;
}

/* BACK BUTTON FIX */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
}


 

