/* ==========================================================================
   RESET & SYSTEM CONFIGURATION
   ========================================================================== */
:root {
  /* Theme refined to match the NeoGen Innovators logo:
     deep navy base + steel-blue mid tone + soft cyan-steel accent.
     Less neon, more premium / elegant. */
  --ng-bg: #060a14;
  --ng-navy: #0b1830;
  --ng-steel: #1c4d73;
  --ng-accent: #4fa9d8;
  --ng-accent-soft: rgba(79, 169, 216, 0.18);
  --ng-text-muted: #9fb1c4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ng-bg);
  color: white;
  overflow-x: hidden;
}

.orbitron { 
  font-family: 'Orbitron', sans-serif; 
}

/* ==========================================================================
   BOOT UP SYSTEM LOADER GRAPHICS
   ========================================================================== */
#loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle, var(--ng-navy), #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
}

.loader-logo-container {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
}

.loader-logo {
  width: 180px;
  filter: drop-shadow(0 0 20px rgba(79, 169, 216, 0.55));
}

.boot-details {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#robotCanvas {
  width: 150px;
  height: 150px;
}

.loading-text {
  font-family: 'Orbitron', sans-serif;
  color: var(--ng-accent);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(79, 169, 216, 0.45);
}

.progress-bar {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--ng-accent);
  box-shadow: 0 0 10px var(--ng-accent);
}

.dots {
  display: inline-block;
  animation: blink 1.4s infinite both;
}

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================================================
   HORIZONTAL NAVIGATION HEADER
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 80px;
  z-index: 10000;
  background: rgba(6, 10, 20, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 169, 216, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 105px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(79, 169, 216, 0.2));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--ng-accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--ng-accent);
}

.nav-item:hover {
  color: var(--ng-accent);
  text-shadow: 0 0 8px rgba(79, 169, 216, 0.6);
}

.nav-item:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO MATRIX DISPLAY
   ========================================================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-text {
  text-align: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 60px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 4px;
  color: var(--ng-accent);
  text-shadow: 0 0 20px rgba(79, 169, 216, 0.7);
}

.hero p {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #aaa;
}

#bgCanvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.icon {
  position: absolute;
  font-size: 24px;
  animation: float 6s infinite ease-in-out;
  color: var(--ng-accent);
}

.icon:nth-child(1){ top:20%; left:15%; }
.icon:nth-child(2){ top:60%; left:85%; }
.icon:nth-child(3){ top:25%; left:75%; }
.icon:nth-child(4){ top:75%; left:20%; }
.icon:nth-child(5){ top:40%; left:80%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ==========================================================================
   UI INTERACTIVE GRAPHICS (GLOW, SCROLL)
   ========================================================================== */
#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,169,216,0.08) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0.7;
}

.scroll-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--ng-accent);
  margin-bottom: 10px;
  animation: float 2s infinite ease-in-out;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ng-accent), transparent);
}

/* ==========================================================================
   CONTENT CONTAINERS & LAYOUT OBJECTS
   ========================================================================== */
.content-container {
  position: relative;
  z-index: 5;
  padding-bottom: 120px;
}

.profile-section, .team-section, .achievements-section, .projects-section, .closing-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 80px;
  position: relative;
}

.section-glitch-text {
  font-size: 3rem;
  color: var(--ng-accent);
  text-shadow: 0 0 20px rgba(79, 169, 216, 0.6);
  letter-spacing: 5px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Core Team heading: unlike the other section titles, this one stays
   permanently visible above the team cards instead of fading in/out. */
.team-title-static {
  position: relative;
  opacity: 1 !important;
  margin-bottom: 10px;
  transform: none !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 169, 216, 0.05);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.glass-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 169, 216, 0.18);
}

.profile-card {
  width: 100%;
  max-width: 400px;
}

.profile-img {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--ng-accent) 0%, var(--ng-bg) 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 2px solid rgba(79, 169, 216, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%; 
}

