/* General Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: 'liga' 1;
    -moz-font-feature-settings: 'liga' 1;
    -ms-font-feature-settings: 'liga' 1;
    -o-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
    font-variant-ligatures: common-ligatures;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;  
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    text-decoration: none;
    box-shadow: none;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Top Header Section */
.top-header {
  background-color: #2196f3; /* blue background */
  color: white;
  padding: 20px 0;
}

.top-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo-left img {
  height: 100px;
}

.college-info {
  text-align: center;
}

.college-info h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

.college-info p {
  margin: 5px 0;
  font-size: 20px;
  color: #000;
}

/* Main Navigation Menu */
.main-menu {
  background-color: yellow;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  font-weight: bold;
}

.main-menu li {
  position: relative;
  margin: 0 15px;
}

.main-menu a {
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

.main-menu a:hover {
  background-color: #f1f1f1;
  border-radius: 5px;
}

/* Dropdown Menu Styles */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 200px;
}

.dropdown-submenu {
  left: 100%;
  top: 0;
}

.dropdown-menu li:hover .dropdown-submenu {
  display: block;
}

/* Contact Section */
.contact-section {
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
}

.contact-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-section h1 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #334fed;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 500;
}

.contact-section p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.student-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.student-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 1.5rem;
    min-width: 300px;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.student-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid #2196F3;
    padding: 3px;
}

.student-card h2 {
    color: #2196F3;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.student-card p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-card p:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #2196F3;
}

.student-card p:nth-of-type(1):before { content: "\f19d"; } /* Course */
.student-card p:nth-of-type(2):before { content: "\f073"; } /* Year */
.student-card p:nth-of-type(3):before { content: "\f0e0"; } /* Email */
.student-card p:nth-of-type(4):before { content: "\f095"; } /* Phone */
.student-card p:nth-of-type(5):before { content: "\f3c5"; } /* Address */
.student-card p:nth-of-type(6):before { content: "\f19c"; } /* GPA */
.student-card p:nth-of-type(7):before { content: "\f091"; } /* Achievements */
.student-card p:nth-of-type(8):before { content: "\f19c"; } /* CGPA */
.student-card p:nth-of-type(9):before { content: "\f073"; } /* Attendance */
.student-card p:nth-of-type(10):before { content: "\f0b1"; } /* Internship */
.student-card p:nth-of-type(11):before { content: "\f121"; } /* Skills */
.student-card p:nth-of-type(12):before { content: "\f0ae"; } /* Projects */
.student-card p:nth-of-type(13):before { content: "\f0c0"; } /* Activities */
.student-card p:nth-of-type(14):before { content: "\f075"; } /* Notes */

.student-card a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.student-card a:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* Add a subtle gradient background */
.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    z-index: 0;
    border-radius: 15px 15px 0 0;
}

/* Ensure content stays above gradient */
.student-card > * {
    position: relative;
    z-index: 1;
}

/* Skills tags */
.student-card p:nth-of-type(11) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.student-card p:nth-of-type(11) span {
    background: #E3F2FD;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #1976D2;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .student-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1rem;
        overflow-x: auto;
    }
}

@media (max-width: 992px) {
    .student-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .student-details {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
    }

    .student-card {
        padding: 1.25rem;
    }

    .student-card img {
        width: 120px;
        height: 120px;
    }

    .student-card h2 {
        font-size: 1.3rem;
    }

    .contact-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Footer Section */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
}

.footer-column h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.social-media {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin-top: 15px;
}

.social-media li a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.footer2-bachor {
  background-color: #111;
  padding: 10px;
  text-align: center;
}

.footer2-content {
  color: white;
  margin: 0;
  font-size: 14px;
}
.footer2-content a {
  color: #2196f3;
  text-decoration: none;
}   
.footer2-content a:hover {
  text-decoration: underline;
}   
.footer2-content p {
  margin: 0;
}   

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .top-header-flex {
    flex-direction: column;
    align-items: center;
  }

  .logo-left img {
    height: 80px;
  }

  .main-menu {
    flex-direction: column;
    padding: 10px;
  }

  .main-menu li {
    margin: 5px 0;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }
}       
/* Additional Styles for Contact Section */
.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}   
.contact-section form input,
    .contact-section form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;        
    }
.contact-section form input[type="submit"] {
  background-color: #2196f3;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;  
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  }
.contact-section form input[type="submit"]:hover {
  background-color: #1976d2;
}
  /* Responsive Design */
  /* Container Widths */
  @media (min-width: 576px) { .container { max-width: 540px; } }
   @media (min-width: 768px) { .container { max-width: 720px; } }
   @media (min-width: 992px) { .container { max-width: 960px; } }
   @media (min-width: 1200px) { .container { max-width: 1140px; } }
   @media (min-width: 1400px) { .container { max-width: 1320px; } }

   /* Image Responsiveness */
   img {
     max-width: 100%;
     height: auto;
     display: block;
   }

   /* Table Responsiveness */
   .table-responsive {
     overflow-x: auto;
     overscroll-behavior: auto;
   }

   /* Mobile Navigation */
   @media (max-width: 768px) {
     .nav-toggle {
       display: block;
       position: fixed;
       top: 15px;
       right: 15px;
       z-index: 1000;
     }
     
     .main-menu {
       display: none;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100vh;
       background: rgba(255, 255, 255, 0.95);
       padding: 60px 20px;
     }
     
     .main-menu.active {
       display: flex;
       flex-direction: column;
       align-items: center;
     }
   }

   /* Lazy Loading */
   .lazy-image {
     opacity: 0;
     transition: opacity 0.3s ease-in;
   }

   .lazy-image.loaded {
     opacity: 1;
   }

   /* Performance Optimizations */
   @media (prefers-reduced-motion: reduce) {
     * {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
     }
   }

  /* Accessibility */
   :focus {
     outline: 3px solid #2196f3;
     outline-offset: 2px;
   }

   @media (hover: none) {
     .clickable {
       min-height: 44px;
       min-width: 44px;
     }
   }