* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#ait_credit
{
  height: 150px;
  width: 1000px;
  margin-left: 75px;
}
/* Section layout */
#first_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 100px;
  background-color: #fff;
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* subtle floating light effects */
#first_section::before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  top:-120px;
  left:-120px;
  background: radial-gradient(circle, rgba(0,195,255,0.18), transparent 70%);
  filter: blur(25px);
  animation: floatLight 8s ease-in-out infinite alternate;
  pointer-events:none;
}
#first_section::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  bottom:-120px;
  right:-120px;
  background: radial-gradient(circle, rgba(0,90,255,0.15), transparent 70%);
  filter: blur(25px);
  animation: floatLight 9s ease-in-out infinite alternate;
  pointer-events:none;
}
@keyframes floatLight{
  from{ transform: translateY(0px); }
  to{ transform: translateY(30px); }
}

/* heading layout */
#first_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: -30px;
}

/* ===== UNIQUE MAGIC TITLE ===== */
#title {
  color: rgb(9, 163, 223);
  -webkit-text-stroke: 1px #081cce;
  font-weight: 900;
  letter-spacing: 2px;
  display: inline-block;
  font-size: 2.5rem;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
}

/* neon holographic duplicate layer */
#title::before{
  content: attr(id);
  content: "ACHARIYA INFOTECH";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  color:transparent;
  -webkit-text-stroke:1px #00eaff;
  opacity:0;
  transform: translate(0,0);
  pointer-events:none;
}

/* electric scan beam */
#title::after{
  content:"";
  position:absolute;
  left:-20%;
  top:0;
  width:20%;
  height:100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,234,255,0.9),
    transparent
  );
  filter: blur(6px);
  opacity:0;
}

/* HOVER — HOLOGRAM SPLIT + ELECTRIC SCAN */
#title:hover{
  transform: scale(1.2);
  color:#0fd6ff;
  text-shadow:
    0 0 12px rgba(0,234,255,0.9),
    0 0 35px rgba(0,120,255,0.6),
    0 0 60px rgba(0,60,255,0.4);
}

/* hologram split animation */
#title:hover::before{
  animation: holoSplit .8s forwards;
  opacity:1;
}

@keyframes holoSplit{
  0%{
    transform: translate(0,0);
    opacity:0;
  }
  30%{
    transform: translate(6px,-6px);
    opacity:.9;
  }
  60%{
    transform: translate(-6px,6px);
    opacity:.7;
  }
  100%{
    transform: translate(0,0);
    opacity:0;
  }
}

/* electric scan animation */
#title:hover::after{
  opacity:1;
  animation: scanBeam 1s forwards;
}
@keyframes scanBeam{
  from{ left:-20%; }
  to{ left:120%; }
}

/* paragraph */
#first_section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 45%;
  margin: 0;
  line-height: 1.4;
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
  animation: fadeSoft 1.5s ease both;
}
@keyframes fadeSoft{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

#second_img
{
  height: 600px;
  width: 1000px;
  margin-right: 70px;
  margin-top: 20px;
  margin-left: 150px;
  margin-bottom: 0;
  border-radius: 20px;
}

/* Section layout */
#third_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px 50px 100px;
  background-color: #fff;
  height: 180px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* cinematic glass glow background */
#third_section::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(0,140,255,0.08), rgba(0,234,255,0.05), rgba(0,80,255,0.08));
  opacity:.6;
  animation: gradientShift 10s linear infinite;
  pointer-events:none;
}

/* floating shimmer particles */
#third_section::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 40%, rgba(0,174,255,0.25) 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(0,102,255,0.25) 1px, transparent 2px),
    radial-gradient(circle at 50% 20%, rgba(0,210,255,0.2) 1px, transparent 2px);
  background-size: 250px 250px;
  animation: sparkleFloat 18s linear infinite;
  pointer-events:none;
}

@keyframes gradientShift{
  0%{ transform: translateX(-10%); }
  50%{ transform: translateX(10%); }
  100%{ transform: translateX(-10%); }
}

@keyframes sparkleFloat{
  from{ transform: translateY(0); }
  to{ transform: translateY(-60px); }
}

/* Left heading */
#third_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: 60px;
  transition: all .6s ease;
  text-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: slideGlow 1.6s ease both;
}

/* animated underline shimmer */
#third_section h1::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background: linear-gradient(90deg, transparent, #00c3ff, #0066ff, transparent);
  transition: width .8s ease;
  filter: blur(.5px);
}

