:root{
    --primary-text-color:#333333;
    --primary-background-color:#f4f4f4;
    --primary-header-color:#8A2BE2;
    --primary-dark-header-color:#6900b4;
    --secondary-header-color:#4B0082;
    --secondary-text-color:#21bb88;
    --secondary-dark-text-color:#008272;
    --third-text-color:#007BFF;
    --third-dark-text-color:#006aff;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color:var(--primary-background-color);
}
html {
    scroll-behavior: smooth;
}

.nav-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: var(--primary-background-color);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-bar-logo img {
    height: 50px;
}

.nav-bar-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

.nav-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text-color);
}

.nav-subtitle {
    font-size: 1.5rem;
    color: var(--primary-header-color);
    cursor: pointer;
    font-weight: 600;
}

.nav-subtitle span {
    transition: all 0.3s ease;
}

.nav-subtitle span:hover {
    font-size: 1.2rem;
}

.nav-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-bar-content a {
    font-size: 1.3rem;
    color: var(--primary-text-color);
    text-decoration: none; /* Remove default underline */
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative; /* Allows adding pseudo-elements */
}

/* Hover Effect with Underline */
.nav-bar-content a:hover {
    color: var(--primary-header-color); /* Change text color */
    font-size: 1.2rem;
}

.nav-bar-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Adjust for spacing */
    width: 0;
    height: 2px;
    background-color: var(--primary-header-color);
    transition: width 0.3s ease;
}

/* Underline animation on hover */
.nav-bar-content a:hover::after {
    width: 100%;
}

.home-icon-nav::after{
    width: 100%;
}

/* Active State Styling */
.nav-link.active {
    color: var(--secondary-header-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-link.active::after {
    width: 100%;
}

.dropdown-container {
    background-color: var(--primary-background-color);
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-background-color);
    width: 200px;
    padding: 10px 0;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown a:hover {
    background-color: #f1f1f1;
}

.dropdown-container:hover .dropdown {
    display: flex;
}

.nav-bar-register {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-bar-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: white;
    background-color: var(--secondary-text-color);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-bar-button:hover {
    background-color: var(--secondary-dark-text-color);
    transform: translateY(-2px);
}

.contact-us-button {
    background-color: var(--third-text-color);
}

.contact-us-button:hover {
    background-color: var(--third-dark-text-color);
}

.hamburger {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--primary-background-color);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 15px;
    transition: left 0.3s;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 1rem;
    padding: 10px;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.sidebar a:hover {
    background-color: #f1f1f1;
}

/* Sticky Header */
.nav-bar-container.sticky {
    background-color: rgba(244, 244, 244, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Close Button Styling */
.close-btn {
    align-self: flex-end;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    color: var(--primary-text-color);
}


/*scroll to top button*/
/* Scroll to top button styling */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: purple; /* Button color */
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px; /* Arrow size */
    line-height: 50px; /* Center the arrow vertically */
    text-align: center; /* Center the arrow horizontally */
    transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
    background-color: rgb(104, 0, 104); /* Darker background on hover */
}

@media(max-width:768px){
    .nav-title{
        font-size: 1.2rem;
    }
    .nav-subtitle{
        font-size: 1rem;
    }
    
}
/*container-1 styling*/
.container-1 {
    display: grid;
    position: relative;
    grid-template-columns: repeat(auto-fill, minmax(10%, 1fr)); /* Adjusts columns for responsiveness */
    grid-auto-rows: 10%; /* Sets rows to maintain a uniform height */
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.grid-item {
    position: relative; /* For pseudo-element positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-background-color);
    overflow: hidden; /* Ensures ripple stays within the item */
    transition: transform 0.5s, background-color 0.5s, box-shadow 0.5s;
}

/* Adds a pseudo-element for the flowing effect */
.grid-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(128, 0, 128, 0.3); /* Semi-transparent red for ripple */
    border-radius: 50%; /* Creates circular ripple */
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    opacity: 0;
}

/* Enhanced hover effect */


.grid-item:hover {
    border: 2px solid var(--primary-header-color);
    background-color: rgba(138, 43, 226, 0.3); /* Slight red background tint */
     /* Slight zoom effect */
    
    animation: fadeIn 0.5s forwards; /* Fades in when hovering */
}

.container-1-content {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 33%;
    left: 1%;
    padding: 20px 30px; /* Adds padding for better spacing */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft box shadow for depth */
    z-index: 10;
    max-width: 80%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--secondary-header-color);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.container-1-content .header {
    color: var(--primary-dark-header-color); /* Deep violet for header */
    font-size: 3rem;
    width: 100%;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds a soft shadow to the text */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.container-1-content .sub-header {
    color: var(--secondary-dark-text-color); /* Steel blue for sub-header */
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Lighter shadow for the sub-header */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

/* Fade-in animation for grid items */
@keyframes fadeIn {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
        
    }
}

/* Fade-out animation for grid items */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.5;
        transform: scale(1);
    }
}


/*container -2 styling*/
.container-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.header-container, .header-container-2 {
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.header-container .header-1 {
    font-weight: 700;
    font-size: 3rem;
    color: var(--primary-header-color);
    margin: 0;
}

.header-container .header-1 span {
    font-size: 4rem;
    color: var(--secondary-header-color);
}

.header-container .header-2 {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}

.header-container .header-3 {
    font-size: 1.2rem;
}

.header-container .header-3 span {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--secondary-header-color);
}

.header-container-2 {
    margin: 20px;
}

.header-container-2 p {
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--primary-text-color);
}

/* Card container styling */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Slightly smaller gap between cards */
    padding: 20px;
}

.book {
    flex: 1 1 calc(30% - 15px); /* 3 cards per row with smaller width */
    max-width: calc(30% - 15px);
    height: 300px; /* Reduced height */
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    position: relative;
    transition: transform 0.3s, background-color 0.3s; /* Smooth hover effect */
}

.book .header {
    font-size: 2rem; /* Slightly smaller font size */
    font-weight: 700;
    margin: 5px; /* Reduced margin */
    color: var(--primary-header-color);
   
}

.card-details-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: white;
    background-color: var(--secondary-text-color);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px;
   
    transition: all 0.3s ease ,background-color 0.3s ease,transform 0.2s ease;
}

