/* CSS for a simple webpage with a fixed header and footer, smooth scrolling, and responsive design */
    /* Basic Reset */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    /* Hide scrollbar for WebKit-based browsers */
    ::-webkit-scrollbar {
      display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    body {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;     /* Firefox */
    }
    
    /* Smooth scrolling effect for anchor links */
    html {
      scroll-behavior: smooth;
      height: 100%;
    }
    
    body {
      font-family: Arial, sans-serif;
      background-color: #c5c5f5;  
      color: #333;
      line-height: 1.6;
      height: 100%;
      padding-top: 10px; /* Ensure content doesn't hide behind the fixed header */
      margin: 0;   
    }
    
    /* Fixed Header with gradient background */
    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: linear-gradient(to right, #E6E6FA, #9f7ee2);  /* Corrected gradient direction */
      color: #fff;
      padding: 10px 20px;
      padding-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      flex-wrap: wrap;
    }
    /* Clickable Logo with hover effect */
    header .logo {
      font-size: 24px;
      font-weight: bold;
      text-decoration: none;
      color: #530b6d;
      transition: opacity 0.3s ease;
    }
    header .logo:hover {
      opacity: 0.8;
    }
    
    /* Navigation styling */
    nav ul {
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
    }
    nav ul li {
      margin-left: 20px;
    }
    /* Extra left margin for the "Contact" tab */
    /*
    nav ul li:last-child {
      margin-left: 20px;
    }
      */
    nav ul li a {
      text-decoration: none;
      color: #33043e;
      font-size: 16px;
    }
    nav ul li a:hover {
    
      color: #430a89;
    }
    
    /* Main Content Area with top padding to avoid fixed header overlay */
    main {
      padding: 100px 20px 20px;
    /*  min-height: 50vh;*/
      flex: 1;
      flex-direction: column;
    }
    /* Sections in the main content */
    section {
      margin-bottom: 40px;
    }
    section h1,
    section h2 {
      margin-bottom: 15px;
    }
    section p {
      margin-bottom: 10px;
    }
    
    
    /* Responsive adjustments for smaller screens */
    @media (max-width: 767px) {
      header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
      }
      nav ul {
        flex-direction: row;
        width: 100%;
        padding: 10px;
      }
      nav ul li {
        margin: 5px 0;
        padding: 10px;
      }
      main {
        padding: 120px 10px 20px;
      }
      .about-section {
       overflow: auto;
       max-width: 80%;
        padding: 10px;

            }
          }
      
    header .logo img {
        height: 40px; 
        width: 80px; /* Adjust as needed */
    }               

    .about-section {
      
      padding: 5px;
      margin-left: 15%;
      margin-right: 15%;
    }
    .bio_img {
      float: right;
      overflow: auto;
      margin-left: 70%;
    }
    .youtube{
      position: relative;
      padding-top: 56.25%;
      width: 100%;
      height: 0;
      overflow: auto;
    }

    .youtube-frame{
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      border: none;
      width: 100%;
      height: 100%;
    }

    /* Preloader full-screen overlay */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #c5c5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}
.helix {
  width: 60px;
  height: 60px;
  border: 6px solid transparent;
  border-top: 6px solid purple;
  border-bottom: 6px solid lavender;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: purple;
  font-size: 18px;
  text-align: center;
  animation: fade 2s ease-in-out infinite;
}

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

@keyframes fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.arrange_L {
  float: left;
  width: 50%;
  padding: 10px;
 
}
.arrange_R {
  float: right;
  width: 50%;
  padding: 10px;
;
}
/* Fixed Footer with gradient background */
footer#contact {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom, #E6E6FA, #9370DB);
  color: #3f063d;
  text-align: center;
  font-size: 14px;
  padding: 20px 0;

}
footer#contact .company-info {
  padding-bottom: 5px;
}
footer#contact .contact-info {
  padding-top: 5px;
  padding-bottom: 5px;
}
footer#contact .social-icons{
  padding-bottom: 5px;

}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#services {
  float: right;
}
#about {
  float: left;
}
