/*
|======================================================================
| 💻 COMPLETE RESPONSIVE CSS FILE
|======================================================================
*/

/* ---------- ROOT VARIABLES ---------- */
:root {
  --max-width: 1200px;
  --accent: #d5ff3f;
  --bg: #000;
  --text: #fff;
  --grey: #777;
  --font-main: 'Raleway', sans-serif;
  --header-h: 64px;
  --hudline-h: 12px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

main {
  flex: 1;
  position: relative;
  padding-bottom: 80px;
}

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

section {
  margin: 80px auto;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- HEADER ---------- */
/* ===== HERO HEADER (Animated Yellow Border Line) ===== */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #000;
  padding: 10px 20px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Simulated animated border-bottom */
  background-image: linear-gradient(to right, var(--accent) 0%, transparent 100%);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 200% 2px;
  animation: borderLineFlow 10s ease-in-out infinite;
}

/* ===== SYNCHRONIZED FLOW ANIMATION ===== */
@keyframes borderLineFlow {
  0% {
    background-position: right bottom;
  }
  50% {
    background-position: left bottom;
  }
  100% {
    background-position: right bottom;
  }
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-group img {
  height: 45px;
  transition: height 0.3s ease;
}

/* Hamburger (Hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 11000;
  margin-left: 16px;
  transition: all 0.3s ease;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Navigation (Desktop-first) */
.nav-static {
  display: flex;
  gap: 28px;
  align-items: center;
  transition: all 0.4s ease;
  justify-content: flex-end;
  padding-right: 30px;
  transition: all 0.4s ease;
}

.nav-static a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 4px 8px;
}
.nav-static a:hover {
  color: #000;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
}
.menu-overlay {
    /* 1. CRITICAL FIX: Ensure it covers the entire viewport */
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    
    /* 2. Z-index Check: Must be below your hamburger (11000) */
    z-index: 1001; 
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    
    /* Smooth transition */
    transition: opacity 0.4s ease, visibility 0.4s;
}

/* Active state (when the menu is open) */
.menu-overlay.active {
    background-color: rgba(0, 0, 0, 0.7); 
    opacity: 1;
    visibility: visible;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 40px 60px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  top: -30px;
  background: url("./assets/images/Borderline.png") no-repeat center top / contain;
  animation: lineCycle 30s ease-in-out infinite;
  z-index: 0;
}
@keyframes lineCycle {
  0%, 80%, 100% { clip-path: inset(0 100% 0 0); }
  15%, 65% { clip-path: inset(0 0 0 0); }
}

.hero-overlay {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.acharya {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 6vw, 90px);
  margin-bottom: 10px;
  position: relative;
  top: -50px;
  right: 280px;
  z-index: 2;
}

.D-dots {
  display: flex;
  position:relative;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  top: -50px;
}
.Da-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.headline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.stagger {
  position: relative;
  top: -90px;
  margin-top: 0;
  text-align: left;
  line-height: 1;
}

.abstract {
  position: relative;
  top: -80px;
  max-width: 35%;
  border-radius: 6px;
}

.tagline {
  position: relative;
  top: -60px;
  margin-top: 0;
  font-size: clamp(16px, 2vw, 24px);
  text-align: center;
  color: var(--text);
}
.headline {
  font-weight: 600;
  font-size: clamp(24px, 6vw, 59px);
  text-transform: uppercase;
  margin: 8px 0;
}


/* ---------- ABOUT SECTION ---------- */
.hd.section-container {

  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.hero-description {
  flex: 1;
  min-width: 260px;
  font-size: clamp(18px, 1.6vw, 16px);
  line-height: 1.6;
  text-align: justify;
}

.instructions-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.7;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 10px;
}




.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.qr-code {
  width: 260px;
}
.show-all a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 50px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 2rem;
}
.show-all a:hover {
  background:var(--accent);
  color: #000;
}

