/* ====== Reset and Base ====== */
body, html {
  scroll-behavior: smooth;
  transition: all 0.3s ease-in-out;
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 72px; /* So content isn't hidden under navbar */
}

@media (max-width: 900px) {
  body { padding-top: 66px; }
}

/* ====== Sticky Navbar ====== */
.main-navbar {
  width: 100vw;
  box-sizing: border-box;
  background: rgba(28,28,34,0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  box-shadow: 0 3px 16px 0 #0002;
  min-height: 64px;
}
.main-navbar .nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0; padding: 0;
}
.menu-toggle {
  display: none;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 18px;
  z-index: 202;
  user-select: none;
}
.nav-overlay { display: none; }
@media (max-width: 900px) {
  .main-navbar {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    padding: 10px 12px;
    min-height: 58px;
  }
  .main-navbar .logo { z-index: 203; }
  .main-navbar .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 400px; height: 100vh;
    background: #181820;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    font-size: 1.12rem;
  }
  .main-navbar .nav-links.active { right: 0; }
  .main-navbar .nav-links li { margin: 0 0 16px 0; width: 100%; }
  .main-navbar .nav-links li a {
    width: 100%; display: block; padding: 14px 10px; border-radius: 7px;
  }
  .apply-btn {
    margin: 20px 0 0 0; width: 100%; display: block; text-align: center;
  }
  .menu-toggle { display: block; z-index: 205; }
  .nav-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(20,20,20,0.47);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
  }
  .nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
  }
}

