* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body.lock-scroll {
  overflow: hidden;
}

/* Loader */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #051923; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Hide loading screen after animation */
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Loader Animation */
.loader {
  position: relative;
  width: 100px;
  height: 100px;
}
.loader span {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(calc(18deg * var(--i)));
}
.loader span::before {
  content: '';
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #FFF;
  position: absolute;
  top: 0;
  left: 0;
  filter: blur(5px);
  transform: scale(0);
  animation: load 2s linear infinite;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes load {
  0% {
      transform: scale(0);
      opacity: 0;
  }
  10% {
      transform: scale(1.2);
      opacity: 1;
  }
  80%, 100% {
      transform: scale(0);
      opacity: 0;
  }
}

.plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  animation: rotate 2s linear infinite;
  animation-delay: -1.5s;
}

@keyframes rotate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.plane .icon {
  font-size: 50px;
  color: #FFF;
  position: absolute;
  top: -10px;
  left: 80px;
  transform: rotate(45deg);
}


.container {
  padding-left: 4rem;
  padding-right: 4rem;
}

/* Navbar */
.navbar {
width: 100%;
height: auto;

}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: #051923;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: slideDownSticky 0.3s ease;
}


@keyframes slideDownSticky {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.nav-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #00a6fb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}


/* Landing Section */
.landing {
  background-color: #051923;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.landing-content {
  text-align: left;
  margin: auto 0;
  max-width: none;
  width: 100%;
}

.landing-content h1 {
  font-size: 3rem;
  margin: 0;
}

.landing-content p {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: #00a6fb;
}

.landing-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid #00a6fb;
  border-radius: 999px;
  background-color: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.landing-button:hover {
  border-color: #ffffff;
  cursor: pointer;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background-color: #ffffff;
  color: #333;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.about-content h2 {
  font-size: 3rem;
  color: #00a6fb;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  object-fit: cover;
}

/* Experience Section (Home) */
.experience-section-home {
  background-color: #051923;
  padding: 6rem 0;
  color: #ffffff;
}

.experience-content {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: center;
}

.experience-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.experience-text h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.experience-text p,
.experience-text li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.experience-text ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

.experience-gallery {
  flex: 1;
  min-width: 300px;
}

.slideshow-container {
  position: relative;
  width: 90%;
  max-height: 370px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background-color: transparent;
  border-radius: 1rem;
  padding: 0.25rem;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 0.25rem 0.5rem;
  color: white;
  font-weight: bold;
  font-size: 1.05rem;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  border-radius: 1rem;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Education */
.education-section {
  background-color: #ffffff;
  color: #333;
  padding: 6rem 0;
}

.education-content {
  text-align: left;
}

.education-content h2 {
  font-size: 3rem;
  color: #00a6fb;
  margin-bottom: 1.5rem;
}

.education-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* Experience Page Specific */
.subpage .navbar {
  background-color: #051923;
  color: white;
}

.subpage .nav-links a {
  color: white;
}

.mini-landing {
  height: 50vh;
  background-color: #051923;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
}

.mini-landing-content h1 {
  font-size: 3.5rem;
  margin: 0;
}

.experience-section {
  background-color: #ffffff;
  color: #333;
  padding: 6rem 0;
}

.experience-content h3 {
  font-size: 1.5rem;
  color: #00a6fb;
}

.home-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid #00a6fb;
  border-radius: 999px;
  background-color: transparent;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-button:hover {
  background-color: #00a6fb;
  cursor: pointer;
  color: #ffffff;
}

/* Flight Experience Cards */
.flight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.flight-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: left;
  transition: transform 0.3s ease;
}


.flight-card .learn-more-btn {
  margin-top: auto;
  align-self: flex-start;
}

.flight-card .learn-more-btn,
.flight-card .home-button {
  margin-top: auto;
  align-self: flex-start;
}


.flight-card:hover {
  transform: translateY(-5px);
}

.flight-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #00a6fb;
}

.flight-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}


/* Popup styling */
.popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.popup.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  text-align: left;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
}

/* Saab Slide show*/

.saab-slideshow {
  position: relative;
  max-width: 100%;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
}