#third_section h1:hover{
  transform: translateY(-4px);
  text-shadow:
    0 0 12px rgba(0,195,255,0.6),
    0 12px 30px rgba(0,0,0,0.2);
}
#third_section h1:hover::after{ width:100%; }

@keyframes slideGlow{
  from{ opacity:0; transform: translateX(-40px); }
  to{ opacity:1; transform: translateX(0); }
}

/* Right paragraph */
#third_section p {
  font-size: 1.2rem;
  color: #444;
  max-width: 45%;
  margin: 0;
  line-height: 1.5;
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
  position: relative;
  animation: fadeRise 1.8s ease both;
  transition: all .6s ease;
}

/* elegant glass highlight on hover */
#third_section p::before{
  content:"";
  position:absolute;
  inset:-6px -10px;
  background: linear-gradient(120deg, transparent, rgba(0,180,255,0.15), transparent);
  opacity:0;
  filter: blur(8px);
  transition:.6s;
  z-index:-1;
}

#third_section p:hover{
  transform: translateY(-4px);
  color:#2a2a2a;
}
#third_section p:hover::before{ opacity:1; }

@keyframes fadeRise{
  from{ opacity:0; transform: translateX(40px); }
  to{ opacity:1; transform: translateX(0); }
}
/* ================= SECTION ================= */
#fourth_section {
  padding: 50px 100px;
  background-color: #f9f9f9;
  margin-top: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ================= CARD BASE ================= */
.grid-item {
  padding: 20px;
  text-align: center;
  border-radius: 0 0 50px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Hover */
.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ================= GOLD ANIMATED BORDER ================= */
.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    120deg,
    #ffd700, #fff4b0, #ffcc00, #fff8dc, #ffd700
  );
  background-size: 400% 400%;
  animation: goldBorderMove 6s linear infinite;

  /* MASK FIX FOR ALL BROWSERS */
  -webkit-mask-image: 
      linear-gradient(#000 0 0), 
      linear-gradient(#000 0 0);
  -webkit-mask-origin: content-box, border-box;
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;

  mask-image: 
      linear-gradient(#000 0 0), 
      linear-gradient(#000 0 0);
  mask-origin: content-box, border-box;
  mask-clip: content-box, border-box;
  mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
}

/* ================= MAGIC BACKGROUND LAYER ================= */
.grid-item::after {
  content: "";
  position: absolute;
  inset: 0;/* ================= MAGIC VISUAL LAYER (Sparkles + Lines + Glow) ================= */
.grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;

  background:
    /* Sparkles */
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.6) 1px, transparent 2px),

    /* Moving tech lines */
    repeating-linear-gradient(
      120deg,
      rgba(255,255,255,0.15) 0px,
      rgba(255,255,255,0.15) 2px,
      transparent 2px,
      transparent 45px
    ),

    /* Soft magical glow */
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.25), transparent 60%);

  background-size:
    200px 200px,
    220px 220px,
    240px 240px,
    260px 260px,
    300px 300px,
    100% 100%;

  animation: magicLayerMove 18s linear infinite;
}

@keyframes magicLayerMove {
  0% {
    background-position:
      0 0,
      50px 60px,
      100px 120px,
      150px 30px,
      0 0,
      0% 0%;
  }
  50% {
    background-position:
      150px 150px,
      200px 210px,
      260px 300px,
      310px 200px,
      120px 120px,
      50% 50%;
  }
  100% {
    background-position:
      300px 300px,
      350px 360px,
      420px 480px,
      470px 330px,
      240px 240px,
      100% 100%;
  }
}

  border-radius: inherit;
  z-index: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.6) 1px, transparent 2px);
  background-size: 200px 200px;
  animation: sparkleMove 18s linear infinite;
}

@keyframes sparkleMove {
  from { background-position: 0 0, 50px 60px, 100px 120px, 150px 30px; }
  to { background-position: 200px 200px, 250px 260px, 300px 320px, 350px 230px; }
}

/* ================= FLOATING CIRCLES ================= */
.grid-item span.magic {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(2px);
  animation: floatCircles 10s linear infinite;
}

.grid-item span.magic:nth-child(1){ width:20px;height:20px; left:10%; top:80%; animation-duration:12s;}
.grid-item span.magic:nth-child(2){ width:12px;height:12px; left:70%; top:90%; animation-duration:9s;}
.grid-item span.magic:nth-child(3){ width:15px;height:15px; left:50%; top:85%; animation-duration:11s;}

