@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {           /*reusable values stored under a name, defined inside :root so they're available globally across your entire stylesheet.*/
  --primary: #0f1a2e;
  --accent1: #00d4ff;
  --accent2: #7b2fff;
  --accent3: #ff6b35;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(0, 212, 255, 0.18);
  --card-glow: rgba(0, 212, 255, 0.12);
  --text-primary: #e8f4ff;
  --text-secondary: #8baac4;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 820px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(123,47,255,0.06) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(1, 197, 236, 0.07),
    0 24px 64px rgba(5, 155, 255, 0.45),
    inset 0 1px 0 rgba(11, 174, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  width: 185px;
  height: 175px;
  padding: 0; 
  border-radius: 16px;
  text-decoration: none;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  margin-bottom: 10px;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.55),
    0 0 24px var(--card-glow),
    0 0 0 1px rgba(66, 203, 230, 0.3);
  border-color: rgba(0,212,255,0.35);
}
.card1-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ─── Card Text ──────────────────────────────────────────────── */
.card-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.7) 80%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  border-radius: 0 0 15px 15px;
}

.card-text b {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: rgba(0, 247, 255, 0.92);
  letter-spacing: 0.4px;
  display: block;
  line-height: 1.3;
}

.card-text p,
.card-text small {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  color: rgba(220,235,255,0.88);
  margin: 2px 0 0;
  line-height: 1.3;
  font-weight: 500;
}

.card-text a {
  color: var(--accent1);
  font-family: 'Rajdhani', sans-serif;
  text-decoration: none;
  font-weight: 600;
}

/* ─── Section Titles ─────────────────────────────────────────── */
.notes-section-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-align: center;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin: 36px auto 10px;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--accent1), #a78bfa, var(--accent1));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  position: relative;
}

.notes-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  margin: 8px auto 0;
  border-radius: 2px;
}

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.notes-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Card image utilities ───────────────────────────────────── */
.maths1        { background-image: url("images/maths.png"); background-size: 100% 100%; }
.python        { background-image: url("images/python_logo.png"); background-size: 100% 100%; }
.c             { background-image: url("images/c_logo.png"); background-size: 100% 100%; }
.cpp           { background-image: url("images/cpp_logo.png"); background-size: 100% 100%; }
.java          { background-image: url("images/java_logo.png"); background-size: 100% 100%; }
.dbms          { background-image: url("images/dbms_logo.png"); background-size: 100% 100%; }
.web           { background-image: url("images/web_logo.png"); background-size: 100% 100%; }
.chn           { background-image: url("images/chn_logo.png"); background-size: 100% 100%; }
.networksec    { background-image: url("images/networksec_logo.png"); background-size: 100% 100%; }
.os            { background-image: url("images/os_logo.png"); background-size: 100% 100%; }
.cdata         { background-image: url("images/cdata_logo.png"); background-size: 100% 100%; }
.iot           { background-image: url("images/iot_logo.png"); background-size: 100% 100%; }
.airport       { background-image: url("images/airplan.png"); background-size: 100% 100%; }
.building      { background-image: url("images/buildings.png"); background-size: 100% 100%; }
.card.geotechnical { background-image: url("images/geotech.png"); background-size: 100% 100%; }
.card.irr      { background-image: url("images/irrigation.png"); background-size: 100% 100%; }
.railway       { background-image: url("images/railway.png"); background-size: 100% 100%; }
.steel         { background-image: url("images/steel.png"); background-size: 100% 100%; }
.strength      { background-image: url("images/strength\ of\ materials.png"); background-size: 100% 100%; }
.structure     { background-image: url("images/structure.png"); background-size: 100% 100%; }
.surveying     { background-image: url("images/surveying.png"); background-size: 100% 100%; }
.pert          { background-image: url("images/pert.png"); background-size: 100% 100%; }
.transportation{ background-image: url("images/transport.png"); background-size: 100% 100%; }
.geology       { background-image: url("images/geology.png"); background-size: 100% 100%; }
.engmechanics  { background-image: url("images/eng\ mechanics.png"); background-size: 100% 100%; }
.enveng1       { background-image: url("images/environment.png"); background-size: 100% 100%; }
.card.costing  { background-image: url("images/costing.png"); background-size: 100% 100%; }
.fluid         { background-image: url("images/fluid.png"); background-size: 100% 100%; }
.heat          { background-image: url("images/heat.png"); background-size: 100% 100%; }
.machine       { background-image: url("images/machine.png"); background-size: 100% 100%; }
.manufacture   { background-image: url("images/manufacturer.png"); background-size: 100% 100%; }
.thermodynamics{ background-image: url("images/thermodynamics.png"); background-size: 100% 100%; }
.machinedesign { background-image: url("images/machinedesign.png"); background-size: 100% 100%; }
.SAS           { background-image: url("images/ece_imp/SAS.png"); background-size: 100% 100%; }
.NA            { background-image: url("images/ece_imp/NA.png"); background-size: 100% 100%; }
.EMF           { background-image: url("images/ece_imp/EMF.png"); background-size: 100% 100%; }
.DE            { background-image: url("images/ece_imp/DE.png"); background-size: 100% 100%; }
.analog        { background-image: url("images/ece_imp/analog.png"); background-size: 100% 100%; }
.communication { background-image: url("images/ece_imp/Communication.png"); background-size: 100% 100%; }
.digital       { background-image: url("images/ece_imp/digital.png"); background-size: 100% 100%; }
.PS            { background-image: url("images/ece_imp/PS.png"); background-size: 100% 100%; }
.PE           { background-image: url("images/ece_imp/PE.png"); background-size: 100% 100%; }
.electronical  { background-image: url("images/ece_imp/electrical\ electrononics.png"); background-size: 100% 100%; }
.EM          { background-image: url("images/ece_imp/EM.png"); background-size: 100% 100%; }
.digital2       { background-image: url("images/ece_imp/digital\ \(2\).png"); background-size: 100% 100%; }
.anatomy        { background-image: url("images/medicine/anatomy.png"); background-size: 100% 100%; }
.physiology      { background-image: url("images/medicine/physiology.png"); background-size: 100% 100%; }
.pathology       { background-image: url("images/medicine/pathology.png"); background-size: 100% 100%; }
.biochemistry    { background-image: url("images/medicine/biochemistry.png"); background-size: 100% 100%; }
.mental          { background-image: url("images/medicine/mental.png"); background-size: 100% 100%; }
.radiology        { background-image: url("images/medicine/radiology.png"); background-size: 100% 100%; }
.anesthesia        { background-image: url("images/medicine/anesteshia.png"); background-size: 100% 100%; }
.ent           { background-image: url("images/medicine/ent.png"); background-size: 100% 100%; }
.pediatrics      { background-image: url("images/medicine/pediatrics.png"); background-size: 100% 100%; }
.gyno                   { background-image: url("images/medicine/gyno.png"); background-size: 100% 100%; }
.ophthalmology        { background-image: url("images/medicine/opthalmology.png"); background-size: 100% 100%; }
.orthopedics         { background-image: url("images/medicine/ortho.png"); background-size: 100% 100%; }
.generalmedicine     { background-image: url("images/medicine/opthalmology.png"); background-size: 100% 100%; }
.dermatology         { background-image: url("images/medicine/derma.png"); background-size: 100% 100%; }