.card-details-button:hover {
    background-color: var(--secondary-dark-text-color);
    transform: translateY(-2px);
}

.book .subheader {
    font-size: 1rem; /* Smaller font size */
    margin: 5px; /* Reduced margin */
}

.cover {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 50px; /* Reduced padding */
    border: solid;
}

.cover img {
    object-fit: cover;
    object-position: center;
    width: 60%; /* Reduced size for better balance */
    padding: 40px;
}

.book:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    /* Add background color change if needed */
}

.book:hover .card-details-button {
    z-index: 100; /* Ensures the button appears on top when hovering */
}


.book:hover .cover {
    opacity: 0; /* Makes the cover disappear */
}

.book .cover {
    opacity: 1; /* Ensures cover reappears after hover */
}

@media (max-width:768px) {
    .header-container-2 p{
        font-size: 1.5rem;
    }
    .book .header{
        font-size: 1.2rem;
    }
    .book .subheader {
        font-size: 1rem; /* Smaller font size */
        margin: 5px; /* Reduced margin */
    }
}
/*container - 3 styling*/
.container-3{
    width: 100%;
    height: 100vh;
    position: relative;
}
.container-3 .header-container .header-1 span{
    font-size: 3.5rem;
}
.container-3 .header-container{
    margin: 40px;
}
.container-3 .header-container .header-3{
    font-size: 1rem;
}
.container-3 .header-container .header-2{
    font-size: 1.5rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    left:-1%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-member {
    min-width: 370px;
    padding: 20px;
    border: solid;
    border-width: 1px;
    border-radius: 10px;
    text-align: center;
    margin: 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 6px solid var(--primary-header-color);
    position: relative; 
    height: 280px; 
}

.team-member img {
    width: 150px;
    height: 160px;
    border-radius: 100%;
    margin-bottom: 15px;
    object-fit: cover;
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #242565;
}

.team-member p {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 0;
}

.plus-icon {
    width: 25px;
    height: 25px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #000;
    position: absolute; /* Position the plus icon absolutely */
    bottom: 85px; /* Adjust the bottom position */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}
    

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-header-color);
    color: var(--primary-header-color);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
    z-index: 1;
    text-align: center;
}
.carousel-arrow p{
    position: absolute;
    top:10%;
    left: 40%;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-arrow:hover {
    background-color: purple;
    color: white;
}
.carousel-arrow:hover p{
    background-color: purple;
    color: white;
}

.carousel-arrow:focus {
    outline: none;
}

/* Recognized Carousel Container */
.recognized-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* Recognized Carousel Inner Wrapper */
.recognized-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

/* Carousel Item */
.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0px;
}

.carousel-item img {
    width: 200px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Carousel Buttons (Hidden by Default) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: none; 
    /* Hidden by default */
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}