/* ====== HERO SECTION ====== */
.about-hero-layout {
  min-height: 82vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: url('pictures/aboutbg.jpg') no-repeat center center/cover;
  position: relative;
}
.about-hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-hero-flex {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: 82vh;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.about-hero-logo-wrap {
  flex: 0 0 56%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 320px;
  height: 100%;
}
.about-hero-logo {
  width: 90%;
  max-width: 730px;
  min-width: 320px;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 0 110px 10px #ffd50055, 0 8px 60px #0005;
  transform: translateZ(0); /* Add this for better performance */
  will-change: transform; /* Add this for performance */
  transition: box-shadow 0.3s;
  cursor: pointer;
  background: #181820dd;
  margin: 0 0 0 10px;
  animation: heroPulse 2.8s infinite cubic-bezier(.75,0,.25,1.05) alternate;
}
@keyframes heroPulse {
  0% {
    transform: scale(1) rotate(-1deg);
    box-shadow: 0 0 110px 10px #ffd50055, 0 8px 60px #0005;
    filter: brightness(1) contrast(1) drop-shadow(0 0 16px #ffd50066);
  }
  60% {
    transform: scale(1.045) rotate(2.7deg);
    box-shadow: 0 0 170px 25px #ffd50099, 0 16px 80px #ffd50033;
    filter: brightness(1.11) contrast(1.12) drop-shadow(0 0 32px #ffd50099);
  }
  100% {
    transform: scale(1) rotate(-1deg);
    box-shadow: 0 0 110px 10px #ffd50055, 0 8px 60px #0005;
    filter: brightness(1) contrast(1) drop-shadow(0 0 16px #ffd50066);
  }
}
.about-hero-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items:flex-start;
  justify-content: center;
  padding: 0 5vw;
  min-width: 320px;
  z-index: 3;
}
.about-hero-title {
  font-size: 3.2rem;
  line-height: 1.12;
  font-weight: 900;
  color: #f0e8e8;
  margin: 0 0 18px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  text-shadow: 0 4px 18px #000a;
  text-align:center;
}
.about-fx-gradient {
  background: linear-gradient(90deg, #ffd500 18%, #fff4 38%, #f9423a 66%, #ffd500 86%);
  background-size: 200% auto;
  color: #ffd500;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: shimmer 2.8s linear infinite;
  -webkit-animation: shimmer 2.8s linear infinite;
  font-weight: 900;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  letter-spacing: 3px;
  will-change: background-position;
}
@keyframes shimmer {
  0% { background-position: 200% center;}
  100% { background-position: -200% center;}
}
.about-hero-subtext {
  color: #f7f5ed;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 10px 20px #000d;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  text-align: center;
}
.about-fx-shadow {
  text-shadow: 0 4px 18px #000a, 0 2px 8px #ffd50044;
}
@media (max-width: 900px) {
  .about-hero-flex {
    flex-direction: column;
    min-height: unset;
    align-items: center;
    justify-content: center;
  }
  .about-hero-logo-wrap {
    width: 100%;
    flex: unset;
    justify-content: center;
    margin-bottom: 18px;
  }
  .about-hero-logo {
    max-width: 90vw;
    width: 90vw;
    min-width: 160px;
    margin: 0 auto 8px auto;
  }
  .about-hero-text-wrap {
    padding: 0 4vw;
    align-items: center;
    text-align: center;
  }
  .about-hero-title {
    font-size: 1.38rem;
    color: rgb(247, 246, 244);
    margin-bottom: 8px;
    text-align: center;
  }
  .about-hero-subtext {
    font-size: 1.07rem;
  }
}

/* ====== MAAC SECTION ====== */
.about-maac-section {
  background: radial-gradient(ellipse at top right, #2c191a 60%, #1a1a1a 100%);
  padding: 60px 0 30px 0;
  color: #fff;
}
.about-maac-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 0 24px;
}
.about-maac-text {
  flex: 1 1 380px;
  min-width: 280px;
  max-width: 600px;
}
.about-maac-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffd500;
  line-height: 1.15;
}
.about-maac-text .highlight {
  color: #ffd500;
  font-weight: 600;
}
.about-maac-text p {
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 0;
}
.about-maac-video {
  flex: 1 1 420px;
  min-width: 250px;
  max-width: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.about-maac-video-inner {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 24px 0 #0006;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/9;
  position: relative;
  z-index: 2;
}
.about-maac-video-inner iframe,
.about-maac-video-inner video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-border-top, .video-border-bottom, .video-border-side, .video-border-side-right {
  position: absolute;
  background: #ffd500;
  z-index: 1;
}
.video-border-top {
  top: -10px; left: -10px; width: 60px; height: 3px;
  background: linear-gradient(90deg, #ffd500 70%, #f9423a 100%);
}
.video-border-side {
  top: -10px; left: -10px; width: 3px; height: 60px;
  background: linear-gradient(180deg, #ffd500 70%, #f9423a 100%);
}
.video-border-bottom {
  bottom: -10px; right: -10px; width: 60px; height: 3px;
  background: linear-gradient(90deg, #f9423a 0%, #ffd500 100%);
}
.video-border-side-right {
  bottom: -10px; right: -10px; width: 3px; height: 60px;
  background: linear-gradient(180deg, #f9423a 0%, #ffd500 100%);
}
@media (max-width: 1100px) {
  .about-maac-container { max-width: 98vw; padding: 0 8px; }
}
@media (max-width: 900px) {
  .about-maac-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 10px;
  }
  .about-maac-text, .about-maac-video {
    min-width: unset;
    width: 100%;
    max-width: unset;
    padding-left: 0;
    text-align: center;
  }
  .about-maac-video-inner {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .about-maac-section {
    padding: 32px 0 18px 0;
  }
  .about-maac-container {
    gap: 18px;
    padding: 0 2vw;
  }
  .about-maac-text h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .about-maac-text p {
    font-size: 1rem;
    line-height: 1.45;
  }
  .about-maac-video-inner {
    border-radius: 7px;
  }
}
@media (max-width: 420px) {
  .about-maac-text h2 {
    font-size: 1.1rem;
  }
  .about-maac-section {
    padding: 18px 0 8px 0;
  }
}
.about-difference-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1c0f 100%);
  position: relative;
  overflow: hidden;
}

/* Add decorative background elements */
.about-difference-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 3rem;
  font-weight: 600;
  position: relative;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  position: relative;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 50%;
  padding: 1rem;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  z-index: -1;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .about-difference-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* About Carousel Section */
.about-carousel-section {
  padding: 60px 20px;
  background: #0d0d0d;
  overflow: hidden;
}

.about-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.about-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%;
}

.about-carousel-slide {
  flex: 0 0 33.333%;
  position: relative;
  padding: 0 15px;
}

.about-carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  border-radius: 0 0 12px 12px;
  color: #fff;
}

.slide-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-family: "Rubik Dirt", system-ui;
  color: #ffe55e;
}

.slide-content p {
  font-size: 16px;
  opacity: 0.9;
}

.about-carousel-prev,
.about-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
}

.about-carousel-prev:hover,
.about-carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.about-carousel-prev {
  left: -20px;
}

.about-carousel-next {
  right: -20px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-carousel-slide {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .about-slide-image, .about-slide-text {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .about-slide-text {
    margin-top: 20px;
    padding: 20px;
  }

  .about-section-title, .about-section-subtext {
    text-align: center;
    padding-left: 0;
  }

  .about-difference-header {
    padding: 30px 20px 10px;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .about-carousel-slide {
    padding: 0 10px;
  }

  .about-carousel-slide img {
    height: 300px;
  }

  .slide-content h3 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .about-carousel-prev,
  .about-carousel-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about-carousel-slide img {
    height: 250px;
  }

  .slide-content {
    padding: 15px;
  }

  .slide-content h3 {
    font-size: 18px;
  }
}

/* Achievements Section */
.achievements-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1c0f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.achievements-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.achievement-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.achievement-image {
  flex: 1;
  position: relative;
}

.achievement-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  z-index: 1;
}

.achievement-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.achievement-content {
  flex: 1;
}

.achievement-content h2 {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 2rem;
  position: relative;
}

.achievement-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #FFD700;
}

.award-details {
  display: flex;
  gap: 2rem;
}

.award-icon {
  font-size: 3rem;
  color: #FFD700;
  opacity: 0.9;
}

.award-text h3 {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 1rem;
}

.award-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.award-highlights {
  list-style: none;
  padding: 0;
}

.award-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #e0e0e0;
}

.award-highlights li i {
  color: #FFD700;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .achievement-container {
    flex-direction: column;
    gap: 3rem;
  }

  .achievement-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .achievement-content {
    text-align: center;
  }

  .achievement-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .award-details {
    flex-direction: column;
    align-items: center;
  }

  .award-text {
    text-align: center;
  }

  .award-highlights li {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .achievements-section {
    padding: 3rem 1rem;
  }

  .achievement-content h2 {
    font-size: 2rem;
  }

  .award-text h3 {
    font-size: 1.5rem;
  }

  .award-text p {
    font-size: 1rem;
  }
}