.profile-img.small {
  width: 80px;
  height: 80px;
}

h3 { font-size: 1.8rem; margin-bottom: 5px; }
h4 { font-size: 1.2rem; color: var(--ng-accent); margin-bottom: 5px; }
p { color: #aaa; font-size: 0.9rem; }

.role-tag {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 15px;
}

.social-links {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-links a {
  color: var(--ng-accent);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--ng-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   PREMIUM SWIPER COVERFLOW CAROUSEL
   ========================================================================== */
.teamSwiper {
  width: 100%;
  max-width: 1100px;
  padding: 60px 0 80px 0; /* Padding accommodates shadow bleed & pagination */
  position: relative;
  z-index: 10;
  margin-top: 30px;
}

.teamSwiper .swiper-slide {
  width: 320px;
  height: auto;
  transition: all 0.4s ease;
  opacity: 0.4; 
  transform: scale(0.85); /* Slightly shrink inactive slides */
}

/* The active, centered card gets full focus */
.teamSwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 35px 25px;
  opacity: 1; /* Override the default .glass-card 0 opacity entrance */
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Enhance active slide shadow */
.swiper-slide-active .team-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(79, 169, 216, 0.2);
  border-color: rgba(79, 169, 216, 0.3);
}

.swiper-slide-active .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(79, 169, 216, 0.3);
}

/* Navigation Arrows Overrides */
.teamSwiper .swiper-button-next,
.teamSwiper .swiper-button-prev {
  color: var(--ng-accent);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(79, 169, 216, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  text-shadow: 0 0 8px var(--ng-accent);
  box-shadow: 0 0 10px rgba(79, 169, 216, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.teamSwiper .swiper-button-next:after,
.teamSwiper .swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: 700;
}

.teamSwiper .swiper-button-next:hover,
.teamSwiper .swiper-button-prev:hover {
  background: rgba(79, 169, 216, 0.1);
  border-color: var(--ng-accent);
  box-shadow: 0 0 20px rgba(79, 169, 216, 0.4);
  transform: scale(1.1);
}

/* Pagination Dot Overrides */
.teamSwiper .swiper-pagination-bullet {
  background: #aaa;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.teamSwiper .swiper-pagination-bullet-active {
  background: var(--ng-accent);
  opacity: 1;
  box-shadow: 0 0 10px var(--ng-accent);
  width: 25px;
  border-radius: 10px;
}

/* ==========================================================================
   ACHIEVEMENTS EXPLORER SECTION
   ========================================================================== */
.achievements-section {
  align-items: center;
}

/* AI guide bot + chat bubble */
.achv-guide {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  max-width: 760px;
  width: 100%;
  margin: 30px auto 60px;
  opacity: 0;
  transform: translateY(30px);
}

.achv-bot {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ng-steel) 0%, var(--ng-bg) 100%);
  border: 2px solid rgba(79, 169, 216, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(79, 169, 216, 0.2);
  animation: bot-bob 4s ease-in-out infinite;
}

.achv-bot-img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

@keyframes bot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.achv-bubble {
  padding: 28px 32px;
  text-align: left;
  flex: 1;
  opacity: 1;
  transform: none;
}

.achv-bubble-text {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 18px;
}

.achv-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.achv-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ng-accent);
  background: rgba(79, 169, 216, 0.08);
  border: 1px solid rgba(79, 169, 216, 0.35);
  border-radius: 30px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.achv-btn:hover {
  background: rgba(79, 169, 216, 0.18);
  border-color: var(--ng-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 169, 216, 0.25);
}

.achv-btn:focus-visible {
  outline: 2px solid var(--ng-accent);
  outline-offset: 2px;
}

/* Achievement grid/gallery — hidden until the user picks an option from
   the AI guide, so the chatbot interaction always comes first. */
.achv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.6s ease, opacity 0.5s ease, margin-top 0.6s ease;
}

