@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&amp;family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap");

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

body.menu-active {
    overflow: hidden;
}

a {
    text-decoration: none;
}

main {
    margin-top: 83px;
}


nav {
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    background-color: whitesmoke;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 10;
}
nav .logo {
    display: flex;
    align-items: center;
}
nav .logo img {
    height: 70px;
    width: auto;
    margin-right: 10px;
}
nav .logo h1 {
    font-size: 1.1rem;
    background: linear-gradient(to right, #f80100 0%, #15181b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 1.5rem;
}
nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 100%;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
}

nav ul li a.active {
    color: #f80100;
    box-shadow: none;
}

.menubar.active > ul > li > a.active {
    color: #f80100;
    box-shadow: none;
}

nav ul li a:hover {
    color: #f80100;
}

.container {
    margin: 0 auto;
    max-width: 1920px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 2%;
}

/* Responsive Container */
@media screen and (max-width: 790px) {
    .container {
        padding: 0 10px;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 1px;
    background-color: #1f1f1f;
    display: block;
    margin: 7px auto;
    transition: all 0.3s ease-in-out;
}
.hamburger-active {
    transition: all 0.3s ease-in-out;
    transition-delay: 0.6s;
    transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
    width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
    transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
    transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
    transform: translateY(-5px) rotate(90deg);
}

.menubar {
    position: absolute;
    top: 0%;
    left: -70%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    width: 60%;
    height: 100vh;
    padding: 20% 0;
    background: rgba(255, 255, 255);
    transition: all 0.5s ease-in;
    z-index: 2;
}
.active {
    left: 0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.menubar .logo img {
    height: 70px;
    width: 70px;
    margin-right: 10px;
}

.menubar ul {
    padding: 0;
    list-style: none;
}
.menubar ul li {
    margin-bottom: 32px;
}

.menubar ul li a {
    text-decoration: none;
    color: #000;
    font-size: 95%;
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 5px;
}

.menubar ul li a:hover {
    background-color: #f5f5f5;
}

@media screen and (max-width: 790px) {
    .hamburger {
        display: block;
    }
    nav ul {
        display: none;
    }
}

.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    right: 0px;
    padding: 20px;
    top: 30px;
    gap: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content.show {
    display: flex;
}

.dropdown-content > li {
    margin-left: 0;
}

.dropdown-content > li > a {
    color: black;
    padding: 5px;
    text-decoration: none;
    display: block;
    text-align: center;
}

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

/* About Grid */
.parent {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Left column 1fr, right column 2fr */
    grid-template-rows: auto auto; /* Two rows for the left column */
    grid-gap: 20px;
}

.mission {
    grid-column: 1;
    grid-row: 1;
}

.mission-card {
    padding: 20px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.mission-card ul {
    list-style: square;
    text-align: left;
}

.mission-card ul li {
    margin: 10px 0;
}

.vision-card {
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.team-members-card {
    padding: 20px;
    text-align: center;
}

.mission-card {
    padding: 20px;
    text-align: center;
}

.vision {
    grid-column: 1;
    grid-row: 2;
}

.team-members {
    grid-column: 2;
    grid-row: 1 / span 2; /* Span both rows */
}

/* Responsive layout */
@media (max-width: 768px) {
    .parent {
        grid-template-columns: 1fr; /* Single column layout */
        grid-template-rows: auto auto auto; /* Three rows */
    }

    .mission {
        grid-column: 1;
        grid-row: 1;
    }

    .vision {
        grid-column: 1;
        grid-row: 2;
    }

    .team-members {
        grid-column: 1;
        grid-row: 3; /* Move to the third row */
    }
}

/*  Team Members */

.board-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    grid-auto-flow: dense;
}

.member-card {
    padding: 20px;
    height: 280px;
    text-align: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.image-circle {
    border-radius: 50%;
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure {
    display: grid;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    margin: 10px;
}
figure > * {
    grid-area: 1/1;
    transition: 0.4s;
}
figure figcaption {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    font-size: 2.3rem;
    font-weight: bold;
    color: #0000;
    padding: 0.75rem;
    background: var(--c, #0009);
    clip-path: inset(0 var(--_i, 100%) 0 0);
    -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask-clip: text, padding-box;
    margin: -1px;
}
figure:hover figcaption {
    --_i: 0%;
}
figure:hover .image-projects {
    transform: scale(1.2);
}
@supports not (-webkit-mask-clip: text) {
    figure figcaption {
        -webkit-mask: none;
        color: #fff;
    }
}

figure figcaption .description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;
}

figure.show-description figcaption .description {
    opacity: 1;
    max-height: 100px; /* Adjust this value based on the content height */
}

.image-projects {
    height: 300px;
    width: 100%;
}

/* INDEX PAGE */

/* Hero Section */
.hero {
    display: flex;
    height: 100vh;
    background: url("assets/images/img.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 6%;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
    color: #15181b;
    padding: 20px 20px 20px 35px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(199, 199, 199, 0.3);
}

.contact-side-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 20px;
    z-index: 100;
}

.hero-title {
    position: relative;
}

.hero-title::before {
    content: "";
    height: 100%;
    top: 0px;
    z-index: 1;
    width: 6px;
    left: -10px;
    position: absolute;
    background: #15181b;
    border-radius: 3px;
}

.hero-image img {
    width: 100%;
    object-fit: cover;
}

.contact-card {
    padding: 20px;
    margin: 0px 20px;
    text-align: center;
    color: white;
    /* background: rgba(54, 98, 132, 0.6); */
    border-radius: 16px;
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
    /* backdrop-filter: blur(2.6px); */
    /* -webkit-backdrop-filter: blur(2.6px); */
    /* border: 1px solid rgba(54, 98, 132, 0.29); */
    z-index: 100;
    /* border-radius: 10px; */
    /* box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; */
}

.contact-card a {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.contact-card a:hover {
    color: #f80100;
}

@media screen and (max-width: 768px) {
    .hero-content {
        position: absolute;
        padding: 20px;
    }

    .hero-content {
        padding-top: 50px;
        justify-content: start;
    }

    .contact-card {
        /* background: rgba(54, 98, 132, 0.3); */
        /* border-radius: 16px; */
        /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
        /* backdrop-filter: blur(2.6px); */
        /* -webkit-backdrop-filter: blur(2.6px); */
        /* border: 1px solid rgba(54, 98, 132, 0.29); */
    }

    .contact-side-div {
        justify-content: end;
        align-items: end;
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .hero {
        padding: 0;
    }

    .hero-content {
        padding: 0;
        padding-top: 20px;
    }

    .contact-card {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .contact-card a {
        font-size: 0.8rem;
    }
}

.hero-logo {
    width: 150px;
    height: auto;
}

.hero-logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px,21fr));
    gap: 20px;
    grid-auto-flow: dense;
}