.saab-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.saab-image {
  display: none;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.saab-image.active {
  display: block;
}

.slide-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.slide-controls button {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide-controls button:hover {
  background: rgba(0, 0, 0, 0.6);
}


.timeline-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
  overflow-x: auto;
}

.timeline-section h2 {
  font-size: 2.5rem;
  text-align: center;
  color: #00a6fb;
  margin-bottom: 1rem;
}

.scroll-hint {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.timeline-wrapper {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none; 
  min-width: max-content; 
}


.timeline-card {
  background: #f4f4f4;
  background-clip: padding-box;
  border-radius: 1rem;
  border: 2px solid transparent;
  padding: 1.5rem;
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 100px;
  left: 0;
  height: 4px;
  width: 100%;
  background: #00a6fb;
  z-index: 0;
}

@media (max-width: 768px) {
  .timeline-wrapper::before {
    top: 120px;
  }
}


.timeline-wrapper::-webkit-scrollbar {
  display: none; 
}



.timeline-card:hover {
  box-shadow: 0 10px 25px rgb(0, 166, 251, 0.2);
  transform: translateY(-5px);
}

.timeline-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.timeline-card img:hover {
  cursor: pointer;
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 166, 251, 0.15);
}

.timeline-content {
  text-align: center;
}

.timeline-content i {
  font-size: 1.8rem;
  color: #00a6fb;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: #051923;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #555;
}

.image-caption {
  display: block;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.image-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.image-popup.active {
  display: flex;
  touch-action: none;
}

.image-popup img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


.image-popup .close-btn {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}




/* Projects Section */
.projects-section {
  padding: 6rem 0;
  background-color: #ffffff;
  color: #333;
}

.projects-section h2 {
  font-size: 3rem;
  color: #00a6fb;
  text-align: left;
  margin-bottom: 2rem;
}

.projects-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.project-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease;

}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #00a6fb;
}

.project-title-img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.learn-more-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  background-color: #00a6fb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.learn-more-btn:hover {
  background-color: #008dd1;
}


.project-title-img {
  align-self: flex-start;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}


/* Modal */
/* Modal Overlay */
.popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); /* adds blur effect */
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

/* Show when active */
.popup.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Modal Content */
.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  text-align: left;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  z-index: 10001;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .popup-content {
    padding: 1.5rem 1rem;
    max-height: 85vh;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Social Icons */
.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #051923;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00a6fb;
}


.learn-more-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid #00a6fb;
  border-radius: 999px;
  background-color: transparent;
  color: #00a6fb;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.learn-more-btn:hover {
  background-color: #00a6fb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 251, 0.4);
}

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

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  } to {
    transform: translateY(0);
    opacity: 1;
  }
}



/* Contact Section */

.loading-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(5, 25, 35, 0.9);
  color: white;
  font-family: "DM Sans", sans-serif;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  z-index: 10000;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-section {
  background-color: #051923;
  padding: 6rem 4rem;
  color: white;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.contact-container h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.contact-container .email {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.contact-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.contact-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #00a6fb;
  border-radius: 999px;
  transition: width 0.3s ease;
}


.contact-links a:hover::after {
  width: 100%;
}


.contact-links i {
  font-size: 1.25rem;
  color: white;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Outfit', sans-serif;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00a6fb;
}



/* Footer */
.site-footer {
  background-color: #051923;
  color: white;
  padding: 3rem 4rem 2rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3,
.footer-section h4 {
  color: #00a6fb;
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #00a6fb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section i {
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  color: #aaa;
}



/* Mobile */

/* Responsive Design */
@media (max-width: 768px) {
  .container,
  .nav-container,
  .contact-section,
  .site-footer {
    padding: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .navbar.sticky .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .landing-content h1 {
    font-size: 2.25rem;
  }

  .landing-content p {
    font-size: 1rem;
  }

  .about-content,
  .experience-content,
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text,
  .experience-text,
  .footer-section {
    text-align: center;
  }

  .experience-gallery,
  .about-image {
    width: 100%;
  }

  .slideshow-container img {
    height: 250px;
  }

  .contact-links {
    justify-content: center;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .footer-section {
    min-width: 100%;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
  margin-right: 1rem; 
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Links (collapsed by default) */
.nav-links {
  display: flex;
  gap: 2rem;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #051923;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    display: none;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}