/* ---------- EVENTS ---------- */
.events-header {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.events-header h2 {
  background: #1f1f1f;
  padding: 20px 100px;
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  display: inline-block;
}

.events-section {
  position: relative;
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.row-2 {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 60px;
}

.event-card {
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: visible;
}

.event-card:hover {
  transform: translateY(-6px);
}

.event-image {
  width: 300px;
  height: 300px;
  border: 4px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  background: #111;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

/* Event border colors */
.red .event-image { border-color: #e74c3c; }
.green .event-image { border-color: #2ecc71; }
.yellow .event-image { border-color: #f1c40f; }
.blue .event-image { border-color: #3498db; }
.purple .event-image { border-color: #9b59b6; }

/* Event title with hover underline */
.event-card p {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  display: inline-block;
  overflow: visible;
}

.event-card p::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 0 10px var(--accent);
  z-index: 5;
}

.event-card:hover p::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Match hover underline glow to border color */
.red:hover p::after { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }
.green:hover p::after { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
.yellow:hover p::after { background: #f1c40f; box-shadow: 0 0 10px #f1c40f; }
.blue:hover p::after { background: #3498db; box-shadow: 0 0 10px #3498db; }
.purple:hover p::after { background: #9b59b6; box-shadow: 0 0 10px #9b59b6; }


/* === Decorative Pattern Container === */
.row-2-decor {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -10px;
}

.decorative-pattern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: floatTogether 5s ease-in-out infinite;
}

.pattern-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pattern-icon {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatTogether 5s ease-in-out infinite;
}

.pattern-ring {
  width: 100%;
  height: 100%;
  border: 3px solid #e74c3c;
  border-radius: 50%;
  background: transparent;
  animation: ringColorShift 12s linear infinite;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.pattern-icon:hover .pattern-ring {
  transform: scale(1.25);
  opacity: 1;
}

@keyframes floatTogether {
  0% { transform: translateY(0); }
  50% { transform: translateY(120px); }
  100% { transform: translateY(0); }
}

@keyframes ringColorShift {
  0% { border-color: #e74c3c; } /* red */
  16% { border-color: #2ecc71; } /* green */
  33% { border-color: #f1c40f; } /* yellow */
  50% { border-color: #3498db; } /* blue */
  66% { border-color: #9b59b6; } /* purple */
  83% { border-color: #e67e22; } /* orange */
  100%{ border-color: #e74c3c; } /* red again */
}


/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: #000;
  overflow: hidden;
  text-align: center;
}

.gallery-header h2 {
  display: inline-block;
  background: #1f1f1f;
  padding: 20px 180px;
  color: #d8ff3d;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
}

/* ===== DESKTOP 3D CAROUSEL ===== */
.gallery-stage {
  perspective: 2000px;
  margin: 5px auto;
  height: 800px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotateBelt 45s linear infinite;
  transform-origin: center center;
}

.gallery-stage:hover .carousel {
  animation-play-state: paused;
}

.item {
  position: absolute;
  width: 220px;
  height: 320px;
  top: 50%;
  left: 50%;
  margin: -160px 0 0 -110px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  cursor: pointer;
  backface-visibility: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animated underline */
.color-line {
  position: absolute;
  bottom: 6px;
  left: 20%;
  width: 60%;
  height: 2px;
  border-radius: 2px;
  transform-origin: center;
  animation: lineFlow 2.5s ease-in-out infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes lineFlow {
  0% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.3); opacity: 0.4; }
}

.item:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
  opacity: 0.9;
}

/* Rotation animation */
@keyframes rotateBelt {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-360deg); }
}

/* ===== POPUP ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}
.popup-overlay.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}
.popup-overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  border: 4px solid var(--popup-border, #d8ff3d);
  box-shadow: 0 0 25px var(--popup-border, rgba(216,255,61,0.8));
  transform: scale(0.8);
  animation: zoomIn 0.3s ease forwards;
}
.close-popup {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 2.5rem;
  color: #d8ff3d;
  cursor: pointer;
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MOBILE SCROLLING GALLERY (Hidden by default) ===== */
.gallery-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
}

.scroll-row {
  display: flex;
  gap: 10px;
}

.scroll-row img {
  width: 140px;
  height: 180px;
  border-radius: 10px;
  border: 3px solid transparent;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}
.scroll-row img:hover {
  transform: scale(1.05);
}

/* Scroll directions */
.left-to-right {
  animation: scrollLeftToRight 25s linear infinite;
}
.right-to-left {
  animation: scrollRightToLeft 25s linear infinite;
}
@keyframes scrollLeftToRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@keyframes scrollRightToLeft {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}

/* ---------- SPONSORS ---------- */
.our-sponsors {
  text-align: center;
  margin-top: 60px;
}

.our-sponsors h2 {
  display: inline-block;
  background: #1f1f1f;
  padding: 20px 160px;
  color: #d8ff3d;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
}

.sponsor-section {
  text-align: center;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsor-image {
  width: 80%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsor-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--accent);
  color: #000;
  width: 100%;
  padding: 40px 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 40px;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-buttons button {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-buttons button:hover {
  background: #000;
  color: var(--accent);
}

.footer-text-block {
  max-width: 600px;
  text-align: left;
  line-height: 1.6;
}

.footer-text {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-description {
  font-size: 0.95rem;
  text-align: justify;
  margin: 0;
}


/*
|======================================================================
| 📱 RESPONSIVE MEDIA QUERIES
|======================================================================
*/

/* --- Small Desktop / Larger Tablet (max-width: 900px) --- */
@media (max-width: 900px) {
  /* EVENTS: 2 per row */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .event-image {
    width: 240px;
    height: 240px;
  }
  
  /* SPONSORS */
  .our-sponsors h2 {
    padding: 18px 100px;
    font-size: 1.9rem;
  }
  .sponsor-image {
    width: 75%;
  }
}

/* --- Tablet / iPad (max-width: 768px) --- */
@media (max-width: 768px) {
  /* GENERAL */
  :root {
    --header-h: 54px;
    --hudline-h: 8px;
  }
  
  /* HEADER: Enable Hamburger & Mobile Navigation */
  .hero-header {
    padding: 8px 16px;
  }
  
  .logo-group img { height: 34px; }
  .hamburger { 
    display: flex; /* <-- Show Hamburger on Tablet/iPad */
  }
  .nav-static {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    border-top: 1px solid var(--accent);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding-right: 0;
    justify-content: center;
  }
  .nav-static a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }
  .nav-static.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* HERO SECTION: Tablet Alignment */
  .hero {
    padding-top: 70px;
    padding-bottom: 40px;
  }
   .hero::after {
       
        top: 10px; 
    }
  .acharya {
    top: 30px;
    right: 225px;
    /* text-align: center; */
    font-size: clamp(24px, 6vw, 60px);
  }
  .D-dots {
    justify-content: center;
    top: 20px;
  }
  .headline-row {
    gap: 22px;
  }
 .stagger {
    top: -80px;
    line-height: .8;
    /* Example: Font size scales between 10px and 14px */
    font-size: 10px;
    width: auto;
    right: auto;
}
  .abstract {
    top: -90px;
    max-width: 40%;
  }
  .tagline {
    top: -90px;
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

 
   /* ABOUT SECTION */
.hd.section-container {
    /* CHANGED from column to row */
    flex-direction: row; 
    
    /* Align items vertically to the top of the container */
    align-items: flex-start;
    
    /* Add space between them */
    justify-content: space-between; 
    
    gap: 20px;
    /* You might need a max-width for this container to prevent them from stretching too far apart */
}

.hero-description {
    font-size: clamp(16px, 2vw, 18px);
    /* DECREASED width to make space for the QR code */
    width: 65%; /* Adjust this value (e.g., 60%, 70%) */
}

.qr-code {
    width: 180px;
   
}
.show-all {
        width: 180px; 
            
        right: auto; /* Override any previous fixed positioning */
        /* display: block;  */
        text-align: center;
    }

  /* EVENTS: Re-adjust grid (still 2 columns here) */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .row-2 {
    gap: 40px;
  }
  .event-image {
    width: 180px;
    height: 180px;
  }
  .event-card p {
    font-size: 1rem;
  }

  /* GALLERY: Hide 3D, Show Mobile Scroll */
  .gallery-stage { display: none; }
  .gallery-mobile { display: flex; }
  .gallery-header h2 {
    padding: 20px 80px;
    font-size: 1.8rem;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-text-block {
    text-align: center;
  }

  
}

/* --- Mobile (max-width: 600px) --- */
@media (max-width: 600px) {
  /* EVENTS: 3 per row (smaller) */
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  /* Stack row-2 items after grid */
  .row-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }
  .event-image {
    width: 120px;
    height: 120px;
  }
  .event-card p {
    font-size: 0.85rem;
  }

  /* SPONSORS */
  .our-sponsors h2 {
    padding: 16px 60px;
    font-size: 1.5rem;
  }
  .sponsor-image {
    width: 85%;
  }
  
  /* PATTERN ANIMATION */
  .pattern-icon {
    width: 32px;
    height: 32px;
  }
  @keyframes floatTogether {
    0% { transform: translateY(0); }
    50% { transform: translateY(80px); }
    100% { transform: translateY(0); }
  }
}

/* --- Small Mobile (max-width: 425px) - Alignment Reference --- */
@media (max-width: 425px) {
  /* GENERAL */
  section {
    margin: 40px auto;
  }

  /* HEADER */
  :root {
    --header-h: 50px;
    --hudline-h: 6px;
  }
  .logo-group img { height: 30px; }

  /* HERO SECTION: Mobile Alignment Refined */
  .hero {
    padding: 60px 20px 30px;
  }
  .hero::after {
       
        top: 30px; 
    }
  .acharya {
    top: 20px;
    right: 110px;
    /* text-align: center; */
    font-size: clamp(24px, 6vw, 60px);
  }
  .D-dots {
    justify-content: center;
    top: 30px;
  }
  .headline-row {
    gap: 30px;
  }
 .stagger {
    top: -50px;
    line-height: .8;
    /* Example: Font size scales between 10px and 14px */
    font-size: 5px;
    width: auto;
    right: -20px;
}
  .abstract {
    top: -60px;
    max-width: 40%;
  }
  .tagline {
    top: -70px;
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
  

  /* ABOUT SECTION */
  .hd.section-container {
    padding: 0 10px;
    gap: 16px;
    margin-top: 0;
  }
  .hero-description {
    width: 100%;
    font-size: 0.9rem;
  }
  .qr-code {
    width: 150px;
  }
  .show-all a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  /* EVENTS */
  .events-header h2 {
    font-size: 1.1rem;
    padding: 10px 30px;
  }
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
    .row-2 {
    display: flex;
    flex-direction:row;
    gap: 16px;
    margin-top: 40px;
  }
  .event-image {
    width: 100px;
    height: 100px;
  }
  .event-card p {
    font-size: 0.75rem;
  }

  /* GALLERY */
  .gallery-header h2 {
    padding: 16px 40px;
    font-size: 1.4rem;
  }

  /* SPONSORS */
  .our-sponsors h2 {
    padding: 12px 40px;
    font-size: 1.2rem;
  }
  .sponsor-image {
    width: 100%;
    max-width: 250px;
  }
  
  /* PATTERN ANIMATION */
  .decorative-pattern {
    gap: 8px;
  }
  .pattern-row {
    gap: 8px;
  }
  .pattern-icon {
    width: 26px;
    height: 26px;
  }
  .pattern-ring {
    border-width: 2px;
    animation: ringColorShift 10s linear infinite;
  }
  @keyframes floatTogether {
    0% { transform: translateY(0); }
    50% { transform: translateY(60px); }
    100% { transform: translateY(0); }
  }
}

/* --- Extra Small Mobile (max-width: 375px) --- */
@media (max-width: 375px) {
  
  .acharya {
    top: 60px;
    left:-90px;
    /* text-align: center; */
    font-size: clamp(20px, 6vw, 40px);
  }

  .headline-row {
    gap: 30px;
  }
 .stagger {
    top: -50px;
    line-height: .8;
    /* Example: Font size scales between 10px and 14px */
    font-size: 5px;
    /* width: auto; */
    right: 40px;
    transform: scale(.9);
}
  .abstract {
    top: -60px;
    max-width: 40%;
  }
  .tagline {
    top: -70px;
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
.D-dots {
  
  transform: translateY(-10px); 
}
  /* EVENTS */
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
    .row-2 {
    display: flex;
    flex-direction:row;
    gap: 16px;
    margin-top: 40px;
  }
  .event-image {
    width: 90px;
    height: 90px;
  }
  .event-card p {
    font-size: 0.7rem;
  }
    /* SPONSORS */
  .our-sponsors h2 {
    padding: 12px 40px;
    font-size: 1.2rem;
  }
  .sponsor-image {
    width:80%;
    max-width: 150px;
    /* transform: scale(1.5); */
  }
  /* PATTERN ANIMATION */
  .decorative-pattern {
    gap: 8px;
  }
  .pattern-row {
    gap: 8px;
  }
  .pattern-icon {
    width: 20px;
    height: 20px;
  }
  .pattern-ring {
    border-width: 2px;
    animation: ringColorShift 10s linear infinite;
  }
  @keyframes floatTogether {
    0% { transform: translateY(0); }
    50% { transform: translateY(60px); }
    100% { transform: translateY(0); }
  }
}

@media (max-width: 430px) {
  /* GENERAL */
  section {
    margin: 40px auto;
  }

  /* HEADER */
  :root {
    --header-h: 50px;
    --hudline-h: 6px;
  }
  .logo-group img { height: 30px; }

  /* HERO SECTION: Mobile Alignment Refined */
  .hero {
    padding: 60px 20px 30px;
  }
  .hero::after {
       
        top: 30px; 
    }
  .acharya {
    top: 20px;
    right: 110px;
    /* text-align: center; */
    font-size: clamp(24px, 6vw, 60px);
  }
  .D-dots {
    justify-content: center;
    top: 30px;
  }
  .headline-row {
    gap: 30px;
  }
 .stagger {
    top: -50px;
    line-height: .8;
    /* Example: Font size scales between 10px and 14px */
    font-size: 5px;
    width: auto;
    right: -20px;
}
  .abstract {
    top: -60px;
    max-width: 40%;
  }
  .tagline {
    top: -70px;
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
  

  /* ABOUT SECTION */
  .hd.section-container {
    padding: 0 10px;
    gap: 16px;
    margin-top: 0;
  }
  .hero-description {
    width: 100%;
    font-size: 0.9rem;
  }
  .qr-code {
    width: 150px;
  }
  .show-all a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  /* EVENTS */
  .events-header h2 {
    font-size: 1.1rem;
    padding: 10px 30px;
  }
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
    .row-2 {
    display: flex;
    flex-direction:row;
    gap: 16px;
    margin-top: 40px;
  }
  .event-image {
    width: 100px;
    height: 100px;
  }
  .event-card p {
    font-size: 0.75rem;
  }

  /* GALLERY */
  .gallery-header h2 {
    padding: 16px 40px;
    font-size: 1.4rem;
  }

  /* SPONSORS */
  .our-sponsors h2 {
    padding: 12px 40px;
    font-size: 1.2rem;
  }
  .sponsor-image {
    width: 100%;
    max-width: 250px;
    transform: scale(1.5);
  }
  
  /* PATTERN ANIMATION */
  .decorative-pattern {
    gap: 8px;
  }
  .pattern-row {
    gap: 8px;
  }
  .pattern-icon {
    width: 26px;
    height: 26px;
  }
  .pattern-ring {
    border-width: 2px;
    animation: ringColorShift 10s linear infinite;
  }
  @keyframes floatTogether {
    0% { transform: translateY(0); }
    50% { transform: translateY(60px); }
    100% { transform: translateY(0); }
  }
}

@media (max-width: 500px) {
  /* GENERAL */
  section {
    margin: 40px auto;
  }

  /* HEADER */
  :root {
    --header-h: 50px;
    --hudline-h: 6px;
  }
  .logo-group img { height: 30px; }

  /* HERO SECTION: Mobile Alignment Refined */
  .hero {
    padding: 60px 20px 30px;
  }
  .hero::after {
       
        top: 30px; 
    }
  .acharya {
    top: 10px;
    right: 130px;
    /* text-align: center; */
    font-size: clamp(24px, 6vw, 60px);
  }
  .D-dots {
    justify-content: center;
    top: 10px;
  }
  .headline-row {
    gap: 30px;
  }
 .stagger {
    top: -50px;
    line-height: .8;
    /* Example: Font size scales between 10px and 14px */
    font-size: 1rem;
    width: auto;
    right: -20px;
}
  .abstract {
    top: -60px;
    max-width: 40%;
  }
  .tagline {
    top: -70px;
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
  

  /* ABOUT SECTION */
  .hd.section-container {
    padding: 0 10px;
    gap: 16px;
    margin-top: 0;
  }
  .hero-description {
    width: 100%;
    font-size: 0.9rem;
  }
  .qr-code {
    width: 150px;
  }
  .show-all a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  /* EVENTS */
  .events-header h2 {
    font-size: 1.1rem;
    padding: 10px 30px;
  }
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
    .row-2 {
    display: flex;
    flex-direction:row;
    gap: 16px;
    margin-top: 40px;
  }
  .event-image {
    width: 100px;
    height: 100px;
  }
  .event-card p {
    font-size: 0.75rem;
  }

  /* GALLERY */
  .gallery-header h2 {
    padding: 16px 40px;
    font-size: 1.4rem;
  }

  /* SPONSORS */
  .our-sponsors h2 {
    padding: 12px 40px;
    font-size: 1.2rem;
  }
  .sponsor-image {
    width: 100%;
    max-width: 250px;
    transform: scale(1.3);
  }
  
  /* PATTERN ANIMATION */
  .decorative-pattern {
    gap: 8px;
  }
  .pattern-row {
    gap: 8px;
  }
  .pattern-icon {
    width: 20px;
    height: 20px;
  }
  .pattern-ring {
    border-width: 2px;
    animation: ringColorShift 10s linear infinite;
  }
  @keyframes floatTogether {
    0% { transform: translateY(0); }
    50% { transform: translateY(60px); }
    100% { transform: translateY(0); }
  }
}