@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Inter:wght@100..900&display=swap");

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --accent: #ffcc00;
  
  /* Theme Variables - Default (Dark) */
  --background: #0f1115;
  --surface: #1a1d23;
  --surface-light: #252932;
  --text-main: #ffffff;
  --text-secondary: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --header-grad: linear-gradient(to right, #fff, #94a3b8);
  --logo-grad: linear-gradient(135deg, #fff 0%, #aaa 100%);
  --nav-bg: rgba(15, 17, 21, 0.8);
  --input-bg: rgba(255, 255, 255, 0.05);
  
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
}

body.light-mode {
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-light: #f1f5f9;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
  --header-grad: linear-gradient(to right, #0f172a, #475569);
  --logo-grad: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --input-bg: rgba(0, 0, 0, 0.03);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  perspective: 1500px;
}

/* --- 3D Floating Shapes --- */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), transparent);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 20s infinite alternate;
}

.shape:nth-child(1) { width: 300px; height: 300px; top: 10%; left: -5%; }
.shape:nth-child(2) { width: 400px; height: 400px; bottom: 10%; right: -5%; animation-delay: -5s; }

@keyframes float {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(50px, 100px) rotate(360deg); }
}

h1, h2, h3, h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* --- Global Components --- */

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 8rem 2rem;
}

.section__subheader {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.section__header {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4);
}

.nav__links .btn {
    padding: 0.6rem 1.4rem;
}

.btn__secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--text-main) !important;
}

.btn__secondary:hover {
  background: var(--glass);
  border-color: var(--primary);
}

/* --- Navigation --- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

nav.scrolled {
  padding: 1rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo a {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--logo-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Outfit", sans-serif;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#theme-toggle {
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-main);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav__links a:hover, .nav__links a.active {
  color: var(--text-main);
}

.nav__menu__btn {
  display: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Hero Section --- */

.header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 70% 30%, rgba(0, 123, 255, 0.05), transparent);
}

.header__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.header__content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  background: var(--header-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
}

.header__image {
  position: relative;
}

.header__image img {
  border-radius: 20px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* --- Service Section --- */

.service {
  background: var(--surface);
}

.service__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.service__image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service__list {
  display: grid;
  gap: 2rem;
}

.service__list li {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.service__list li:hover {
  background: var(--input-bg);
  border-color: var(--primary);
  transform: translateZ(20px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service__list li span {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.service__list h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.service__list p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Who We Are --- */

.about {
    background: var(--background);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image img {
  border-radius: 20px;
}

/* --- Sponsor Banner --- */

.sponsor {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.sponsor__container {
  overflow: hidden;
  position: relative;
}

.sponsor__container::before,
.sponsor__container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}

.sponsor__container::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.sponsor__container::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.sponsor__track {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.sponsor__item img {
  height: 50px;
  width: auto;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
}

body.light-mode .sponsor__item img {
    filter: grayscale(1) opacity(0.8);
}

.sponsor__item:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- FAQ / Steps --- */

.steps {
    background: var(--background);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.steps__card {
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  transform-style: preserve-3d;
}

.steps__card:hover {
  border-color: var(--primary);
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.steps__card span {
  display: inline-flex;
  padding: 1rem;
  font-size: 2.5rem;
  color: var(--primary);
  background: var(--glass);
  border-radius: 100%;
  margin-bottom: 1.5rem;
}

.steps__card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.steps__card p {
  color: var(--text-secondary);
}

/* --- Contact --- */

.contact {
  background: #f1f5f9; /* Light Gray/White as requested */
  color: #0f172a; /* Dark text for contrast */
  border-radius: 40px;
  margin: 4rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  perspective: 1000px;
}

body.light-mode .contact {
    background: #ffffff;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0;
}

.contact__content {
  padding: 6rem;
}

.contact__content .section__header {
    color: #0f172a;
}

.contact__info {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.info__item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.info__item i {
  font-size: 1.5rem;
  color: var(--primary);
  padding: 1rem;
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
}

.info__item p {
  color: #475569;
  font-size: 1.1rem;
}

.info__item b {
  color: #1e293b;
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

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

/* --- Footer --- */

footer {
  padding-top: 8rem;
  background: var(--background);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer__col h4 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__bar {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bar h4 {
    color: var(--text-main);
}

.footer__bar p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding: 0.5rem;
  background: var(--glass);
  border-radius: 8px;
}

.footer__socials a:hover {
  background: var(--primary);
  color: white;
}

.footer__partners {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer__partner-logo {
    max-height: 85px;  /* Increased from 50px */
    width: auto;
    background: #ffffff;
    padding: 1rem;     /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.footer__partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

body.light-mode .footer__partner-logo {
    border: 1px solid var(--glass-border);
}

/* --- Testimonials --- */

.testimonial {
    background: var(--surface);
}

.testimonial__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial__card {
    padding: 3rem 2rem;
    background: var(--background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.testimonial__card:hover {
    transform: translateY(-10px) rotateY(-5deg);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.testimonial__stars {
    color: #ffcc00; /* Gold */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonial__card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.testimonial__author h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */

@media (max-width: 1024px) {
  .header__container,
  .service__container,
  .about__container,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact__content {
    padding: 3rem;
  }
  
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.4s ease forwards;
    transition: background-color 0.3s ease;
  }

  .nav__links.open {
    display: flex;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav__menu__btn {
    display: block;
  }

  .nav__content {
      padding: 0 1rem;
  }

  .section__container {
      padding: 6rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact {
    margin: 2rem 1rem;
    border-radius: 20px;
  }

  .contact__content {
    padding: 2rem;
  }

  .footer__grid {
    gap: 2rem;
  }

  .footer__bar {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .steps__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 540px) {
    .section__header {
        font-size: 2.25rem;
    }

    .header__content h1 {
        font-size: 2.5rem;
    }

    .service__list li {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .service__list li span {
        font-size: 1.5rem;
    }
}
