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

@font-face {
    font-family: myFirstFont;
    src: url(../Poppins/Poppins-Regular.ttf);
}

@font-face {
    font-family: bold;
    src: url(../Poppins/Poppins-Bold.ttf);
}

body {
    font-family: myFirstFont, Arial, sans-serif;
    color: #333;
    background: #fafafa;
}

/* Container */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

/* Navigation Header */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)), url(../image/background.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav img {
    width: 150px;
    height: auto;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #ff0000;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.icon {
    display: none;
    color: #fff;
    margin: 10px;
    font-size: 25px;
    cursor: pointer;
}

.text-box {
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: white;
    margin-bottom: 20px;
}

.text-box p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: white;
}

/* Faculty Section */
.faculty-section {
    margin: 50px 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    border-bottom: 3px solid #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    color: #f44336;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    justify-items: center;
}

/* Faculty Card */
.faculty-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid #f44336;
    width: 100%;
    max-width: 280px;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.faculty-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 50px;
    color: white;
}

.faculty-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #333;
    margin: 15px 0 8px;
    font-weight: bold;
}

.designation {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #f44336;
    font-weight: 600;
    margin: 8px 0;
}

.qualification {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #666;
    font-style: italic;
    margin: 8px 0;
}

.faculty-card p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #555;
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 2% 4%;
    }

    nav img {
        width: 100px;
    }

    .nav-links {
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.3s;
        flex: none;
    }

    .nav-links ul {
        padding: 30px 0;
    }

    .nav-links ul li {
        display: block;
        padding: 12px 20px;
    }

    .icon {
        display: block;
    }

    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .container {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 2% 3%;
    }

    nav img {
        width: 80px;
    }

    .text-box h1 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .text-box p {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }

    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faculty-card {
        padding: 20px 15px;
    }

    .faculty-image {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .faculty-card h3 {
        font-size: 1.1rem;
    }

    .designation {
        font-size: 0.95rem;
    }

    .qualification {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        padding: 10px;
    }

    .container {
        padding: 20px 10px;
    }
}
