:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    min-height: 100px !important;
    background-color: transparent !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 25px;
}

.hero-slider .carousel-item {
    height: 490px;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    animation: kenburns 10s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05) translate(-1%, -0.5%);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1.1) translate(-1%, -1%);
        filter: brightness(1);
    }
}

.hero-slider .carousel-item {
    transition: transform 1.5s ease-in-out, opacity 1s ease-in-out;
}


.hero-slider .carousel-caption {
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slider .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    animation: slideInLeft 1s ease-out;
}

.hero-slider .carousel-caption p {
    font-size: 1.25rem;
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.3);
}

.hero-slider .carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
}

.hero-slider .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background Pattern Overlay */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 10%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 10%);
    background-size: 100px 100px;
    opacity: 0.5;
}

.stats-card {
    text-align: center;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height:100%;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.2);
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: -10px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.stats-card:hover i {
    background: white;
    transform: rotateY(360deg);
}

.stats-card .count {
    font-size: 2.9rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stats-card div:last-child {
    font-size: 1.0rem;
    font-weight: 1000;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    overflow: hidden; /* Keeps image inside rounded corners during zoom */
}

.card:hover {
    transform: translateY(-10px); /* Lifts up more */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img-top {
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    height: 200px;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1); /* Zoom in effect */
}

/* About Section Image Effect */
.about-section img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 10px; /* Ensure rounded corners */
}

.about-section img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


/* Department Cards */
.dept-card .card-img-top {
    height: 180px;
}

.dept-card .card-body {
    padding: 1.5rem;
}

.dept-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Faculty Cards */
.faculty-card {
    text-align: center;
}

.faculty-card .faculty-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--secondary-color);
    padding: 3px;
}

.faculty-card h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.faculty-card .designation {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.faculty-card .qualification {
    font-size: 0.9rem;
    color: #666;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 2rem;
}

/* Album Card */
.album-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.album-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.album-card .album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.album-card .album-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* News Section */
.news-card {
    border-left: 4px solid var(--accent-color);
}

.news-card .news-date {
    color: var(--secondary-color);
    font-weight: 600;
}

.news-card h5 {
    color: var(--primary-color);
}

/* About Page */
.about-hero {
   
    padding: 80px 0;
}

.about-section {
    padding: 60px 0;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
}

.contact-info-card {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 5px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 5px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Page Header */
.page-header {
    background:none;
   
    padding: 20px 0 !important;
    margin-bottom: 20px !important;
}

.page-header h1 {
    margin: 0;
    font-weight: 700;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-slider .carousel-item {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-card .count {
        font-size: 2rem;
    }
}
    
    .hero-slider .carousel-item {
        height: 350px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .hero-slider .carousel-item {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-card i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.75rem;
    }
    
    .stats-card .count {
        font-size: 1.75rem;
    }
    
    .stats-card div:last-child {
        font-size: 0.85rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-card h5 {
        font-size: 1rem;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        min-height: 60px !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 60px !important;
    }
    
    .hero-slider {
        height: 250px;
        margin-top: 0;
    }
    
    .hero-slider .carousel-item {
        height: 250px;
    }
    
    .hero-slider .carousel-caption {
        bottom: 20%;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.25rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.8rem;
        display: none;
    }
    
    .hero-slider .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
    }
    
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .stats-card i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }
    
    .stats-card .count {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
}
    
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .stats-card i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }
    
    .stats-card .count {
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card h5 {
        font-size: 1rem;
    }
    
    .faculty-card .faculty-img {
        width: 100px;
        height: 100px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .album-card img {
        height: 150px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 15px 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 30px 0;
    }
    
    .about-section img {
        margin-bottom: 20px;
    }
    
    /* Section Titles */
    h2 {
        font-size: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Form Elements */
    .form-control {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Footer Mobile */
    footer {
        padding: ;
       20px 0 text-align: center;
    }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 768px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for carousel controls on mobile */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    width: 2rem;
    height: 2rem;
}

/* Tables responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets on mobile */
.btn, .nav-link, .card {
    -webkit-tap-highlight-color: transparent;
}
/* Sticky Header Styles */
.navbar-scrolled {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    min-height: 70px !important;
    background-color: white !important; /* Opaque background when scrolled */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* New Content Animation Styles */
.content-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Flow Up Animation for Gallery */
@keyframes flowUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item, .album-card {
    animation: flowUp 0.6s ease-out forwards;
    opacity: 0;
}

.gallery-item:hover, .album-card:hover {
    transform: translateY(-10px);
}