/* General Styling */
body, html {
    height: 100%;
    font-family: "Inconsolata", sans-serif;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  .bgimg {
    background-position: center;
    background-size: cover;
    background-image: url("assets/header.png");
    min-height: 75%;
    position: relative;
    transition: opacity 0.5s ease-out;
    opacity: 1;
}

body {
    scroll-behavior: smooth;
}

/* Fade-out effect on scroll */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

body {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

body.scrolled .bgimg {
    opacity: 0; /* Fades the background image out */
}
  
  /* Navigation Bar */
  .w3-top {
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
  }
  
  .w3-top .w3-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  
  .w3-top .w3-col {
    flex: 1;
    text-align: center;
  }
  
  .w3-top a {
    text-decoration: none;
    color: #000000;
    padding: 10px;
    display: block;
  }
  
  .w3-top a:hover {
    background-color: #555;
  }
  
  /* Loading Eye Animation */
  #eye-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    z-index: 1000;
    animation: fadeOut 2s 5s forwards;
    opacity: 1;
  }
  
  .eye {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, #b0d4f1 0%, #5daeff 50%, #002b5c 100%);
    animation: zoomIn 1.5s ease, glow 3s ease-in-out infinite;
  }
  
  .eye-white {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
  }
  
  .iris {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #00509e 0%, #00102a 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: irisMove 4s infinite ease-in-out;
  }
  
  .pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pupilDilation 4s infinite ease-in-out;
  }
  
  .eye-lid {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #002b5c;
    transform-origin: center;
    animation: blink 6s infinite ease;
  }
  
  .eye-lid.top {
    top: 0;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
  }
  
  .eye-lid.bottom {
    bottom: 0;
    border-bottom-left-radius: 90px;
    border-bottom-right-radius: 90px;
  }
  
  @keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }
  
  @keyframes glow {
    0%, 100% {
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }
    50% {
      box-shadow: 0 0 60px rgba(255, 255, 255, 1);
    }
  }
  
  @keyframes irisMove {
    0%, 100% {
      transform: translate(-50%, -50%);
    }
    25% {
      transform: translate(-60%, -60%);
    }
    50% {
      transform: translate(-40%, -40%);
    }
    75% {
      transform: translate(-50%, -70%);
    }
  }
  
  @keyframes pupilDilation {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
    }
    50% {
      transform: translate(-50%, -50%) scale(0.8);
    }
  }
  
  @keyframes blink {
    0%, 90%, 100% {
      height: 50%;
    }
    95% {
      height: 0;
    }
  }
  
  /* Section Styling */
  .w3-container {
    padding: 64px;
  }
  
  .w3-container h5 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .w3-container p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .w3-container img {
    width: 100%;
    max-width: 1000px;
    margin-top: 32px;
  }
  
  /* Mobile Responsive Navbar */
  @media screen and (max-width: 600px) {
    .w3-top .w3-row {
      flex-direction: column;
    }
  
    .w3-top .w3-col {
      width: 100%;
      text-align: center;
      padding: 10px 0;
    }
  
    .w3-top a {
      padding: 10px 20px;
      font-size: 18px;
    }
  }
  
  .bgimg {
    background-position: center;
    background-size: cover;
    background-image: "assets/header.png";
    min-height: 75%;
  }
  
  .apply-button {
    display: block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0077ea, #005bb5);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 40px auto;
    max-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.apply-button:hover {
    background: linear-gradient(135deg, #005bb5, #003d82);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

  
.letter-image {
    position: relative;
    margin: 30px auto;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.letter-image:hover .animated-mail {
    transform: translateY(50px);
}

.animated-mail {
    position: absolute;
    height: 150px;
    width: 200px;
    transition: 0.4s;
}

.animated-mail .body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 200px;
    border-color: transparent transparent #e95f55 transparent;
    z-index: 2;
}

.animated-mail .top-fold {
    position: absolute;
    top: 50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 100px 0 100px;
    transform-origin: 50% 0%;
    transition: transform 0.4s, z-index 0.2s;
    border-color: #cf4a43 transparent transparent transparent;
    z-index: 2;
}

.letter-image:hover .animated-mail .top-fold {
    transform: rotateX(180deg);
    z-index: 0;
}

.animated-mail .back-fold {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: #cf4a43;
    z-index: 0;
}

.animated-mail .left-fold {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 50px 100px;
    border-color: transparent transparent transparent #e15349;
    z-index: 2;
}

.animated-mail .letter {
    left: 20px;
    bottom: 0;
    position: absolute;
    width: 160px;
    height: 60px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: height 0.4s 0.2s;
}

.letter-image:hover .animated-mail .letter {
    height: 180px;
}

.staff-section {
    text-align: center;
}

.staff-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.staff-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.staff-member {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.staff-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.staff-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    transition: transform 0.3s;
}

.staff-member h2 {
    font-size: 1.5rem;
    color: #0077ea;
    margin: 10px 0 5px;
}

.staff-member p {
    font-size: 1rem;
    color: #333;
}

.staff-member img:hover {
    transform: scale(1.1);
}

.modern-title {
    font-size: 3rem;
    color: #333;
    text-align: center;
    position: relative;
    display: inline-block;
    margin: 20px 0;
    font-weight: bold;
    perspective: 500px;
}

.modern-title::before,
.modern-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    transition: 0.5s;
}

.modern-title::before {
    color: #0077ea;
    z-index: -1;
    transform: rotateY(20deg) translateZ(30px);
    opacity: 0.7;
}

.modern-title::after {
    color: #005bb5;
    z-index: -2;
    transform: rotateX(20deg) translateZ(30px);
    opacity: 0.5;
}

.modern-title:hover::before,
.modern-title:hover::after {
    transform: rotate(0) translateZ(0);
    opacity: 1;
}

.animated-title {
    font-size: 90px;
    font-weight: bold;
    color: #000000;
    position: sticky;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    z-index: -4;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for initial state */
  }
  
  /* Animation on hover */
  .animated-title:hover {
    animation: fadeInOut 3s infinite;
  }
  
  @keyframes fadeInOut {
    0%, 100% {
      color: #000000;
      transform: translateY(0);
    }
    50% {
      color: #4d4c4cc0; /* Soft blue color */
      transform: translateY(-10px); /* Slight upward movement */
    }
  }

  .w3-card-4 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w3-card-4:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

  