/*container-4 styling*/
.container-4 .header-container .header-1{
    font-size: 2rem;
    margin: 10px;
    margin-bottom: 5px;
    color: var(--primary-header-color);
}
.container-4 .header-container .header-1 span{
    font-size: 2.5rem;
    color: var(--secondary-text-color);
}
.container-4 .header-container .header-2{
    font-size: 1rem;
    color: var(--primary-text-color);
}
.achievement-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between cards */
    padding: 20px;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card {
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    height: 300px;
    border: solid;
    border-width: 1px;
    text-align: center;
    width: 20%; /* Reduced width for cleaner appearance 220px*/ 
    transition: all 3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px); /* Slight lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

.achievement-card .card-number {
    font-size: 40px; /* Reduced font size for a cleaner look */
    font-weight: bold;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

.achievement-card .card-text {
    font-size: 16px;
    color: #666;
}

.achievement-card p {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
}

@media (max-width:768px) {
    .container-4 .header-container .header-1{
        font-size: 1.2rem;
    }
    .container-4 .header-container .header-1 span{
        font-size: 1.3rem;
    }
    .achievement-card{
        height: 20%;
    }
}

/*footer styling*/

footer {
    background-color: #1C1B29;
    color: #fff;
    padding: 4rem 1rem;
    text-align: left;
    position: relative;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    background-color: #1C1B29; /* Enables wrapping for responsiveness */
}

.footer-info, .footer-links, .footer-social {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    background-color: #1C1B29;
}

.footer-info h4, .footer-links h4, .footer-social h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    background-color: #1C1B29;
}

.footer-info p, .footer-links ul li, .footer-social a {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #1C1B29;
}

.footer-info p a, .footer-links ul li a, .footer-social a {
    color: var(--secondary-text-color);
    text-decoration: none;
    background-color: #1C1B29;
}

.footer-info p a:hover, .footer-links ul li a:hover, .footer-social a:hover {
    text-decoration: underline;
    background-color: #1C1B29;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #1C1B29;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    background-color: #1C1B29;
}

.footer-social {
    display: flex;
    flex-direction: column;
    background-color: #1C1B29;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    text-decoration: none;
    background-color: #1C1B29;
}

.footer-social a img {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1C1B29;
}

.footer-bottom {
    background-color: #010101;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    background-color: #1C1B29;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #dcdcdc;
    background-color: #1C1B29;
}

.footer-bottom span {
    color: var(--secondary-text-color);
    background-color: #1C1B29;
}

.footer-social div{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #1C1B29;
}

/* Initial state of elements before scrolling into view */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State when elements are visible (fade-in) */
.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* State when elements are not visible (fade-out) */
.fade.hidden {
    opacity: 0;
    transform: translateY(20px);
}


@media (max-width: 768px) {
    .nav-bar-content,
    .nav-bar-register {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-text-color);
        margin: 4px 0;
        transition: all 0.3s;
    }
    .container-1-content {
        padding: 15px 20px;
        left: 5%;
        top: 30%;
        max-width: 90%;
    }

    .container-1-content .header {
        font-size: 1.5rem;
        text-align: center;
    }

    .container-1-content .sub-header {
        font-size: 0.8rem;
        text-align: center;
    }

    
    .header-container .header-1{
        font-size: 1.5rem;
    }

    .header-container .header-1 span{
        font-size: 2rem;
    }

    .header-container .header-2{
        font-size: 0.8rem;
    }
    .header-container .header-3{
        font-size: 0.9rem;
    }
    .header-container .header-3 span{
        font-size: 1rem;
        font-weight: bold;
    }

    .book {
        flex: 1 1 calc(100% - 15px); /* 2 cards per row */
        max-width: calc(100% - 15px);
        height: 250px; /* Reduced height for smaller screens */
    }
    .container-3 .header-container .header-1 {
        font-size: 1.5rem;
    }
    .container-3 .header-container .header-1 span{
        font-size: 1.8rem;
    }
    .container-3 .header-container .header-2{
        font-size: 1rem;
    }
    .container-3 .header-container .header-3{
        font-size: 0.8rem;
    }
    .cover{
        padding: 5px;
    }
    .container-4 .header-container .header-1{
        font-size: 1.5rem;
    }
    .container-4 .header-container .header-1 span{
        font-size: 1.7rem;
      
    }
    .container-4 .header-container .header-2{
        font-size: 1rem;
        color: var(--primary-text-color);
    }

    .achievement-card {
        width: 150px; /* Smaller width for tablets */
        padding: 15px;
    }

    .achievement-card .card-number {
        font-size: 30px;
    }

    .achievement-card p {
        font-size: 14px;
    }

    .achievement-card .card-text {
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-info, .footer-links, .footer-social {
        text-align: center;
        margin: 1rem 0;
    }

    .footer-social {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social a {
        margin-bottom: 0; /* Remove margin for inline display */
    }
    .footer-social div{
        flex-direction: column;
    }
}
