/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    /* Light theme background */
    color: #333;
    /* Light theme text color */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
    line-height: 1.6;
    overflow-x: hidden;
}

body.dark {
    background-color: #000;
    /* Black background for dark theme */
    color: #eee;
}

header {
    /* Light background for header */
    color: #333;

    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 20px;
    /* Adjust spacing between icons */
}

nav li {
    display: flex;
    align-items: center;
}


body.dark header {
    /* Darker shade for dark theme header */
    color: #eee;
    background-color: rgba(255, 255, 255, 0.036);
    backdrop-filter: blur(5px);
}

.department-title {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.theme-switch {
    display: inline-block;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background: linear-gradient(82deg, #ffffff, #5812b2);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    top: -2px;
}

.theme-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: left 0.3s ease-in-out, background-image 0.3s ease-in-out;
    background-image: url('icons/icons8-moon-100\ \(1\).png');
}

.theme-switch.dark-theme {
    background: linear-gradient(82deg, #ffffff, #42078e);
}

.theme-switch.dark-theme::before {
    left: 33px;
    background-image: url('icons/icons8-sun-64.png');
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
    /* Light background to match body */
    transition: background-color 0.5s ease-in-out;
}

body.dark main {
    background-color: #000;
    /* Black background to match typewriter section */
}

/* Section Styles */
.content-section {
    display: flex;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    transform: translateY(0);
    animation: fadeInUp 0.7s ease;
    flex-direction: column;
}

body.dark .content-section {
    background-color: #111;
    /* Darker background for dark theme sections */
    border-color: #333;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effect with Color Transition */
.content-section:hover {
    background-color: #f0f0f0;
    /* Slightly darker on hover */
    color: #000;
    /* Highlighted text on hover */
    border-color: #ccc;
    /* Lighter border on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    /* Slight lift on hover */
}

body.dark .content-section:hover {
    background-color: #333;
    /* Darker background on hover */
    color: #00ffcc;
    /* Highlighted text on hover */
    border-color: #555;
    /* Lighter border on hover */
}

/* Section Heading */
.content-section h2 {
    margin: 0;
    display: flex;
    font-size: 22px;
    font-weight: bold;

    .svgl {
        display: none;
        /* margin-right: 10px; */
        /* padding: 5px; */
    }
}

body.dark .svgl {
    display: inline;
}

body.dark .svgd {
    display: none;
    /* margin-right: 10px; */
}

/* Section Paragraph */
.content-section h4 {
    /* margin: 0; */
    color: #363636;
    padding-left: 10px;
}

body.dark .content-section h4 {
    color: rgba(183, 183, 180, 0.903);
}


.profile-icon,
.contact-icon,
.theme-switch {
    display: inline-block;
    vertical-align: middle;
}

.profile-icon img {
    width: 32px;
    /* Ensure all icons have same size */
    height: 32px;
    margin-right: 0px;
}

.contact-icon img {
    width: 25px;
    /* Ensure all icons have same size */
    height: 25px;
    cursor: pointer;
}

.contact-footer {
    font-size: 20px;
    /* Increased font size */
    color: #333;
    /* Dark text in light theme */
    text-decoration: none;
    /* No underline */
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.3s ease-in-out;
    /* Smooth transition for color change */
}

body.dark .contact-footer {
    color: #eee;
    /* Light text in dark theme */
}

.contact-footer:hover {
    color: inherit;
    /* Keep the same color on hover */
    text-decoration: none;
    /* No underline on hover */
}

body.dark .contact-footer:hover {
    color: inherit;
    /* Keep the same color in dark theme on hover */
}

.contact-footer a {
    color: inherit;
    /* Ensure link inherits color from parent */
    text-decoration: none;
    /* Remove underline from links */
}

.contact-footer:hover a {
    color: inherit;
    /* Keep same color on hover */
}

/* Social Media Icons */
.social-media {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.social-media li {
    display: inline;
    margin: 0 10px;
}

.social-media a {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark .social-media a {
    color: #eee;
}

.social-media a:hover {
    color: #007bff;
}

body.dark .social-media a:hover {
    color: #0d6efd;
}

/* Typewriter Section Styles */
.typewriter-section {
    background-color: #ffffff;
    /* Light background to match body */
    padding: 40px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    /* Divider */
    margin-bottom: 40px;
    /* Space between sections */
}

body.dark .typewriter-section {
    background-color: #000;
    /* Black background to match dark theme */
    border-bottom: 2px solid #333;
    /* Darker divider */
}

.typewriter-container {
    display: inline-block;
    /* Ensure the container fits the content */
}

.static-text {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, #333, #666);
    /* Gradient for static text in light mode */
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

body.dark .static-text {
    background: linear-gradient(to right, #00ffcc, #00ffff);
    /* Gradient for static text in dark mode */
    -webkit-background-clip: text;
    background-clip: text;
}

.typewriter {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, #333, #666);
    /* Gradient for typewriter text in light mode */
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #333;
    /* Cursor for light mode */
    animation: typewriter 4s steps(40, end) infinite, blink 0.75s step-end infinite;
}

body.dark .typewriter {
    background: linear-gradient(to right, #00ffcc, #00ffff);
    /* Gradient for typewriter text in dark mode */
    -webkit-background-clip: text;
    color: transparent;
    border-right: 2px solid #00ffff;
    /* Cursor for dark mode */
}

/* Typewriter Animation */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Adjustments for Typewriter Section on Mobile Devices */
@media only screen and (max-width: 768px) {
    .typewriter-section {
        padding: 20px;
    }

    .typewriter-container {
        display: block;
    }

    .static-text,
    .typewriter {
        font-size: 24px;
        /* Smaller font size for mobile */
    }

    .typewriter {
        border-right: 1px solid #333;
        /* Smaller cursor for mobile */
    }
}

/* Media Query for Mobile Devices */
@media only screen and (max-width: 768px) {

    /* Hide contact link in header */
    nav ul li a[href="#contact"] {
        display: none;
    }

    /* Add contact link to footer */
    .contact-footer {
        display: block;
    }
}



body.dark .info-bulletin {
    background-color: #111;
    /* Dark background for dark theme */
    border-top: 2px solid #333;
    /* Darker divider in dark mode */
    border-bottom: 2px solid #333;
    /* Darker divider in dark mode */
}

.ticker {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    align-items: center;
}

.ticker p {
    display: inline-block;
    font-size: 18px;
    animation: ticker 10s linear infinite;
    /* Time for scrolling across the screen */
    padding-left: 120%;
    /* Remove padding to reduce gap */
    margin-right: 100%;
    /* Add margin to make the scrolling continuous */
}

.ticker a {
    color: #333;
    text-decoration: none;
    /* Remove underline from link */
    transition: color 0.3s ease-in-out;
}

body.dark .ticker a {
    color: #eee;
    /* Light text in dark mode */
}

.ticker a:hover {
    color: #007bff;
    /* Change color on hover */
}

body.dark .ticker a:hover {
    color: #0d6efd;
    /* Hover color in dark mode */
}

@keyframes ticker {
    from {
        transform: translateX(100%);
        /* Start off-screen */
    }

    to {
        transform: translateX(-100%);
        /* Move off-screen to the left */
    }
}

/* Icon Styles */

/* Positioning of icons in header */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Adjustments for Mobile Devices */
/* Adjustments for Mobile Devices */
@media only screen and (max-width: 768px) {
    header {
        padding: 15px;
        flex-direction: column;
        /* Stack items vertically on mobile */
        align-items: flex-start;
        /* Align items to the start */
    }

    .department-title {
        font-size: 18px;
        /* Smaller font size for mobile */
        margin-bottom: 10px;
        /* Space between title and nav items */
    }

    nav {
        width: 100%;
        justify-content: space-between;
        /* Space items evenly */
    }

    .contact-icon {
        width: 25px;
        /* Smaller icon size for mobile */
        height: 25px;
        margin-bottom: -7px;
    }

    .theme-switch {
        margin-top: 10px;
        /* Add space between icon and switch */
    }

    .profile-icon {
        width: 35px;
        /* Smaller icon size for mobile */
        height: 35px;
        margin-bottom: -10px;
    }

    .footer-content {
        flex-direction: column;
    }

}

.infobullet {
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    height: 25px;
    width: 250px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 10px;
    border-radius: 30px;
    border: 2px solid black;
    opacity: 0.7;
    display: flex;
    box-shadow: 0px 0px 20px rgb(0, 0, 0);
    transition: box-shadow 1s ease-in 0.1s;

}

.infobullet:hover {
    /* box-shadow: 0px 0px 20px 4px rgb(0, 0, 0); */
    cursor: pointer;
    background-color: whitesmoke;
    opacity: 0.9;
}

body.dark .infobullet:hover {
    /* box-shadow: 0px 0px 20px 4px wheat; */
    cursor: pointer;
    opacity: 0.9;
}

.info_type {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.img_dark {
    display: none;
}

.info_type p {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    font-size: 15px;
    font-weight: 700;
}

body.dark .infobullet {
    background-color: black;
    border-color: wheat;
    box-shadow: 0px 0px 10px wheat;
}

body.dark .img_light {
    display: none;
}

body.dark .img_dark {
    display: inline;
}

a {
    text-decoration: none;
    color: black;
}

body.dark a {
    color: whitesmoke;
}

/* Footer Styles */
footer {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 0px 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
    font-size: 13px;

}

body.dark footer {
    background-color: #111;
    color: #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* flex-direction: column; */
}

.footer-section {
    flex: 1;
    margin: 10px 50px;
    /* Increase horizontal margin */
    min-width: 200px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
    /* margin: 0 10px; */
}

.footer-section a:hover {
    text-decoration: underline;
}