@keyframes floatCircles {
  0% { transform: translateY(0) scale(1); opacity:0; }
  30% { opacity:1; }
  100% { transform: translateY(-180px) scale(1.3); opacity:0; }
}

/* ================= KEEP YOUR ORIGINAL GRADIENTS ================= */
.grid-item:nth-child(1){background: linear-gradient(135deg,#fff9c3,#fff5a8,#fff182,#ffed5c,#ffe63a);}
.grid-item:nth-child(2){background: linear-gradient(135deg,#d1fae5,#a8f7d1,#7cf3bb,#4ff0a6,#1ceb8f);}
.grid-item:nth-child(3){background: linear-gradient(135deg,#dbeafe,#b8ddff,#94cfff,#71c2ff,#4da4ff);}
.grid-item:nth-child(4){background: linear-gradient(135deg,#fde2e2,#fbbcbc,#f89696,#f67070,#f44a4a);}
.grid-item:nth-child(5){background: linear-gradient(135deg,#fff7ed,#ffe4c7,#ffd2a2,#ffbf7c,#ffaa57);}
.grid-item:nth-child(6){background: linear-gradient(135deg,#ede9fe,#d5cfff,#bdb5ff,#a49bff,#8c81ff);}
.grid-item:nth-child(7){background: linear-gradient(135deg,#e0f2fe,#bce6fe,#98d9fe,#74cdfe,#50c0fe);}
.grid-item:nth-child(8){background: linear-gradient(135deg,#f0fdf4,#d1fadf,#b2f5ca,#94f0b5,#75ec9f);}
.grid-item:nth-child(9){background: linear-gradient(135deg,#fef3c7,#fde7a0,#fbdc79,#f9d14f,#f7c726);}

/* ================= TEXT ================= */
.grid-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: 'Times New Roman', Times, serif;
  color: #001f54;
  position: relative;
  z-index: 3;
}

.grid-item p {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
  font-family: 'Times New Roman', Times, serif;
  position: relative;
  z-index: 3;
}

.pic {
  height: 100px;
  width: 100px;
  position: relative;
  z-index: 3;
}
/* ================= FLOATING TECH SYMBOLS LAYER ================= */
.grid-item {
  background-image:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2v6M20 32v6M2 20h6M32 20h6M7 7l4 4M29 29l4 4M7 33l4-4M29 11l4-4' stroke='white' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='white' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='30' height='30' fill='none' stroke='white' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 120px 120px, 160px 160px, 140px 140px;
  background-position: 0 0, 40px 60px, 80px 30px;

  animation: techFloat 60s linear infinite;
}

/* slow floating movement */
@keyframes techFloat {
  0% {
    background-position: 0 0, 40px 60px, 80px 30px;
  }
  100% {
    background-position: 400px 300px, 300px 500px, 600px 200px;
  }
}


/* ========================
   FIFTH SECTION BASE
======================== */
#fifth_section {
  position: relative;
  padding: 50px 20px;
  background: url("./images/PINKY.jpg") center/cover no-repeat;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  overflow: hidden;
}

/* Animated moving gradient background */
#fifth_section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(38,1,172,0.05), rgba(3,54,142,0.05) 25%, rgba(38,1,172,0.05) 50%);
  background-size: 200% 200%;
  animation: moveBG 30s linear infinite;
  z-index: 0;
}

@keyframes moveBG {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ========================
   SECTION TITLE
======================== */
.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #03368e;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 5px rgba(3,54,142,0.6);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #2601ac, #03368e);
  box-shadow: 0 0 8px #2601ac, 0 0 15px #03368e;
  animation: glowUnderline 2s ease-in-out infinite alternate;
}

@keyframes glowUnderline {
  0% { opacity: 0.7; box-shadow: 0 0 5px #2601ac,0 0 10px #03368e; }
  100% { opacity: 1; box-shadow: 0 0 15px #2601ac,0 0 25px #03368e; }
}

/* ========================
   SLIDER CONTAINER
======================== */
.review-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 1;
}

/* Slides wrapper */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Slide styling */
.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 12px;
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(38,1,172,0.2), 0 0 25px rgba(3,54,142,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ========================
   STUDENT LOGO
======================== */
.student-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(38,1,172,0.3);
  box-shadow: 0 0 10px rgba(38,1,172,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
  animation: floatLogo 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Neon shine overlay on hover */
.student-logo::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease-in-out;
}

.student-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(38,1,172,0.5), 0 0 30px rgba(3,54,142,0.4);
}

.student-logo:hover::after {
  left: 120%;
}

/* ========================
   STUDENT TEXT
======================== */
.student-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2601ac;
  text-shadow: 0 0 4px rgba(38,1,172,0.5);
}

.student-review {
  font-size: 1rem;
  color: black;
  line-height: 1.5;
}

/* ========================
   NAVIGATION ARROWS
======================== */
.prev, .next {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: hsla(236, 98%, 36%, 0.8);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 0 10px rgba(38,1,172,0.4);
  transition: all 0.3s ease;
  z-index: 2;
}

.prev:hover, .next:hover {
  box-shadow: 0 0 20px #2601ac, 0 0 35px #03368e;
  background: hsla(236, 98%, 36%, 1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ========================
   DOTS NAVIGATION
======================== */
.dots {
  text-align: center;
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(38,1,172,0.3);
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #051199;
  box-shadow: 0 0 15px #2601ac, 0 0 25px #03368e;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .student-logo { width: 60px; height: 60px; }
  .student-name { font-size: 1rem; }
  .student-review { font-size: 0.9rem; }
  .prev, .next { font-size: 1.2rem; padding: 8px 12px; }
}


/* Responsive 
@media (max-width: 1024px) { .alumni-item { flex: 0 0 calc(33.333% - 20px); } }
@media (max-width: 600px) { .alumni-item { flex: 0 0 calc(50% - 15px); } }

*/

/* ===== Footer ===== */
#site_footer {
  background-color: #012f7e;   /* deep navy to match headings */
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  margin-top: 0px;  /* space above footer */
  height: 100px;
  padding-top: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Sparkling moving dots */
#site_footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) repeat,
    radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px) repeat;
  background-size: 20px 20px, 50px 50px;
  animation: sparkleMove 15s linear infinite, sparkleFloat 12s linear infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Subtle glowing flowing waves */
#site_footer::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 200%;
  animation: waveFlow 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Sparkle horizontal/vertical motion */
@keyframes sparkleMove {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 100px 50px, 50px 100px; }
  100% { background-position: 0 0, 0 0; }
}

/* Slight float up and down for extra magic */
@keyframes sparkleFloat {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}

/* Slow wave movement for premium effect */
@keyframes waveFlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

#site_footer p {
  margin: 0;
  position: relative;
  z-index: 1; /* ensures text stays above magic effects */
}

/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background: linear-gradient(135deg, #5e0eea, #2600ff);
  color: #fff;
  border-radius: 30px;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  transition: all 0.4s ease;
}

/* Hover Effect */
#scrollTopBtn:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 150, 255, 0.7);
}

/* ========== Responsive Images ========== */
#ait_credit, #second_img, .grid-item .pic {
  max-width: 100%;
  height: auto;
}

/* ========== Two-column sections stack vertically ========== */
@media (max-width: 1024px) {
  #first_section, #third_section {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    height: auto;
  }

  #first_section h1, #third_section h1 {
    text-align: center;
    left: 0; /* reset position */
  }

  #first_section p, #third_section p {
    max-width: 90%;
    text-align: center;
    margin-top: 15px;
  }
}

/* ========== Grid responsiveness ========== */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  #second_img, #ait_credit {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }
}

/* Footer adjustments */
@media (max-width: 768px) {
  #site_footer {
    font-size: 0.9rem;
    height: auto;
    padding: 20px 10px;
  }
}

/* ================= Hamburger Menu ================= */
.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-right: 30px;
}

/* Show hamburger on smaller screens */
@media (max-width: 768px) {
  .nav-links, .social-icons, .join-btn {
    display: none; /* hide normal menu */
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .hamburger-menu {
    display: block; /* show hamburger */
  }

  /* Toggle visibility when active */
  .navbar.active .nav-links,
  .navbar.active .social-icons,
  .navbar.active .join-btn {
    display: block;
  }

  .nav-links a {
    display: block;
    margin: 10px 0;
  }

  .social-icons {
    justify-content: center;
    margin: 10px 0;
  }

  .join-btn {
    margin: 15px 0;
  }
}

/* Slider responsiveness */
@media (max-width: 768px) {
  .review-slider {
    max-width: 100%;
    padding: 0 10px;
  }

  .slide {
    padding: 15px;
  }

  .prev, .next {
    font-size: 1.2rem;
    padding: 8px 12px;
  }
}

/* Values and speciality container stack on mobile */
@media (max-width: 768px) {
  .values-container, .speciality-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}


