@import url('css/nav-icons.css');

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

    body, html {
    font-family: 'Alata', sans-serif;
    }
    html {
    scroll-behavior: smooth;
    }


/* --------------------------------------------------------- font-family --------------------------------------------------------- */
@font-face {
    font-family: 'Dafont';
    src: url('font-family/Mainstay.otf') format('opentype');
}
@font-face {
    font-family: 'Dafont1';
    src: url('font-family/T-darling.ttf') format('opentype');
}

@font-face {
    font-family: 'Dafont2';
    src: url('font-family/Idealy.ttf') format('truetype');
}

@font-face {
    font-family: 'Dafont3';
    src: url('font-family/Idealy2.otf') format('opentype');
}









/* --------------------------------------------------------- Basic right & left autoscroll styling --------------------------------------------------------- */
.hidden-left {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1s;
  }
  
  .hidden-right {
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s;
  }
  
  .show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
  
  .hidden-left:nth-child(2){
    transition-delay: 200ms;
  }
  .hidden-left:nth-child(3){
    transition-delay: 500ms;
  }
  .hidden-left:nth-child(4){
    transition-delay: 700ms;
  }
















/* -----------------------------------------------------------------------pop-up-text  ----------------------------------------------------------------------- */
.pop-up-text {
    opacity: 0;
    transform: translateY(60px); /* Come from below (smaller distance = smoother) */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    will-change: transform, opacity; /* performance optimization */
}

.pop-up-text.visible {
    opacity: 1;
    transform: translateY(0); /* Fully visible at final position */
}

/* Optional: staggered animation */
.pop-up-text:nth-child(2) {
    transition-delay: 0.2s;
}
.pop-up-text:nth-child(3) {
    transition-delay: 0.4s;
}
.pop-up-text:nth-child(4) {
    transition-delay: 0.6s;
}

/* Disable transition on small screens */
@media (max-width: 768px) {
    .pop-up-text {
        transition: none;
        opacity: 1;
        transform: translateY(0);
    }
}













/*--------------------------------------------------------- Navbar ---------------------------------------------------------*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #246BCE;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
  z-index: 1000;
  transition: top 0.4s ease;
}

.logo a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo a:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.logo img {
  height: 50px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* -------------------- Desktop Dropdown (original style) -------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 0;
  list-style: none;
  min-width: 180px;
  border-radius: 8px;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown-menu li {
  width: 90%;
  text-align: center;
  margin: 3px 0;
  transition: width 0.3s ease;
}

.dropdown-menu li:hover {
  width: 100%;
}

.dropdown-menu li a {
  color: #fff;
  background-color: #6495ed;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  display: block;
  width: 100%;
  padding: 8px 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #4583f4;
}
@media (min-width: 769px){
.dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  padding: 10px 0;
}
}

.dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  padding: 10px 0;
}

/* -------------------- Mobile Layout -------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  /* ---------------- Mobile Menu ---------------- */
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #246BCE;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  /* When menu is active */
  .nav-links.active {
    max-height: 90vh; /* almost full screen */
    opacity: 1;
    overflow-y: auto; /* scroll if content is too long */
    padding-bottom: 1rem;
  }

  /* Center each nav item */
  .nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
  }

  /* ---------------- Dropdown Adjustments ---------------- */
  .dropdown-menu {
    position: relative;
    width: 100%;       
    max-height: 0;     
    opacity: 0;
    border-radius: 1px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;         /* center all children horizontally */
    justify-content: center;     /* center all children vertically */
  }

  /* When dropdown is active */
  .dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
  }

  /* Dropdown list item styling */
  .dropdown-menu li,
  .dropdown-menu li a {
    width: 100%;
    box-sizing: border-box;
  }

  /* ✅ Perfect vertical & horizontal centering for dropdown links */
  .dropdown-menu.active li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* consistent height */
    text-align: center;
    padding: 0;
  }

  /* Center the dropdown trigger */
  .nav-links li.dropdown {
    height: auto;
    flex-direction: column; /* stack trigger and dropdown vertically */
  }

  .nav-links li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* height for trigger */
    width: 100%;
    text-align: center;
  }
}