.card1{
   width: 185px;
  height: 175px;
  padding: 0; 
  border-radius: 16px;
  background: linear-gradient(135deg,gray,rgb(147, 110, 110),100%);
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 8px 24px rgba(25, 219, 61, 0.4),
    0 0 0 1px rgba(113, 197, 23, 0.04);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  margin-bottom: 10px;
}
.card1:hover  {
  transform: translateY(-8px) scale(1.03);
  color:#ff6b35;
  text-decoration: none;
    box-shadow:
    0 20px 48px rgba(191, 29, 29, 0.55),
    0 0 24px rgba(213, 34, 31, 0.3),
    0 0 0 1px rgba(247, 41, 0, 0.808);
  border-color: rgba(0,212,255,0.35);
}
.card1 b:hover {
  transform: translateY(-8px) scale(1.03);
  color:#ff6b35;
  text-decoration: none;
}

.a2019 b,.a2020 b, .a2021 b, .a2022 b, .a2023 b, .a2024 b,.a2025 b {
  font-family: 'Rajdhani', sans-serif;
  font-size: 59.5px;
  font-weight: 1700;
  color: rgba(6, 204, 65, 0.92);
  
}

@media (max-width: 900px) {
  .container {
    width: 94%;
    padding: 24px 16px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 92%;
    padding: 20px 14px;
    gap: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .card , .card1{
    width: 100%;
    height: 155px;
    margin-bottom: 0;
  }
  
  .card1-text b  { font-size: 55px; }

  .notes-section-title {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    margin: 24px auto 8px;
  }

  .notes-section-subtitle {
    font-size: clamp(0.82rem, 3vw, 0.98rem);
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 96%;
    padding: 14px 10px;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    height: 130px;
  }

  .card-text b  { font-size: 12px; }
  .card-text p,
  .card-text small { font-size: 11px; }

  .notes-section-title {
    font-size: clamp(1rem, 6vw, 1.3rem);
  }
}

/* ─── Tap highlight ──────────────────────────────────────────── */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: rgba(0, 212, 255, 0.15); }
  .card { min-height: 44px; }
}
