:root {
    --dark: #121212;
    --light: 	#fff;
    --bg-light:#f9f9f9;
    --gray: #999;
    --blue-hover:#527787;
    --blue: #6fc2e8;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    background: var(--light);
    font-family: 'Inter', sans-serif;
    color:var(--blue) ;
    overflow-x: hidden;
  }
  
  header {
    z-index: 10;
  }

  .heading-text, .text-blue{
    color: var(--dark) !important;
  }

  .bg-white {
    background-color: var(--light);
  }

  .bg-light{
    background: var(--bg-light);
    color: var(--blue);
  }

  .bg-dark {
    background-color: var(--blue)  !important;
    color: var(--light);
  }

    .btn-primary {
      background-color: var(--blue);
      border: none;
      padding: 10px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-align: center;
      max-width: 100%;
      color: var(--light);
      background-color: var(--blue);
    }
  
    .btn-center {
      display: block;
      margin: 40px auto 0 auto;
    }
    
  .btn-primary:hover {
  
    background-color: var(--blue-hover);
      transition: ease-in-out 0.3s;
    }

    .btn-secondary {
      background: var(--light) !important;
      color: var(--blue) !important;
      border: none;
    }
    
  .hero {
    color: var(--light);
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 40px 60px;
    z-index: 1;
    perspective: 1px;
    overflow: hidden;
  }
  
  /* Text and Nav default color */
  .logo,
  .nav-bar nav a,
  .hero-text h2,
  .hero-text p {
    color: var(--dark);
    transition: color 0.5s ease;
  }
  
  /* Scrolled state */
  .hero.scrolled .logo,
  .hero.scrolled .nav-bar nav a,
  .hero.scrolled .hero-text h2,
  .hero.scrolled .hero-text p,
  .hero.scrolled .nav-toggle-label span {
    color: var(--light) !important;
  }
  
  /* Hero text */
  .hero-text {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    position: relative;
  }
  
  
  /* Navigation */
  .nav-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 70px;
    font-weight: bold;
  }
  
  /* Navbar links */
  .nav-bar nav {
    display: flex;
    gap: 30px;
  }
  
  .nav-bar nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
  }
  
  .nav-bar nav a:hover {
    border-bottom: 1px solid;
  }
  
  /* Responsive Nav */
  .nav-toggle {
    display: none;
  }
  
  .nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .nav-toggle-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 2px;
    transition: background-color 0.3s ease;
    position: relative;
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--light);
    border-radius: 2px;
  }
  
  .nav-toggle-label span::before {
    top: -8px;
  }
  
  .nav-toggle-label span::after {
    bottom: -8px;
  }
  
  /* Mobile Styles */
  
  .second-section {
    margin-top: 20vh !important;
    position: relative;
    z-index: 2;
    color: var(--blue);
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s ease-out;
    min-height: 350px;
  }
  
  .second-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .section {
    padding: 100px 40px;
  }
  
  #typewriter-text {
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--bg-light);
    animation: blink 0.7s steps(2, start) infinite;
    margin-left: 2px;
  }
  
  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
  
  .about-section {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
    border-radius: 50px;
    margin: 100px 30px 0;
    padding: 60px 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .about-section.visible {
    animation: zoomInCenter 0.8s ease-out forwards;
  }
   
  .about-section .container {
    position: relative;
    z-index: 2;
  }
  
  .about-section img {
    border-radius: 20px;
    transition: transform 0.3s ease-out;
    will-change: transform;
    position: relative;
    z-index: 1;
  }
  
  .about-section img:hover {
    transform: scale(1.03);
  }
  
  @keyframes zoomInCenter {
    0% {
      opacity: 0;
      transform: scale(0.8) translateY(50px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  .seminar-section {
    position: relative;
    z-index: 1;
    margin-top: 50vh; /* overlap */
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    clip-path: polygon(50% 0%, 100% 15%, 100% 100%, 0 100%, 0 15%);
  }

  .seminar-section .row{
    padding-top: 100px;
  }

  .courses-section {
    position: relative;
    z-index: 1;
  }
  
  .course-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
  }
  
  .course-card:hover {
    transform: translateY(-8px);
  }
  
  .course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .course-card:hover img {
    transform: scale(1.05);
  }
  
  .course-card h3 {
    font-size: 1.8rem;
    margin: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  
  .course-card p {
    font-size: 1.1rem;
    margin: 0 20px 20px;
    line-height: 1.5;
    flex-grow: 1;
  }
  


  /* Cards sliding in from left */
  .course-card.slide-in-left, .blog-card.slide-in-left{
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.8s forwards;
  }
  
  /* Cards sliding in from right */
  .course-card.slide-in-right, .blog-card.slide-in-right, .mission-cards.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.8s forwards;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  

  #benefits {
    position: relative;
    z-index: 2;
  }

  #benefits .card {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  }
  
  .parallax-gallery {
    display: flex;
    gap: 20px;
    padding: 100px 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  
  .parallax-gallery .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .parallax-gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  /* Opposite scroll animation */
  @keyframes scroll-down {
    from {
      transform: translateY(-50px);
    }
    to {
      transform: translateY(50px);
    }
  }
  
  @keyframes scroll-up {
    from {
      transform: translateY(50px);
    }
    to {
      transform: translateY(-50px);
    }
  }
  
  .col-1, .col-3 {
    animation: scroll-up 10s linear infinite alternate;
  }
  .col-2, .col-4 {
    animation: scroll-down 10s linear infinite alternate;
  }

  /* Small screen horizontal scroll */
.scroll-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 20px;
  z-index: 1;
  position: relative;
  overflow: hidden;

}

.scroll-row {
  display: flex;
  gap: 20px;
  width: max-content;
}

.scroll-row img {
  height: 160px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Infinite scroll animations */
.scroll-left {
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


  .video-section {
    background: var(--light);
    padding: 100px 40px;
    z-index: 20;
    position: relative;
  }
  
  .video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .testimonial-section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
  }
  
  #testimonialCarousel .carousel-inner {
    min-height: 350px; /* or adjust based on tallest card */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #testimonials .card {
    max-width: 600px;
    margin: 0 auto;
  }

  #testimonials .card p {
    width: 400px;
    margin: 0 auto;
  }

  #testimonials .card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  

  .blog-section {
    padding: 100px 40px;
    position: relative;
    z-index: 20;
  }
  
  .blog-card {
    border-radius: 20px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    padding: 20px;
    transition: transform 0.3s;
  }
  
  .blog-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
  }
  
  .blog-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .contact-section {
    background: url('images/a-pilot-man-portrait-with-airplane-on-the-background-free-photo.jpeg');
  }

  .contact-section .container {
    max-width: 900px;
    margin: 80px auto;
    border-radius: 50px;
    padding: 80px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  }
  
  .contact-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 1.1rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1.5px solid #555;
    font-size: 1rem;
    color: var(--blue);
    transition: border-color 0.3s ease;
    resize: none;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--light);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  }
  
  .btn-submit {
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
  }

  .footer-section {
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
  }
  
  .footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section p {
    margin: 0 0 15px 0;
  }
  
  .social-icons a {
    margin: 0 12px;
    color: var(--light);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px;
  }
  
  .social-icons a:hover {
    color: var(--blue);
    background: var(--light);
    border-radius: 50%;
  }
  
  .contact-section, 
.footer-section {
  position: relative;  /* Establish stacking context */
  z-index: 10;         /* Higher than previous sections */
}

 /* Mobile Styles */
 @media (max-width: 768px) {

  .nav-bar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    text-align: center;
    display: none;
    padding: 20px;
  }

  .nav-toggle:checked ~ .nav-toggle-label + nav {
    display: flex;
  }

  .nav-toggle-label {
    display: flex;
  }

  .hero-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 20px;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .logo {
    font-size: 40px;
  }

  .second-section h2 {
    font-size: 1.5rem !important;
  }

  .second-section {
    max-width: 90%;
    margin: 0 auto;
  }


  .about-section img {
    transform: none !important;
  }

  .seminar-section {
    clip-path: none;
  }

  .seminar-section .row {
    padding-top: 0px;
    flex-direction: column-reverse;
  }

  #testimonials .card p {
    width: auto !important;
  }
  
}
 
@media (max-width: 480px) {
  .second-section h2 {
    font-size: 1.2rem;
  }

  .logo { 
    font-size: 25px;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }
}