/* -------------------- Register / Login button -------------------- */
.login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #4da8ff 0%, #246bce 48%, #1a4f9e 100%);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
  transform: translateY(0);
  box-shadow:
    0 4px 16px rgba(36, 107, 206, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.login-btn:hover {
  background: linear-gradient(135deg, #5eb8ff 0%, #2d7ad4 48%, #1e5aab 100%);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 26px rgba(36, 107, 206, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.login-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(36, 107, 206, 0.35),
    0 8px 26px rgba(36, 107, 206, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 10px rgba(36, 107, 206, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ripple effect */
.login-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.login-btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.login-btn--signout {
  background: linear-gradient(135deg, #64748b 0%, #475569 48%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 16px rgba(51, 65, 85, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-btn--signout:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 48%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.login-btn--signout i {
  font-size: 0.88rem;
}

/* -------------------- Underline Effect -------------------- */
.underline-effect {
  position: relative;
  padding-bottom: 4px;
  font-weight: bold;
}

.underline-effect::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #6495ed;
  transition: width 0.4s ease, left 0.4s ease;
}

.underline-effect:hover::after,
.underline-effect.active::after {
  width: 100%;
  left: 0;
}
/* -------------------- Mobile & Tablet Underline Adjustments -------------------- */
@media (max-width: 768px) {
  .underline-effect::after {
    height: 2px;
    width: 0; /* start hidden */
  }

  .underline-effect:hover::after,
  .underline-effect.active::after {
    width: 40%; /* ✅ make it shorter, around the text */
    left: 30%;  /* ✅ keep it centered under the text */
  }
}



















/* --------------------------------------------------------- footer style --------------------------------------------------------- */
.site-footer {
  background-color: #246BCE;
  /* background: linear-gradient(to right, #4e54c8, #40c9ff); */
  color: #fff;
  padding: 60px 20px 20px;
  position: relative;
}

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

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4,
.about h3 {
  color: #fff;
  margin-bottom: 20px;
}

.about h3 {
  font-size: 24px;
}

.about p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding-left: 2px;
  transition: color 0.3s ease, transform 0.25s ease;
}

.footer-column ul li a:hover {
  color: #40c9ff;
  transform: translateX(6px);
}


.social-icons {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.social-icons a {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: rgba(64, 201, 255, 0.18);
  border: 1px solid rgba(64, 201, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
  animation: socialFloat 4s ease-in-out infinite;
  will-change: transform;
}

.social-icons a:nth-child(1) { animation-delay: 0s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.4s; }
.social-icons a:nth-child(4) { animation-delay: 0.6s; }
.social-icons a:nth-child(5) { animation-delay: 0.8s; }

.social-icons a i {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-icons a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.social-icons a::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.94);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.social-icons a.is-paused,
.social-icons a:hover,
.social-icons a:focus-visible {
  animation: none;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 22px rgba(64, 201, 255, 0.35);
  outline: none;
}

.social-icons a:hover i,
.social-icons a:focus-visible i {
  transform: scale(1.08);
}

.social-icons a:hover::after,
.social-icons a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-icons a:hover::before,
.social-icons a:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.social-icons a:active {
  transform: translateY(-2px) scale(1.04);
  transition-duration: 0.12s;
}

.social-icons a:focus-visible {
  box-shadow: 0 0 0 3px rgba(64, 201, 255, 0.45), 0 10px 22px rgba(64, 201, 255, 0.3);
}

.social-icons a.social-facebook:hover,
.social-icons a.social-facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.35);
}

.social-icons a.social-instagram:hover,
.social-icons a.social-instagram:focus-visible {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: #dd2a7b;
  box-shadow: 0 10px 22px rgba(221, 42, 123, 0.35);
}

.social-icons a.social-x:hover,
.social-icons a.social-x:focus-visible {
  background: #0f1419;
  border-color: #2f3336;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.social-icons a.social-linkedin:hover,
.social-icons a.social-linkedin:focus-visible {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 10px 22px rgba(10, 102, 194, 0.35);
}

.social-icons a.social-youtube:hover,
.social-icons a.social-youtube:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 22px rgba(255, 0, 0, 0.32);
}

@keyframes socialFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .social-icons a {
    animation: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .social-icons a:hover,
  .social-icons a:focus-visible {
    transform: none;
  }

  .social-icons a i {
    transition: none;
  }

  .social-icons a::after,
  .social-icons a::before {
    transition: none;
  }
}

@media (max-width: 480px) {
  .social-icons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
  }
}


.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-info i {
  color: #40c9ff;
  font-size: 16px;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid #fff;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom .highlight {
  color: #40c9ff;
}

.footer-bottom a {
  color: #40c9ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}
