@import url(../Css/clash-display.css)

;root {
    --c-dark: #e02c2c;
    --c-brand: #2f37d8;
    --c-brand-light: #4f55c4;
    --c-brand-rgb:(47, 55, 216);
    --c-body: #dad3d3;
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
    --transition: all 0.5s ease;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "ClashDisplay";
    line-height: 1.7;
    color: #ffffff;
}

.h1, .h2, .h3, .h4, .h5, .h6{
    font-weight: 600;
    color: #383838;
}



img{
    width: 100%;
    height: auto;
    
}

section{
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Navbar */
.navbar{
    box-shadow: 0px 15px 25px rgba(0,0,0,0.08) ;
}
.navbar-nav .nav-link{
    font-weight: 500;
    color: rgb(37, 37, 37);
}

.navbar-nav .nav-link.active{
    color: #e02c2c;
}

.image_logo{
    height: 50px;
    object-fit: cover;
    object-position: center;
}

.nav_name{
    height: 8px;
    right: 400px;
    position: relative;
    font-weight: 500;
}

/* Custom Dropdown Styles */
.navbar-nav .dropdown-menu {
    background-color: #ffffff; /* Dropdown background color */
    border: 1px solid #e0e0e0; /* Add a border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a shadow */
}

.navbar-nav .dropdown-item {
    color: #333; /* Dropdown item text color */
    padding: 10px 20px; /* Add padding */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa; /* Hover background color */
    color: #e02c2c; /* Hover text color */
}

/* Btn */
.btn{
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}
.btn-brand{
    border: none;
    color:  rgb(37, 37, 37);
}

/*Hero*/
#hero{
    background: linear-gradient(rgba(255, 82, 52, 0.804),rgba(0, 0, 128, 0.773)), url(../Img/College\ front.jpg);
    background-position: center;
    background-size: cover;
}


/*Section*/
.section-title{
    margin-bottom: 40px;
}

.section-title .line{
    width: 60px;
    height: 4px;
    background-color: #e02c2c;
    margin: 16px auto 24px auto;
}

.section-padding{
    color: #383838;
}

.row .about{
    padding-top: 50px;
    padding-right: 36px;
}

/* Courses */

.row{
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.row .line{
    width: 60px;
    height: 4px;
    background-color: #e02c2c;
    margin: 16px auto 24px auto;
}

.C-card {
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0px 7px 8px rgba(43, 42, 42, 0.456);
    transition: 0.3s ease-in-out;
    border-radius: 15px; /* Add rounded corners */
    overflow: hidden; /* Ensure the image doesn't overflow */
    margin-bottom: 20px; /* Add some spacing between cards */
}

.C-card .card-body {
    width: 100%;
}


.C-card .card-title,
.C-card .card-text {
    margin-bottom: 10px;
    transform: scale(1.1) ;
}

.C-card:hover{
    transform: translateY(-10px); /* Move card up slightly on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}


.C-card:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,rgba(0, 0, 128, 0.773),rgba(255, 82, 52, 0.804));
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
}

.C-card:hover:before{
    opacity: 1;
}

.C-card img {
    width: 100%;
    height: auto;
    border: none; /* Remove any borders */
    border-radius: 15px 15px 15px 15px; /* Rounded corners only at the top */
    transition: transform 0.3s ease; /* Add a smooth transition for hover effect */
}

.C-card .read-more{
    position: relative;
    z-index: 3;
    color: #ffffff;
    opacity: 0;
    height: min-content;
    transition: 0.5s all;
}

.C-card:hover .read-more{
    opacity: 1;
    transform: translateY(0px);
}

.C-card .read-more .btn{
    font-weight: 600;
    font-size: larger;
    text-transform: none;
}

/* Contact */
.contact{
    position: relative;
    
}

.contact::after{
    content: "Hello";
    width: 500px;
    height: 1000px;
    background-color: red;
    background-position: center;
    background-size: cover;
    
}

/*Contact 2*/


.contact-us-section {
    background:linear-gradient(rgba(255, 82, 52, 0.804),rgba(0, 0, 128, 0.773)), url(../Img/contact-bg.jpg); 
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
}

.contact-us-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-us-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-us-section .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    color: #495057;
}

.contact-us-section .form-control:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-us-section .btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.contact-us-section .btn-primary:hover {
    background-color: #0056b3;
}

/*Courses card*/
.Poster{
    width: 70%;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 10px #383838;
}
.Coursecard{
    padding: 1.5em .5em .5em;
    text-align: center;
    margin-left: 170px;
    
}

