/* 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;
      overflow-x: auto;
      padding-top: 10px; /* Ensure content doesn't hide behind the fixed header */
      flex: 1;
      
    }
    
    /* 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: 80vh;
      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;
    }
    
    /* 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;

    }
    
    /* Responsive adjustments for smaller screens */
    @media (max-width: 400px) {
      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 {
      width: 50%;
      padding: 5px;
      margin-left: 20%;
      margin-right: 20%;
    }
    .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: 100%; height: 100%;
  /* use same gradient as your page background */
  background-color: #c5c5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
/* fade-out class to transition away */
#preloader.fade-out {
  opacity: 0;
}

/* Spinner styling */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.3);
  border-top-color: #550d67;  /* accent color for the spinner */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
