/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

span {
    color: #960018;
}

a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}

/* HERO SECTION (Renamed from .banner to .hero) */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(img/mb4.jpeg);
    background-size: cover;
    background-attachment: fixed;
}

.hero .hero-content h1 {
    font-size: 5em;
    color: #fff;
    text-shadow: 3px 5px 10px black;
    margin-top: 500px;
}

div {
    text-align: center;
}

.hero .hero-content p {
    font-size: 1em;
    color: #fff;
    margin-top: 20px;
    font-weight: 300;
}

/* BUTTON */
.btn {
    font-size: 1em;
    display: inline-block;
    background: #960018;
    color: #fff;
    padding: 10px 30px;
    margin-top: 20px;
    transition: 0.5s;
    text-transform: uppercase;
    border-radius: 40px;
}

.btn:hover {
    letter-spacing: 6px;
    transition: 0.5s;
    font-family: "Sofia";
}

/* HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
}

/* Sticky Header */
header.sticky {
    background: #24262b;
    padding: 10px 100px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); /* Fixed syntax error */
}

/* Logo */
header .logo {
    color: #fff;
    font-weight: 700;
    font-size: 2em;
    text-decoration: none;
    left: 10px;
}

header.sticky .logo {
    color: white;
}

/* Navigation */
header ul {
    display: flex;
    position: relative;
}

header ul li {
    list-style: none;
    margin-left: 30px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
}

header.sticky ul li a
{
    color: #fff;
}

header ul li a:hover {
    letter-spacing: 6px;
    transition: 0.5s;
    color: #960018;
    text-decoration: underline;
}

/* Fixed typo (felx → flex) */

header nav {
    display: flex;
    align-items: center; /* Ensures navbar items align with logo */
}


header nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
}

/* Mobile Menu */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Responsive Navbar for Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show menu button */
    }

    header nav ul {
        display: none; /* Hide menu items by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #24262b;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    header nav ul.active {
        display: flex; /* Show menu when active */
    }

    header nav ul li {
        padding: 10px;
    }
}

/* BODY BACKGROUND */
body {
    background-color: black;
    color: white; /* Optional: Change text color to white for contrast */
}

/* SEARCH BOX */
.search-box {
    position: absolute;
    top: 25%;
    left: 15%;
    transform: translate(-50%, -50%);
    height: 20px;
    border-radius: 40px;
    padding: 10px;
    margin-left: 30px;
}

header.sticky .search-box {
    margin-top: 10px;
}