.Coursecard_EE{
    padding: 1.5em .5em .1em;
    text-align: center;
    margin-left: 170px;
    
}

.Coursecard .card-title{
    font-weight: 550;
}

.Poster_EE{
    width: 70%;
    object-fit: cover;
    object-position: center;
    height: 50%;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 10px #383838;
}

.Poster_ME{
    width: 70%;
    height: 70%;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 10px #383838;
    object-fit: cover;
    object-position: center;
}

.Poster_CE{
    width: 70%;
    height: 70%;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 10px #383838;
    object-fit: cover;
    object-position: center;
}

/*Events*/
/* Parallax Wrapper */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
    background: url('../Img/Events-Section-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Fixed background */
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text visibility */
    z-index: -1;
}


#Events {
    position: relative;
    z-index: 2;
    color: #fff; /* Ensure text is visible */
}
/* Custom Styles for Events Section */
#events {
    padding: 60px 0;
    
}

.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card .card-body {
    padding: 20px;
}

.event-card .card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.event-card .card-text {
    color: #555;
}


.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.hover-card {
    
    color: #383838;
}

/*Principle's Desk*/


/* Footer */

.footer {
    background-color: #343a40;
}

.footer h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #007bff !important;
}

.footer .form-control {
    background-color: #454d55;
    border: none;
    color: #fff;
}

.footer .form-control::placeholder {
    color: #ccc;
}

.footer .btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.footer .btn-primary:hover {
    background-color: #0056b3;
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for scale-up animation */
@keyframes scaleUp {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

/* Apply fade-in animation to the hero section */
#hero {
    animation: fadeIn 1.5s ease-out;
}

/* Apply scale-up animation to cards */
.card {
    animation: scaleUp 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Apply fade-in animation to sections */
.section-padding {
    animation: fadeIn 1s ease-out;
}

/* Hover effect for buttons */
.btn-brand {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-brand:hover {
    background-color: #e02c2c;
    transform: translateY(-5px);
}

/* Hover effect for social links */
.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #e02c2c !important;
    transform: translateY(-5px);
}

/* Hover effect for navbar links */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e02c2c !important;
}


/* Hover effect for buttons */
.btn-primary {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #FF6B6B;
    transform: translateY(-5px);
}

/* Background image for Computer Engineering section */

#Computer {
    background: url('') no-repeat center center/cover;
    padding: 60px 0;
    color: #fff;
    position: relative;
}

#Computer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

#Computer .row {
    position: relative;
    z-index: 2;
}

#Electronic {
    background: url('../assets/Img/Electronics-bg.jpg') no-repeat center center/cover;
    padding: 60px 0;
    color: #fff;
    position: relative;
}

#Electronic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

#Electronic .row {
    position: relative;
    z-index: 2;
}

#Civil {
    background: url('') no-repeat center center/cover;
    padding: 60px 0;
    color: #fff;
    position: relative;
}

#Civil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

#Civil .row {
    position: relative;
    z-index: 2;
}

#Mechanical {
    background: url('') no-repeat center center/cover;
    padding: 60px 0;
    color: #fff;
    position: relative;
}

#Mechanical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

#Mechanical .row {
    position: relative;
    z-index: 2;
}

#Electric {
    background: url('') no-repeat center center/cover;
    padding: 60px 0;
    color: #fff;
    position: relative;
}

#Electric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

#Electric .row {
    position: relative;
    z-index: 2;
}


/* Chatbot Button */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #462bb0;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}
.chatbot-button:hover {
    background-color: #743dc8;
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Offcanvas Chatbot */
.offcanvas {
    width: 300px;
    height: 600px;
    position: fixed;
    bottom: 90px;
    right: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    
}
.offcanvas.offcanvas-end {
    transform: translateX(100%);
}
.offcanvas.show {
    transform: translateX(0);
}

/* Chatbot Messages */
.chatbot-messages {
    height: calc(100% - 120px); /* Adjust height to leave space for input */
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.chatbot-messages div {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 10px;
    max-width: 80%;
}
.chatbot-messages .user {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}
.chatbot-messages .bot {
    background-color: #f1f1f1;
    color: #333;
    margin-right: auto;
}

/* Chatbot Input */
.chatbot-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(254, 254, 254);
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    border-radius: 12px;
}
.chatbot-input input {
    flex: 1;
    margin-right: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}
.chatbot-input button {
    border-radius: 20px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.chatbot-input button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 676px) {
    .offcanvas {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
    .chatbot-button {
        bottom: 10px;
        right: 10px;
    }
}