:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f0f0f0;
    --text-color: #333;
    --card-bg: #ffffff;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
  }
  .form{
    margin-left:1rem;
    
  }

  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 20px;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .sidebar-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: var(--transition);
  }
  
  .nav-links {
    list-style-type: none;
    padding: 0;
  }
  
  .nav-links li {
    margin-bottom: 15px;
  }
  
  .nav-links a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
  }
  
  .nav-links a i {
    margin-right: 10px;
    font-size: 1.2em;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--secondary-color);
    transform: translateX(5px);
  }
  
  .theme-switcher {
    position: absolute;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  
  .theme-switcher i {
    margin-bottom:3rem;
    margin-right: 10px;
    font-size: 1.2em;
  }
  .m-b{
    margin-bottom:3rem;
  }
  
  main {
    margin-left: 250px;
    padding: 20px;
    padding-top: 0; /* Adjust main content padding */
    transition: var(--transition);
  }
  
  .section {
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out;
  }
  
  .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
  }
  
  .cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
  }
  
  .cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
  }
  
  .card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-top: 60px; /* Fix card margin issue */
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .card-content {
    display: flex;
    align-items: center;
    padding: 20px;
  }
  
  .card-content.reverse {
    flex-direction: row-reverse;
  }
  
  .profile-img,
  .school-img,
  .teacher-img,
  .project-img {
    width: 40%;
    max-width: 300px;
    border-radius: 10px;
    margin-right: 20px;
    transition: var(--transition);
  }
  
  .card-content.reverse .school-img {
    margin-right: 0;
    margin-left: 20px;
  }
  
  .text-content {
    flex: 1;
  }
  
  .teacher-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .teacher-card {
    flex-basis: calc(45% - 10px);
    text-align: center;
    padding: 20px;
  }
  
  .teacher-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 15px;
  }
  
  .project-features {
    list-style-type: none;
    padding: 0;
  }
  
  .project-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  
  .project-features i {
    color: var(--secondary-color);
    margin-right: 10px;
  }
  
  .video-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .video-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal.show {
    opacity: 1;
  }
  
  .modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    max-width: 350px;
    transform: scale(0.7);
    transition: transform 0.3s ease;
  }
  
  .modal.show .modal-content {
    transform: scale(1);
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .close:hover {
    color: var(--text-color);
  }
  .copy{
    color: #008CBA;
    cursor: pointer;
  }
  /* Scroll animation styles */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Ensure the first section (hero) doesn't have extra margin */
  #home {
    margin-top: 0;
  }
  
  
  
  @media (max-width: 768px) {
    #sidebar {
      width: 26px;
      overflow: hidden;
    }
    .section{
      margin-left: -3rem;
      margin-right: -2.2rem;
    }
    .logo{
      width: 50px;
      height: 50px;
      margin-left:-0.8rem;
    }
    .copy{
      font-size:16px;
      display:none;
    }
  
    #sidebar:hover {
      width: 250px;
    }
  
    .sidebar-header h1,
    .theme-switcher span,
    .nav-links a span {
      display: none;
    }
  
    #sidebar:hover .sidebar-header h1,
    #sidebar:hover .theme-switcher span,
    #sidebar:hover .nav-links a span {
      display: inline-block;
    }
    main {
      margin-left: 1rem;
      padding-top: 0px; /* Ensure sidebar doesn't overlap content on smaller screens */
    }
  .project-features>li{
    font-size: 14px;
  }
    .card-content,
    .card-content.reverse {
      flex-direction: column;
    }
  
    .profile-img,
    .school-img,
    .project-img {
      width: 100%;
      max-width: 100%;
      margin-right: 0;
      margin-left: 0;
      margin-bottom: 20px;
    }
    .teacher-card {
      flex-basis: 100%;
    }
  
    .hero h1 {
      font-size: 2em;
    }
  
    .hero p {
      font-size: 1em;
    }
  
    .modal-content {
      width: 90%;
    }
  }
  
  @media (min-width: 769px) and (max-width: 1024px) {
    .card-content,
    .card-content.reverse {
      flex-direction: column;
    }
    .section{
      margin-left: -1rem;
      margin-right: -2.2rem;
    }
    .profile-img,
    .school-img,
    .project-img {
      width: 100%;
      max-width: 100%;
      margin-right: 0;
      margin-left: 0;
      margin-bottom: 20px;
    }
  }
  .teacher-card {
    flex-basis: 100%;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Add this to the existing CSS file, after the existing styles */
  
  