.achv-grid.is-revealed {
  margin-top: 50px;
  max-height: 4000px; /* generous cap so all cards can expand fully */
  opacity: 1;
  pointer-events: auto;
}

.achv-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.achv-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ng-steel) 0%, var(--ng-navy) 100%);
}

.achv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.achv-info {
  padding: 24px 26px 28px;
}

.achv-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--ng-accent);
  background: rgba(79, 169, 216, 0.1);
  border: 1px solid rgba(79, 169, 216, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.achv-info h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.achv-org {
  color: var(--ng-text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.achv-rank {
  color: var(--ng-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.achv-desc {
  color: #aaa;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Highlight pulse when navigated to via guide buttons */
.achv-card.achv-focus {
  border-color: rgba(79, 169, 216, 0.6);
  box-shadow: 0 0 0 1px rgba(79, 169, 216, 0.4), 0 10px 40px rgba(0,0,0,0.6), 0 0 35px rgba(79, 169, 216, 0.25);
}

/* ==========================================================================
   PROJECTS SECTION — DIGITAL FOLDER REPOSITORY
   ========================================================================== */
/* Centering now comes from the shared .projects-section base rule above */

/* Title stays static and visible, same pattern as the Core Team heading,
   instead of the fade in/out used by Founder/Co-Founder/Achievements. */
.projects-title-static {
  position: relative;
  opacity: 1 !important;
  margin-bottom: 8px;
  transform: none !important;
  text-align: center;
}

.projects-subtitle {
  color: var(--ng-text-muted);
  font-size: 1rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 50px;
  opacity: 0;
  transform: translateY(16px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 36px 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Folder card: an <a> wrapping an SVG folder shape + label, themed in the
   site's navy / steel-blue / cyan palette instead of the bright reference
   colors. Built from three layered paths: back flap, inner page, front
   pocket — giving the open-folder silhouette from the reference image. */
.project-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.35s ease;
  outline: none;
}

.project-folder:focus-visible .folder-svg {
  filter: drop-shadow(0 0 0 3px var(--ng-accent));
}

.folder-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}

/* Back flap — deepest layer, steel/navy gradient */
.folder-back {
  fill: var(--ng-navy);
  stroke: rgba(79, 169, 216, 0.25);
  stroke-width: 1;
}

/* Inner page peeking out — soft, slightly translucent, glass-like */
.folder-page {
  fill: rgba(255, 255, 255, 0.9);
  opacity: 0.92;
}

/* Front pocket — main folder face, steel-blue to navy gradient via fill */
.folder-front {
  fill: var(--ng-steel);
  stroke: rgba(79, 169, 216, 0.35);
  stroke-width: 1;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.folder-label {
  text-align: center;
  margin-top: 4px;
  padding: 0 10px;
}

.folder-repo-icon {
  color: var(--ng-accent);
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.folder-label h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.folder-desc {
  font-size: 0.82rem;
  color: #9aa9bb;
  line-height: 1.4;
}

/* Hover: slight lift + soft cyan glow, smooth only, no excess motion */
.project-folder:hover .folder-svg {
  transform: translateY(-8px);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(79, 169, 216, 0.35));
}

.project-folder:hover .folder-front {
  fill: #2c6491;
  stroke: rgba(79, 169, 216, 0.6);
}

.project-folder:hover .folder-label h4 {
  color: var(--ng-accent);
}

/* ==========================================================================
   CLOSING SECTION — THANK YOU + FOOTER
   ========================================================================== */
.closing-section {
  min-height: auto;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at 50% 0%, rgba(79, 169, 216, 0.06), transparent 60%);
}

.thankyou-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
  opacity: 0;
  transform: translateY(24px);
}

.thankyou-heading {
  font-size: 2.8rem;
  color: var(--ng-accent);
  text-shadow: 0 0 24px rgba(79, 169, 216, 0.5);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.thankyou-subtitle {
  color: var(--ng-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Footer */
.ng-footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(79, 169, 216, 0.12);
  border-radius: 20px;
  padding: 44px 36px 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(79, 169, 216, 0.04);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4d2e0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item i {
  color: var(--ng-accent);
  font-size: 0.95rem;
}

a.footer-contact-item:hover {
  color: var(--ng-accent);
}

.footer-contact-static {
  cursor: default;
}

.footer-socials {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
}

.footer-social-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(79, 169, 216, 0.06);
  border: 1px solid rgba(79, 169, 216, 0.25);
  color: var(--ng-accent);
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.footer-social-icon:hover {
  transform: translateY(-3px);
  background: rgba(79, 169, 216, 0.14);
  box-shadow: 0 8px 22px rgba(79, 169, 216, 0.25);
  color: #fff;
}

.footer-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(79, 169, 216, 0.25), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #9aa9bb;
}

.footer-credit {
  font-size: 0.78rem;
  color: #6f7f91;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media(max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media(max-width: 768px) {
  .top-nav {
    padding: 10px 25px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links { gap: 20px; }
  .nav-item { font-size: 0.85rem; letter-spacing: 1px; }

  .hero h1 { font-size: 2.5rem; }
  .hero-text { padding: 30px 20px; width: 90%; }
  .icon { display: none; }
  .logo { width: 90px; }
  
  .section-glitch-text { font-size: 2rem; }
  
  .team-section { padding: 40px 10px; }

  /* Mobile adjustments for Swiper */
  .teamSwiper .swiper-slide {
    width: 260px;
  }
  
  .teamSwiper .swiper-button-next,
  .teamSwiper .swiper-button-prev {
    width: 42px;
    height: 42px;
  }
  
  .teamSwiper .swiper-button-next:after,
  .teamSwiper .swiper-button-prev:after {
    font-size: 1rem;
  }

  /* Achievements mobile adjustments */
  .achievements-section { padding: 60px 16px 60px; }

  .achv-guide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px auto 40px;
  }

  .achv-bubble {
    text-align: center;
    padding: 24px 22px;
  }

  .achv-options {
    justify-content: center;
  }

  .achv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Projects mobile adjustments */
  .projects-section { padding: 60px 16px 60px; }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 40px;
  }

  .folder-svg {
    max-width: 190px;
  }

  /* Closing section (Thank You + Footer) mobile adjustments */
  .closing-section {
    padding: 70px 16px 40px;
  }

  .thankyou-block {
    margin-bottom: 50px;
  }

  .thankyou-heading {
    font-size: 2rem;
  }

  .thankyou-subtitle {
    font-size: 0.95rem;
  }

  .ng-footer {
    padding: 32px 22px 26px;
    border-radius: 16px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .footer-social-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .achv-bot { animation: none; }
  .project-folder,
  .folder-svg,
  .folder-front {
    transition: none;
  }
}
/* ==========================================================================
   THE INNER ORBIT — EXTENDED TEAM (FLIP CARDS)
   ========================================================================== */
.inner-orbit-section {
  padding-top: 80px;
}

.inner-orbit-subtitle {
  color: var(--ng-text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: -6px;
  margin-bottom: 50px;
  text-align: center;
}

.orbit-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  max-width: 100;
  width: 100%;
  margin: 0 auto;
  perspective: 1200px;
}
.orbit-grid .flip-card {
  flex: 0 0 calc(25% - 27px);
}

/* Flip Card Container */
.flip-card {
  width: 100%;
  height: 260px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  padding: 28px 20px;
  opacity: 1;
  transform: translateY(0);
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: rgba(28, 77, 115, 0.25);
  border: 1px solid rgba(79, 169, 216, 0.35);
}

.flip-card-front h4 {
  margin-top: 14px;
  font-size: 1.1rem;
}

.flip-card-front .role-tag {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Back Side Social Icons */
.flip-social-links {
  display: flex;
  gap: 24px;
}

.flip-social-links a {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(79, 169, 216, 0.08);
  border: 1px solid rgba(79, 169, 216, 0.35);
  color: var(--ng-accent);
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.flip-social-links a:hover {
  transform: translateY(-4px) scale(1.08);
  background: rgba(79, 169, 216, 0.2);
  box-shadow: 0 8px 24px rgba(79, 169, 216, 0.35);
  color: #fff;
}

/* Subtle glow on card hover */
.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(79, 169, 216, 0.18);
}

/* ==========================================================================
   THANK YOU SECTION ENHANCEMENTS
   ========================================================================== */
.cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 38px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--ng-steel) 0%, var(--ng-accent) 100%);
  border: none;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(79, 169, 216, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(79, 169, 216, 0.45);
}

.thankyou-heading {
  background: linear-gradient(90deg, var(--ng-accent), #7ecef4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ==========================================================================
   THE INNER ORBIT — EXTENDED TEAM (FIXED LAYOUT)
   ========================================================================== */
.inner-orbit-section {
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Guarantees centering of heading */
  width: 100%;
}

/* Heading Alignment Fix */
.inner-orbit-title {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
  /* Add your glitch/font styles here if needed */
}

.inner-orbit-subtitle {
  color: var(--ng-text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: -6px;
  margin-bottom: 50px;
  text-align: center;
  width: 100%;
}

/* Converted to CSS Grid for reliable responsive scaling */
.orbit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
  gap: 36px;
  width: 100%;
  max-width: 1100px; /* Fixed: Added 'px' unit */
  margin: 0 auto;
  perspective: 1200px;
}

/* Let the Grid dictate the width, completely removing problematic flex math */
.flip-card {
  width: 100%; 
  height: 260px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  padding: 28px 20px;
  opacity: 1;
  transform: translateY(0);
}

.flip-card-front {
  z-index: 2;
  /* Ensure images inside scale properly */
}

.flip-card-front img {
  width: 80px; 
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: rgba(28, 77, 115, 0.25);
  border: 1px solid rgba(79, 169, 216, 0.35);
}

.flip-card-front h4 {
  margin-top: 14px;
  font-size: 1.1rem;
}

.flip-card-front .role-tag {
  margin-top: 4px;
  margin-bottom: 0;
}

/* ==========================================================================
   INNER ORBIT RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .orbit-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .inner-orbit-section {
    padding: 60px 16px 60px;
  }

  .orbit-grid {
    grid-template-columns: 1fr; /* Mobile: 1 stacked column */
    max-width: 320px; /* Keeps single cards from stretching too wide */
    gap: 28px;
  }

  .flip-card {
    height: 250px; /* Slight height adjustment for mobile ratio */
  }
  
  .inner-orbit-title {
     font-size: 2.2rem; /* Optional: Scale down heading for mobile */
  }

  .flip-social-links a {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
}
/* Project folder container */
.project-folder {
  position: relative;
  display: block;
  text-decoration: none;
  width: fit-content;
}

/* Folder SVG */
.folder-svg {
  width: 220px;
  height: auto;
  display: block;
}

/* 🔥 PATENT TEXT ON FOLDER */
.patent-badge {
  position: absolute;
  top: 55px;              /* adjust based on your design */
  left: 50%;
  transform: translateX(-50%);
  
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;

  z-index: 10;
  pointer-events: none;

  /* Glow effect */
  text-shadow: 0 0 8px #00eaff, 0 0 15px #00eaff;
}

/* Folder label (text below) */
.folder-label {
  text-align: center;
  margin-top: 10px;
}

/* Optional: hover effect */
.project-folder:hover .patent-badge {
  text-shadow: 0 0 15px #00eaff, 0 0 25px #00eaff;
}
.patent-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%); /* important tweak */

  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;

  z-index: 10;
  pointer-events: none;

  text-shadow: 0 0 8px #00eaff, 0 0 15px #00eaff;
}
