/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body::before {
    font-family: 'Roboto Slab', sans-serif; 
    background-image: url('public/home/CITadminis.jpeg'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.4;
    z-index: -1; 
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background-color: #596d7a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative; 
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #305ae4;
    color: #fff;
    width: 100%;
}

.left-section {
    display: flex;
    align-items: center;
}

.college-title {
    font-size: 1em;
    font-weight: bold;
    margin-left: 8px;
}

.logo {
    width: 50px;
    height: 50px;
    background-image: url('public/home/cit-logo (1).png');
    background-size: cover;
    background-position: center;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #f3f3f3;
    color: #333;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

.nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; 
    right: 20px;
    background-color: #305ae4;
    width: 150px;
    padding: 10px;
    border-radius: 8px;
}

main {
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.intro {
    max-width: 600px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.intro h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.1em;
    margin: 10px 0;
}

.intro button {
    display: inline-block;
    margin: 15px 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    background-color: #4169E1;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.intro button:hover {
    background-color: #ffffff;
    color: #333;
    transform: scale(1.04);
}

footer {
    background-color: #2d3538;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

footer p {
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Responsive Breakpoints */

/* Mobile view */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on smaller screens */
    }
    
    .hamburger {
        display: flex; /* Show hamburger menu on small screens */
    }

    .intro h2 {
        font-size: 1.5em;
    }

    .intro p {
        font-size: 1em;
    }

    .intro button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
    
    main {
        padding: 10px;
    }
}

/* Tablet view */
@media (max-width: 1024px) {
    .college-title {
        font-size: 1.1em;
    }
    
    .intro h2 {
        font-size: 1.75em;
    }

    .intro p {
        font-size: 1em;
    }

    .intro button {
        padding: 8px 18px;
    }
    
    .social-links img {
        width: 20px;
        height: 20px;
    }
}

/* Larger screens */
@media (min-width: 1025px) {
    .intro h2 {
        font-size: 2.2em;
    }
    
    .intro p {
        font-size: 1.2em;
    }

    .intro button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}
