/* frontend/css/style.css */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font stack */
    line-height: 1.6;
    color: #333; /* Default text color */
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    padding: 0;
    background-color: #343a40; /* Fallback color */
}

.hero-section .carousel-item img {
    height: 75vh;
    position: relative;
    min-height: 450px; /* Minimum height for smaller screens */
    object-fit: cover;
    filter: brightness(0.65); /* Slightly darken images for better text contrast */
}

.hero-section .carousel-caption {
    bottom: 15%;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    border-radius: 0.3rem;
}
.hero-section .carousel-caption h5{
    font-weight: bold;
    font-size: 1.75rem; /* Larger caption heading */
}
.hero-section .carousel-caption p{
    font-size: 1.1rem;
}


.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #fff;
    width: 100%;
    padding: 0 15px; /* Add some padding for smaller screens */
}
.hero-overlay-content .display-4 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Text shadow for better readability */
}


/* General Section Styling */
section {
    scroll-margin-top: 70px; /* Offset for sticky navbar height */
}
section .lead {
    font-size: 1.1rem;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}
h2.fw-bold {
    color: #2c3e50; /* Darker blue for main section headings */
}


/* Service Item Styling */
.service-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.service-item .icon-wrapper {
    width: 65px; /* Slightly smaller icon wrapper */
    height: 65px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-item:hover .icon-wrapper {
    background-color: #343a40 !important; /* Darker background on hover for icon wrapper */
}


/* Project Card Styling */
.project-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}
.project-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-top-left-radius: calc(0.375rem - 1px); /* Match Bootstrap card radius */
    border-top-right-radius: calc(0.375rem - 1px);
}
.project-card .card-body {
    background-color: #f8f9fa; /* Light background for card body */
}


/* Professor Card Styling */
.professor-card img {
    width: 130px; /* Slightly smaller professor images */
    height: 130px;
    object-fit: cover;
    border: 4px solid #e9ecef;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.professor-card:hover img {
    transform: scale(1.05);
    border-color: #0d6efd;
}

/* Footer Styling */
footer {
    font-size: 0.9rem;
    background-color: #212529; /* Slightly darker footer */
}
.footer-link {
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    text-decoration: underline !important;
    color: #ced4da !important;
}
.social-icon {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.15);
}


/* Animation for elements fading in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px); /* Slightly more pronounced Y translation */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter message styling */
#newsletterMessage .alert {
    font-size: 0.9rem;
    padding: 0.6rem 1rem; /* Slightly more padding */
}

/* Navbar shadow for sticky */
.navbar.sticky-top {
    transition: box-shadow 0.3s ease-in-out;
}

/* Ensure buttons and links have a clear pointer */
.btn, .nav-link, .footer-link, .social-icon {
    cursor: pointer;
}