* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #1d2a49;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1002;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;
  height: auto;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links ul {
  display: flex;
  font-size: 1.2em;
  gap: 50px;
}

.nav-links ul li a {
  color: #1d2a49;
  transition: 0.3s;
}

.nav-links ul li.active a {
  color: #bfdcec;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons a {
  font-size: 30px;
  color: #1d2a49;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons a:hover i.fa-instagram { color: #e244a0; }
.social-icons a:hover i.fa-linkedin  { color: #0077b5; }
.social-icons a:hover i.fa-envelope  { color: #ab6bc5; }

.language-switch .lang-btn,
.lang-button {
  font-size: 16px;
  padding: 6px 14px;
  border: 2px solid #1d2a49;
  border-radius: 20px;
  color: #1d2a49;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-button {
  background-color: transparent;
  width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lang-button:hover {
  background-color: #1d2a49;
  color: white;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

.menu-hamburger { display: none; width: 35px; cursor: pointer; }
.close-btn { display: none; }

/* ================= RESPONSIVE NAVBAR ================= */
@media screen and (max-width: 900px) {
  .mobile-only { display: flex; }
  .desktop-only { display: none; }

  .navbar { padding: 10px 20px; }
  .navbar .logo { margin-right: auto; }
  .menu-hamburger { display: block; margin-left: auto; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .nav-links.mobile-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links ul { flex-direction: column; gap: 30px; text-align: center; }

  .nav-links.mobile-menu .social-icons,
  .nav-links.mobile-menu .lang-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 1004;
  }
}

/* HERO SECTION (Fix for Desktop + Mobile)*/

.clig-hero {
  position: relative;
  width: 100%;
  height: 80vh;           /* DESKTOP HEIGHT */
  overflow: hidden;
  background-color: #0a1f44;
}

/* ---- Background Image ---- */
.clig-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('Images/UdeM.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  opacity: 0;
  z-index: 1;
  animation: bgFadeIn 1.6s ease-in-out forwards 6s;
}

/* ---- Curtains ---- */
.curtain {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(to right, #bfdcec, #ffffff);
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.18);
  z-index: 12;
}

.curtain-right {
  right: 0;
  background: linear-gradient(to left, #bfdcec, #ffffff);
  box-shadow: inset 5px 0 10px rgba(0,0,0,0.18);
}

.curtain-left {
  left: 0;
  animation: curtainLeft 3s ease-in-out forwards;
}

.curtain-right {
  animation: curtainRight 3s ease-in-out forwards;
}

/* ---- Intro Text ---- */
.clig-intro {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.clig-line {
  opacity: 0;
  white-space: nowrap;
  color: white;
}

.clig-line1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
  font-weight: 700;
}

.clig-line1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  animation: zoomInLine 2s ease forwards 1.5s, slideOutLeft 1.8s ease-in-out forwards 7s;
}

.clig-line2 {
  font-size: 1.4rem;
  animation: zoomInLine 2s ease forwards 1.5s, slideOutRight 1.8s ease-in-out forwards 7s;
}

/* ---- Final Title ---- */
.clig-final {
  position: absolute;
  bottom: 275px;    /* Desktop baseline */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  opacity: 0;
  animation: fadeInFinal 1.6s ease forwards 9s;
}

.clig-final h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: white;
  margin: 0;
}

/* ---- Skip Button ---- */
.skip-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  opacity: 0;
  animation: skipFadeIn 0.6s ease forwards 9s;
}

.skip-btn {
  background-color: white;
  color: #0a1f44;
  border: 2px solid #0a1f44;
  padding: 18px 40px;       /* Thicker button */
  border-radius: 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* KEYFRAMES */

@keyframes curtainLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-110%); }
}

@keyframes curtainRight {
  from { transform: translateX(0); }
  to { transform: translateX(110%); }
}

@keyframes zoomInLine {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100%); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes fadeInFinal {
  from { opacity: 0; transform: translateX(-50%) scale(0.88); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes bgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes skipFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MOBILE FIXES */

@media screen and (max-width: 768px) {

  /* FIX IPHONE TALL HEIGHT BUG */
  .clig-hero {
    height: 80dvh;   
  }

  /* Scale everything proportionally */
  .clig-intro {
    top: 14%;
    transform: translateX(-50%) scale(0.82);
  }

  .clig-line1 {
    font-size: 1.9rem;
  }

  .clig-line2 {
    font-size: 1.1rem;
    line-height: 1.35;
    white-space: normal;
  }

  .clig-final {
    bottom: 250px;   /* Ensures identical proportions */
  }

  .clig-final h1 {
    font-size: 2.6rem;
  }

  .curtain {
    width: 45%;  /* Prevents gaps */
  }

  /* Background fixed to prevent shrinking */
  .clig-bg {
    background-size: cover !important;
    background-position: center;
  }

  /* Button perfect center & above content */
  .skip-wrapper {
    bottom: 25px;
  }

  .skip-btn {
    padding: 18px 36px;
    font-size: 17px;
  }
}


/* ================= FEATURES SECTION ================= */
.feature-section {
  background-color: #fffcff;
  padding: 130px 20px;
}

.feature-content {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.feature-heading h4 {
  color: #1d2a49;
  font-weight: 600;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feature-heading h2 {
  font-size: 14px;
  font-weight: 700;
  color: #1d2a49;
  font-family: "Poppins", sans-serif;
}

.features-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}

.feature-box {
  width: 250px;
  padding: 70px 20px 30px;
  background: #d6f1ff;
  border-radius: 20px;
  text-align: left;
  position: relative;
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background-color: #1d2a49;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  font-size: 32px;
  color: #ffffff;
}

.feature-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1d2a49;
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.feature-box p {
  font-size: 15px;
  color: #1d2a49;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
  text-align: justify;
}

@media (max-width: 768px) { .feature-box { width: 80%; } }
@media (max-width: 480px) { .feature-box { width: 100%; } }

/* ================= ORBS SECTION ================= */
.orb-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: #1d2a49;
}

.orb {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #bfdcec, #e9f3fa);
  border-radius: 50%;
  box-shadow: 0 0 30px #3e5467;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, color 0.3s;
  perspective: 1000px;
  text-align: center;
  color: #421c1c;
  overflow: hidden;
}

.orb-heading h2 {
  font-style: normal;
  background-color: #1d2a49;
  color: #d6f1ff;
  text-align: center;
  font-size: 45px;
  margin-top: 50px;
  padding: 5px;
  font-family: "Poppins", sans-serif;
}

.orb-heading p {
  background-color: #1d2a49;
  color: #bfdcec;
  text-align: center;
  font-size: 20px;
  font-family: "DM Sans", sans-serif;
}

.orb:hover { transform: scale(1.1); color: transparent; }

.orb .count,
.orb .desc {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
  opacity: 0;
  color: #1d2a49;
  pointer-events: none;
  transition: transform 0.5s, opacity 0.5s;
  backface-visibility: hidden;
}

.orb:hover .count,
.orb:hover .desc,
.orb.active .count,
.orb.active .desc {
  transform: translate(-50%, -50%) rotateX(0);
  opacity: 1;
}

.orb .count { font-size: 30px; font-weight: bold; padding-bottom: 20px; }
.orb .desc { margin-top: 20px; font-size: 17px; line-height: 1.3; }

.orb:hover span,
.orb:hover .emoji,
.orb.active span,
.orb.active .emoji { opacity: 0; }

@media (max-width: 768px) {
  .orb-container { gap: 20px; padding: 40px 10px; }
  .orb { width: 100px; height: 100px; font-size: 28px; }
  .orb .count { font-size: 18px; }
  .orb .desc { font-size: 12px; }
}

/* ================= FOOTER ================= */
.footer {
  background-color: #ffffff;
  color: #1d2a49;
  padding: 25px 20px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left .logo-img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-left p { line-height: 1.5; max-width: 300px; }

.footer-links h4,
.footer-social h4 { margin-bottom: 12px; font-weight: 600; color: #1d2a49; }

.footer-links ul { padding: 0; list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  color: #1d2a49;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links ul li a:hover { color: #bfdcec; }

.footer-social .social-icons a {
  color: #1d2a49;
  margin-right: 15px;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social .social-icons a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid #1d2a49;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-left { align-items: center; }
  .footer-left .logo-img { margin-bottom: 15px; }
  .footer-left p { max-width: 100%; }
  .footer-links, .footer-social { margin-top: 30px; }
  .footer-social .social-icons a { margin-right: 10px; }
}

