/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1f1f2e;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}



/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 300px;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-family: 'Pacifico', cursive; /* New font */
    font-size: 48px;
    background: linear-gradient(45deg, #d561ff, #4234db, #2cb8e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.565); /* Optional shadow for more depth */
    margin-top: 20px;
}

.hero p {
    font-size: 24px;
    color: #eee;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 20px;
    }
}

/* Categories Section */
.categories {
    text-align: center;
    padding: 40px 20px;
}

.categories h2 {
    font-size: 28px;
    background: linear-gradient(45deg, #ff6f61, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    background-color: #1f1f2e;
    color: white;
    border: 2px solid #8e44ad;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #8e44ad;
    transform: scale(1.05);
}
/* Global Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1f1f2e;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Team Section */
.team-section {
    width: 90%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content */
}

.gradient-text1 {
    text-align: center;
    background: linear-gradient(60deg, #fc00ff, #7ec8f1, #865bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-size: 50px;
  }

  @media (max-width: 768px) {
    .gradient-text1 {
        font-size: 30px;
      }
  }

  .Faculty{
    text-align: center;
    background: linear-gradient(60deg, #fc00ff, #7ec8f1, #865bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-size: 30px;
  }
  

/* Faculty Card */
.faculty-card {
    display: flex;
    background-color: #2a2a40;
    width: 100%; /* Set width to 100% for responsiveness */
    max-width: 1100px; /* Limit the max width */
    height: auto; /* Adjust height to be auto for responsiveness */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    justify-content: space-between; /* Space between two faculty members */
    align-items: center;
    border: 2px solid rgb(184, 0, 235);
    margin-bottom: 20px;
    gap: 30px; /* Space between the two faculty members */
}

/* Individual Faculty Member Styling */
.faculty-member {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 50%; /* Each member takes half of the card */
}

.faculty-right {
    flex-direction: row-reverse; /* Reverse the layout for the right side */
}

/* Member Info Styling */
.member-info {
    flex: 1;
}

.member-info h1, .member-info h3, .member-info p {
    margin-bottom: 10px;
}

.member-info a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.member-info a:hover {
    color: #d561ff;
}

/* Member Image Styling */
.member-img img {
    width: 200px; /* Image size */
    height: 200px;
    object-fit: cover; /* Ensure the image covers the box without distortion */
    border: 2px solid #865bff;
    border-radius: 5px;
}

.member-img {
    padding: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .faculty-card {
        flex-direction: column; /* Stack members vertically on smaller screens */
    }

    .faculty-member {
        width: 100%; /* Ensure each member takes full width on smaller screens */
        flex-direction: row; /* Default row direction */
    }

    .faculty-right {
        flex-direction: row; /* Ensure both members have a consistent layout */
    }

    .member-img img {
        width: 180px; /* Slightly smaller on medium screens */
        height: 180px;
    }
}

@media (max-width: 768px) {
    .faculty-card {
        padding: 15px;
    }

    .faculty-member {
        flex-direction: column; /* Stack image and text vertically for each member */
        text-align: center; /* Center text and image */
    }

    .faculty-right {
        flex-direction: column; /* Ensure both members stack vertically */
    }

    .member-img img {
        width: 150px; /* Smaller image for mobile */
        height: 150px;
    }

    .member-info h1 {
        font-size: 24px;
    }

    .member-info h3 {
        font-size: 18px;
    }

    .member-info p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .faculty-card {
        padding: 10px;
    }

    .faculty-member {
        flex-direction: column;
    }

    .faculty-right {
        flex-direction: column;
    }

    .member-img img {
        width: 120px; /* Even smaller image for very small screens */
        height: 120px;
    }

    .member-info h1 {
        font-size: 20px;
    }

    .member-info h3 {
        font-size: 16px;
    }

    .member-info p {
        font-size: 14px;
    }
}
/* Global Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1f1f2e;
    color: white;
    margin: 0;
    padding: 0;
}

/* Student Section */
.student-section {
    width: 90%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container for student cards */
.student-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Gap between student cards */
}

/* Individual Student Card */
.student-card {
    display: flex;
    background-color: #2a2a40;
    width: 650px; /* Fixed width for each student card */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid rgb(184, 0, 235);
    margin-bottom: 20px;
}

/* Flex layout for student member */
.student-member {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: flex-start; /* Align items at the start */
    justify-content: space-between; /* Space between the images and info */
    width: 100%; /* Full width for student member */
}

/* Student Image Styling */
.student-img {
    display: flex;
    flex-direction: column; /* Stack image, name, email */
    align-items: center; /* Center align */
}

.student-img img {
    width: 150px; /* Image size */
    height: 150px;
    object-fit: cover; /* Ensure the image covers the box without distortion */
    border-radius: 5%; /* Make the image round */
    border: 2px solid #635bff; /* Add a border */
}

/* Student Info Styling */
.student-info {
    flex: 1;
    text-align: center; /* Center align text */
    margin: 0 20px; /* Side margins */
}

.student-info h1 {
    font-size: 35px;
    margin: 10px 0; /* Space above and below */
}

.student-info p {
    margin: 5px 0; /* Space between paragraphs */
}

.student-info a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.student-info a:hover {
    color: #d561ff;
}
/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .student-card {
        width: 90%; /* Take full width for cards on medium screens */
    }
}

@media (max-width: 768px) {
    .student-card {
        flex-direction: column; /* Stack vertically on smaller screens */
        width: 100%; /* Take full width for smaller devices */
        padding: 15px;
    }
    
    .student-member {
        flex-direction: column; /* Stack image and details vertically for each student */
        align-items: center; /* Center align */
    }

    .student-info {
        margin: 10px 0; /* Space for smaller screens */
    }

    /* Ensure h1 comes first on smaller screens */
    .student-info h1 {
        font-size: 25px; /* Smaller heading on mobile */
        order: -1; /* Move the h1 to the top */
    }

    .student-info p {
        font-size: 14px; /* Smaller text on mobile */
    }

    .student-img {
        margin-bottom: 10px; /* Space between image and text */
    }

    .student-img img {
        width: 100px; /* Smaller image for smaller screens */
        height: 100px;
    }
}

@media (max-width: 480px) {
    .student-card {
        padding: 10px; /* Smaller padding on very small screens */
    }

    /* Ensure h1 comes first on very small screens */
    .student-info h1 {
        order: -1; /* Move the h1 to the top */
        font-size: 35px;
    }

    .student-img img {
        width: 150px; /* Smaller image for smaller screens */
        height: 150px;
    }
}


/* Footer Styling */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    position: relative;
    text-align: center;
    border-top: 5px solid purple;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-content span {
    font-weight: bold;
}

.back-to-top {
    position: fixed; /* Fix the button to the viewport */
    right: 20px;
    bottom: 20px;
    background-color: transparent; /* Transparent background */
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #fff;
    overflow: visible; /* Allow icon to overflow */
    z-index: 1000; /* Ensure button stays above other content */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Add transition effect */
}

/* Hover effect for desktop */
.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Background on hover */
    transform: scale(1.1); /* Slight scaling on hover */
}

/* Hide the back-to-top button on screens smaller than 1024px */
@media (max-width: 1024px) {
    .back-to-top {
        display: none; /* Don't show the button on smaller devices */
    }
}



/* Add responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .back-to-top {
        position: static;
        margin-top: 20px;
    }
}
