/* =============================================
   SHARED.CSS — Used by ALL pages
   Navbar + Animations + Hover Effects + Responsive
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

/* Refined keyboard navigation without changing the visual design. */
:focus-visible {
  outline: 3px solid rgba(65, 144, 173, 0.7);
  outline-offset: 4px;
}

/* Keep the experience comfortable for visitors who request less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes navbarSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   SCROLL-TRIGGER ANIMATION CLASSES
   JS adds .visible when element enters viewport
   ============================================= */
.animate-fadeup {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.animate-slideLeft {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.animate-slideRight {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.animate-scaleIn {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.animate-fadeup.visible,
.animate-slideLeft.visible,
.animate-slideRight.visible,
.animate-scaleIn.visible {
  opacity: 1;
  transform: none;
}
/* Stagger delays */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}
.stagger-5 {
  transition-delay: 0.5s;
}

/* =============================================
   NAVBAR — ALL SCREENS
   ============================================= */
.Navbar-Div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0px 13.06px 30px 0px #00000014;
  border-radius: 65.28px;
  padding-right: 13px;
  animation: navbarSlideDown 0.6s ease both;
  position: relative;
  z-index: 1000;
}

.logo {
  padding-left: 41px;
  padding-bottom: 1.5px;
  padding-top: 1.5px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
}

.no-underline {
	text-decoration: none;
}

/* Contact Us in nav — hidden on desktop */
.nav-contact-link {
  display: none;
}

/* Nav link items */
.itemfont {
  font-family: Montserrat;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 20px;
  leading-trim: CAP_HEIGHT;
  line-height: 45.69px;
  letter-spacing: 0%;
  text-align: center;
  color: #000000;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}
/* Animated underline */
.itemfont::after {
  display: none;
}
.itemfont:hover {
  color: #4190ad;
}
.itemfont.active {
  color: #4190ad;
  font-weight: 700;
}

/* Section links (About, Career, Education) — never show selected state */
.nav-links a[href$="#about"],
.nav-links a[href$="#career"],
.nav-links a[href$="#education"] {
  -webkit-tap-highlight-color: transparent;
}
.nav-links a[href$="#about"].active,
.nav-links a[href$="#career"].active,
.nav-links a[href$="#education"].active,
.nav-links a[href$="#about"]:focus,
.nav-links a[href$="#career"]:focus,
.nav-links a[href$="#education"]:focus {
  color: #000000;
  font-weight: 600;
  background: transparent;
  outline: none;
}
@media (hover: none) {
  .nav-links a[href$="#about"]:hover,
  .nav-links a[href$="#career"]:hover,
  .nav-links a[href$="#education"]:hover {
    color: #000000;
    background: transparent;
  }
}

/* Contact Us button in navbar */
.contact-btn-navbar {
  height: 65px;
  padding: 0 43px;
  border-radius: 43.45px;
  background: linear-gradient(177.7deg, #418ca7 -1.74%, #386f83 98.07%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  box-shadow: 0 4px 16px rgba(65, 140, 167, 0.35);
}
.contact-btn-navbar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 140, 167, 0.5);
  opacity: 0.92;
}

/* =============================================
   HAMBURGER BUTTON
   ============================================= */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.hamburger-btn:hover {
  background: rgba(65, 140, 167, 0.08);
  border-color: rgba(65, 140, 167, 0.2);
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* X animation on active */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: #4190ad;
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: #4190ad;
}

/* =============================================
   SHARED SECTIONS — Contact, Footer
   ============================================= */
.contact-section {
  position: relative;
  margin: 20px;
  border-radius: 28px;
  overflow: hidden;
  height: 479px;
  transition: box-shadow 0.3s ease;
}
.contact-section:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-overlay {
  position: absolute;
  inset: 0;
}

.contact-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-content span {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 32px;
}

.contact-content h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 100%;
  text-align: center;
  text-transform: capitalize;
  color: #ffffff;
  margin-bottom: 76px;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.75);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13.45px;
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #386f83;
  padding: 30px 60px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.contact-btn img {
  width: 0.66em;
  height: auto;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    opacity 0.25s ease;
}
.contact-btn .contact-arrow-hover {
  display: none;
}
.contact-btn:hover {
  background: linear-gradient(177.7deg, #418ca7 -1.74%, #386f83 98.07%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(65, 140, 167, 0.4);
}
.contact-btn:hover .contact-arrow-default {
  display: none;
}
.contact-btn:hover .contact-arrow-hover {
  display: block;
  transform: translate(2px, -2px);
}

.footer {
  height: 54px;
  background: linear-gradient(177.7deg, #418ca7 -1.74%, #386f83 98.07%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  text-align: center;
  color: #ffffff;
  padding: 12px;
}

/* =============================================
   RESPONSIVE — DESKTOP BREAKPOINTS
   ============================================= */
@media (max-width: 1700px) {
  .footer {
    font-size: 20px;
  }
  .itemfont {
    font-size: 18px;
  }
  .contact-btn-navbar {
    font-size: 18px;
  }
  .nav-links {
    gap: 30px;
  }
}

@media (max-width: 1500px) {
  .itemfont {
    font-size: 16px;
  }
  .contact-btn-navbar {
    font-size: 16px;
  }
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 1450px) {
  .footer {
    font-size: 18px;
  }
  .nav-links {
    gap: 20px;
  }
  .navbarlogo {
    width: 90px;
  }
  .contact-btn-navbar {
    height: 55px;
    padding: 0 30px;
  }
}

@media (max-width: 1200px) {
  .footer {
    font-size: 16px;
  }
  .nav-links {
    gap: 15px;
  }
  .navbarlogo {
    width: 90px;
  }
  .contact-btn-navbar {
    height: 50px;
    padding: 0 25px;
  }
}

/* =============================================
   RESPONSIVE — HAMBURGER MENU (≤1150px)
   ============================================= */
@media (max-width: 1150px) {
  .hamburger-btn {
    display: flex;
    margin-right: 8px;
  }

  .Navbar-Div {
    position: relative;
    padding-right: 8px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.25s ease both;
  }

  /* Menu item hover in mobile */
  .nav-links .itemfont {
    font-size: 17px;
    padding: 10px 16px;
    border-radius: 14px;
    text-align: left;
    line-height: 1.4;
    transition:
      background 0.2s ease,
      color 0.2s ease;
  }
  .nav-links .itemfont::after {
    display: none;
  }
  .nav-links .itemfont:hover {
    background: rgba(65, 140, 167, 0.08);
    color: #4190ad;
  }
  .nav-links .itemfont.active {
    background: rgba(65, 140, 167, 0.1);
  }

  /* Contact Us button inside mobile menu */
  .nav-contact-link {
    display: flex !important;
    background: linear-gradient(177.7deg, #418ca7 -1.74%, #386f83 98.07%);
    color: #ffffff !important;
    border-radius: 43px;
    padding: 13px 30px;
    justify-content: center;
    font-weight: 700 !important;
    text-decoration: none;
    margin-top: 6px;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  .nav-contact-link:hover {
    opacity: 0.85;
    color: #ffffff !important;
    transform: translateY(-2px);
  }
  .nav-contact-link::after {
    display: none !important;
  }

  /* Hide navbar standalone Contact Us button */
  .contact-btn-navbar {
    display: none !important;
  }
}

/* =============================================
   RESPONSIVE — TABLETS (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .logo {
    padding-left: 20px;
  }
  .navbarlogo {
    width: 80px;
  }
  .contact-btn {
    font-size: 16px;
    padding: 18px 30px;
  }
  .contact-section {
    height: 280px;
    margin: 12px;
  }
  .contact-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .contact-content span {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .footer {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo {
    padding-left: 14px;
  }
  .navbarlogo {
    width: 65px;
  }
  .contact-btn {
    font-size: 14px;
    padding: 14px 22px;
  }
  .contact-section {
    height: 260px;
    margin: 8px 6px;
  }
  .contact-content h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .contact-content span {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .footer {
    font-size: 13px;
  }
}

@media (max-width: 375px) {
  .logo {
    padding-left: 12px;
  }
  .navbarlogo {
    width: 55px;
  }
  .contact-btn {
    font-size: 13px;
    padding: 12px 18px;
  }
  .contact-section {
    height: 240px;
  }
  .contact-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .contact-content span {
    font-size: 12px;
  }
  .footer {
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .logo {
    padding-left: 10px;
  }
  .navbarlogo {
    width: 48px;
  }
  .Navbar-Div {
    border-radius: 30px;
  }
  .contact-btn {
    font-size: 12px;
    padding: 10px 16px;
  }
  .contact-section {
    height: 220px;
    margin: 4px;
    border-radius: 16px;
  }
  .contact-content h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .contact-content span {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .footer {
    font-size: 11px;
    padding: 8px;
  }
}
