/* CSS Reset and Base Styles */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color:  #01423f;
    --secondary-color:  #01423f;
    --accent-color: #d4af37;
    --light-color: #f8f9fa;
    --dark-color:  #01423f;
    --text-color: #333;
    --text-light: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0px;
    margin: 0px;
    color: var(--text-color);
    
}

/* Fixed Header */
header {
    height: 100px;
    position:left;
    top: 0px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    z-index: 500px;
    padding: 50px 5%;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-height: 80px;
}

.college-logo {
    height: 60px;
    width: auto;
    object-fit:contain;
    display:block;
}

.college-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin:0;
}

/* Background Section with Overlay */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    margin-top:0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('faculty.PNG');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.main-heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.sub-heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 80px 0 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.sub-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Faculty and Staff Sections */
.section-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 5% 60px;
    background-color: var(--light-color);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.profile-card {
    text-align: center;
    transition: var(--transition);
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f0f0f0;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.profile-card:hover .profile-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.profile-position {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 30px 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-heading {
        font-size: 3.2rem;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 5%;
    }
    
    .logo {
        height: 40px;
    }
    
    .college-name {
        font-size: 1.5rem;
    }
    
    .main-heading {
        font-size: 2.5rem;
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .sub-heading {
        font-size: 1.5rem;
        margin: 60px 0 30px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .image-container {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 576px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .sub-heading {
        font-size: 1.3rem;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .image-container {
        width: 140px;
        height: 140px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .section-container {
        padding: 80px 5% 40px;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}