.search-btn {
    color: white;
    float: right;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #960018;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

/* SEARCH TEXT BOX */
.search-txt {
    background: none;
    border: none;
    outline: none;
    float: right;
    padding: 0 20px;
    color: white;
    font-size: 16px;
    transition: 0.5s;
    line-height: 40px;
    position: fixed;
    margin-left: 55px;
    width: 240px;
    border: 2px solid white;
    border-radius: 40px;
}

header.sticky .search-txt {
    border: 2px solid #fff;
    color: #fff;
}

/* CAROUSEL SECTION (for Achievements) */
/* .carousel-cell {
    width: 90%;
    height: 68vh;
    margin-right: 10px;
    border-radius: 5px;
    background-attachment: fixed;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-cell img {
    width: 100%;
    border: 3px solid #960018;
    transform: scale(0.8);
    object-fit: cover;
} */

/* CAROUSEL SECTION */
.carousel-cell {
    width: 90%;
    height: 68vh;
    margin-right: 10px;
    border-radius: 5px;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for absolute positioning of text */
}

.carousel-cell img {
    width: 100%;
    border: 3px solid #960018;
    transform: scale(0.8);
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect: Slight Zoom */
.carousel-cell:hover img {
    transform: scale(0.85);
}

/* CAROUSEL TEXT OVERLAY */
.carousel-text {
    position: absolute;
    bottom: 5%;
    left: 75%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show text on hover */
.carousel-cell:hover .carousel-text {
    opacity: 1;
}


/* HIGHLIGHTS TITLE */
.highlights {
    text-align: center;
    font-weight: 300;
    font-size: 3em;
    color: #fff;
}

.highlights span {
    color: #960018;
}

/* GENERAL SECTION STYLING */
section {
    padding: 50px;
}

.section-title{
    font-size: 3em;
}

.section-title#highlights{
    margin-left: 500px;
}

/* ABOUT SECTION */
.about-row {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    /* position: relative;
    width: 40%; */
}

.about-title {
    color: #111;
    font-size: 2em;
    font-weight: 300;
}

.about-title span {
    color: #960018;
    font-weight: 700;
    font-size: 1.5em;
}

h2 + p {
    margin-top: 20px;
    font-size: 1.3em;
    word-spacing: 10px;
    font-weight: 900;
    text-align: left;
}

/* .about-image {
    width: 3px;
    height: 500px;
    margin: 20px;
    transition: width 0.5s ease;
}

.about-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25%;
    border: 15px solid #960018;
} */
.about-image {
    width: 450px; /* Adjust width properly */
    height: auto; /* Allows flexibility */
    max-width: 100%; /* Ensures image doesn’t exceed container */
    display: flex; /* Keeps it aligned properly */
    justify-content: center;
}

.about-image img {
    width: 100%; /* Ensures full width usage */
    height: auto; /* Maintains aspect ratio */
    object-fit: cover;
    border-radius: 25%;
    border: 15px solid #960018;
}

/* FOOTER */
.footer {
    background-color: #24262b;
    padding: 50px;
}

ul {
    list-style: none;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.container {
    margin: auto;
    max-width: 1170px;
}

.col {
    width: 25%;
    padding: 0 15px;
}

.col h4 {
    font-size: 25px;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 3px 5px 5px black;
}

.col h4::before {
    content: " ";
    position: absolute;
    left: 80px;
    bottom: -10px;
    background-color: #960018;
    height: 2px;
    box-sizing: border-box;
    width: 100px;
}

.col ul li a {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
    text-align: left;
    margin-left: 80px;
    text-shadow: 3px 5px 5px black;
}

.col ul li a:hover {
    padding-left: 8px;
    color: #960018;
}

/* TEAM SECTION (Renamed from .menu) */
.team-section h2 {
    text-align: center;
    font-size: 2em;
    font-weight: 300;
    width: 100%;
}

.team-content {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    margin-top: 10px;
}

.team-box {
    width: 340px;
    margin: 20px;
    border: 5px solid #960018;
    box-shadow: 3px 5px 5px black;
    transition: width 1s ease;
}

.team-box:hover {
    width: 400px;
    cursor: pointer;
    transition: 0.5s;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-family: "Poppins";
}

.team-box .text:hover {
    color: #960018;
}

.team-box .imgbox {
    position: relative;
    width: 100%;
    height: 300px;
}

.team-box .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-box .text {
    color: #666;
    font-weight: 700;
    font-size: 1.5em;
}

/* VIEW BUTTON */
.viewbtn {
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    display: inline-block;
    background: #960018;
    color: #fff;
    padding: 10px 30px;
    margin-top: 20px;
    transition: 0.5s;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 40px;
}

.viewbtn:hover {
    letter-spacing: 6px;
    transition: 0.5s;
    font-family: "Sofia";
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* MENTORS SECTION (Renamed from .experts) */
/* .mentors {
    background-image: url(img/bg2.jpg);
    background-size: cover;
}

.mentors h3 {
    color: #fff;
    font-size: 2em;
    text-align: center;
}

.mentors .mentors-area {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mentors .mentors-area .mentor-box {
    width: 340px;
    margin: 20px;
    padding: 40px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mentors .mentors-area .mentor-box .imgbox {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20%;
    border-radius: 50%;
    overflow: hidden;
}

.mentors .mentors-area .mentor-box .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mentors .mentors-area .mentor-box .text {
    color: #666;
    font-style: italic;
} */

/* SUBSYSTEMS SECTION */
.subsystems {
    background-image: url(img/bg2.jpg);
    background-size: cover;
    padding: 50px 0;
}

.subsystems h2 {
    color: #fff;
    font-size: 3em;
    text-align: center;
}

.subsystems .subsystems-area {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 40px;
}

.subsystems .subsystem-box {
    width: 340px;
    margin: 20px;
    padding: 40px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.subsystems .subsystem-box:hover {
    transform: scale(1.05);
}

.subsystems .subsystem-box .imgbox {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #960018;
}

.subsystems .subsystem-box .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subsystems .subsystem-box .text {
    color: #ccc;
    font-style: italic;
    text-align: center;
    font-size: 1.1em;
}

.subsystems .subsystem-box .text span {
    color: #960018;
    font-weight: bold;
    font-size: 1.2em;
}


/* CONTACT SECTION (Renamed from .contactus) */
.contact-section h2 {
    text-align: center;
    font-size: 3em;
    font-weight: 300;
}

.contact-form {
    padding: 75px 50px;
    background: #000;
    max-width: 500px;
    margin-top: 50px;
    border: 5px solid #960018;
    border-radius: 10px;
}

.contact-form .inputbox {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.contact-form .inputbox input,
.contact-form .inputbox textarea {
    width: 100%;
    border: 1px solid #555;
    padding: 10px;
    color: #111;
    outline: none;
    font-size: 16px;
    font-weight: 300;
    resize: none;
    border-radius: 30px;
}

.contact-form .inputbox input[type="submit"] {
    font-size: 1em;
    color: #fff;
    background-color: #960018;
    border: none;
    width: 30%;
    transition: 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.contact-form .inputbox input[type="submit"]:hover {
    cursor: pointer;
}

/* CONTACT IMAGE BOX */
.contact-section .contact-image {
    position: relative;
    width: 50%;
    height: 80%;
    float: right;
    overflow: hidden;
    margin-top: 50px;
}

.contact-section .contact-image img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-section .contact-icon img{
    height: 60px;
}

/* FOOTER */
.footer .copyright {
    color: #fff;
    text-align: center;
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    transition: 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #24262b;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

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

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown:hover .dropbtn {
    color: #960018;
}


/* LOGO 
.logo {
    display: flex;
    align-items: center;
    text-decoration: none; 
}

.logo-img {
    height: 95px; 
    width: auto; 
    margin-left: -350px;
    margin-top: -30px;
}
*/

.logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove link underline */
    max-width: fit-content; /* Prevents extra width */
}

.logo-img {
    height: 95px; /* Fixed size */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Prevent inline spacing issue */
}



header.sticky .logo-img {
    height: 60px; /* Optional: Adjust size when scrolling for sticky navbar */
    margin-top: 0px;
}

/* GALLERY SECTION */
.gallery {
    padding: 50px 0;
    background-color: #000;
}

.gallery-title {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 3px 5px 10px black;
    margin-bottom: 30px;
    text-align: center;
}

.gallery-title span {
    color: #960018;
}

/* INDIVIDUAL GALLERY ITEMS */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
    border: 3px solid #960018;
    border-radius: 15px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(150, 0, 24, 0.8);
}

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

/* FOOTER */
.footer {
    padding: 20px 0;
    background-color: #24262b;
    color: #fff;
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

/* MASONRY LAYOUT FOR GALLERY */
.masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(33% - 20px); /* Adjust width for responsiveness */
    max-width: 33%; /* Limit maximum width */
}

.masonry-item:nth-child(3n+1) {
    flex: 1 1 calc(50% - 20px); /* Larger items every 3rd image */
}

.masonry-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.masonry-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(150, 0, 24, 0.8);
}

/* FLEX GALLERY */
.flex-gallery {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

/* Gallery list */
.flex-gallery ul {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

/* Gallery list items */
.flex-gallery li {
    padding: 0;
    flex: calc(0.2 + (var(--active-lerp, 0) * 8));
    transition: flex 0.4s ease;
}

/* Gallery images */
.flex-gallery img {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
}

/* On hover or focus within the gallery, adjust image opacity and apply grayscale */
.flex-gallery ul:is(:hover, :focus-within) img {
    opacity: calc(0.1 + (var(--active-lerp, 0) * 0.9));
    filter: grayscale(calc(1 - var(--active-lerp, 0)));
}

/* Define CSS variables for the interactive effect */
:root {
    --lerp-0: 1;
    --lerp-1: 0.5787037;
    --lerp-2: 0.2962963;
    --lerp-3: 0.125;
    --lerp-4: 0.037037;
    --lerp-5: 0.0046296;
    --lerp-6: 0;
}

/* Add an outline offset for links (scoped to the gallery) */
.flex-gallery a {
    outline-offset: 4px;
}

/* Hover/focus effects on list items */
.flex-gallery li:is(:hover, :focus-within) {
    --active-lerp: var(--lerp-0);
    z-index: 7;
}

.flex-gallery li:has(+ li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li {
    --active-lerp: var(--lerp-1);
    z-index: 6;
}

.flex-gallery li:has(+ li + li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li + li {
    --active-lerp: var(--lerp-2);
    z-index: 5;
}

.flex-gallery li:has(+ li + li + li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li + li + li {
    --active-lerp: var(--lerp-3);
    z-index: 4;
}

.flex-gallery li:has(+ li + li + li + li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li + li + li + li {
    --active-lerp: var(--lerp-4);
    z-index: 3;
}

.flex-gallery li:has(+ li + li + li + li + li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li + li + li + li + li {
    --active-lerp: var(--lerp-5);
    z-index: 2;
}

.flex-gallery li:has(+ li + li + li + li + li + li:is(:hover, :focus-within)),
.flex-gallery li:is(:hover, :focus-within) + li + li + li + li + li + li {
    --active-lerp: var(--lerp-6);
    z-index: 1;
}
