@import url("https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&display=swap");

/* Economica font */
/* @import url('https://fonts.googleapis.com/css2?family=Economica:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*  Standard components */
body {
    font-family: "Familjen Grotesk", sans-serif;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    background: #000;
}


/* Please for the love of god never color your link class the same color as your text and remove the underline on the root level Tristian */
/* I am leaving this for now but this is a bad idea because now it's the same as text*/
a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

/* Header elements */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    height: 5em;
    padding: 0.625em 0.625em;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.2));
    animation: fadeIn 1s ease-in-out;
}

/* Logo */
.logo {
    width: 13.125em;
    height: 100%;
}

.logo img {
    display: block;
    height: auto;
    max-height: 100%;
    padding: 5px;
}

/* Desktop Menu */
.desktop-main-menu {
    margin-right: 3.125em;
    margin-top: -0.5em;
}

.desktop-main-menu ul {
    display: flex;
}

.desktop-main-menu ul li {
    position: relative;
    margin-right: 1.25em;
    padding: 0.625em 1em;
}

.desktop-main-menu ul li a {
    font-size: 1.25em;
    font-weight: 500;
}

.desktop-main-menu ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.0625em;
    background: #fff;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right center;
}

.desktop-main-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: right center;
    transition-duration: 1s;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 2.5em;
    right: 1.875em;
    z-index: 10;
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    background: none;
    border: none;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    width: 1.25em;
    height: 0.125em;
    top: 0;
    left: 0;
    background: #fff;
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(0.3125em);
}

.hamburger-bottom {
    transform: translateY(0.625em);
}

/* Animation when the Hamburger menu opens up */
.open {
    transform: rotate(90deg);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(0.375em) translateX(0.375em);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(0.375em) translateX(-0.375em);
}

/* Overlay being a background */
.overlay-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Mobile menu basically in the overlay*/
.mobile-main-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 21.875em;
    height: 100%;
    background: #000;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Stop scrolling the body when in the menu */
.stop-scrolling {
    overflow: hidden;
}

/* Bring the menu from the right */
.show-menu {
    transform: translateX(0);
}

/* Hamburger / Main menu styling */
.mobile-main-menu ul {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    padding: 3.125em;
    width: 100%;
}

.mobile-main-menu ul li {
    margin-bottom: 1.25em;
    font-size: 1.125em;
    text-transform: uppercase;
    border-bottom: 0.0625em #555 dotted;
    width: 100%;
    text-align: right;
    padding-bottom: 0.5em;
}

.mobile-main-menu ul li a {
    color: #fff;
    transition: color 0.6s;
}

.mobile-main-menu ul li a:hover {
    color: #aaa;
}

/* Footer Section */
footer {
    position: relative;
    padding: 3.4375em 0;
}

footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

footer ul li {
    margin-right: 1.875em;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8125em;
    line-height: 2.5;
}

footer ul li a {
    color: #fff;
    transition: color 0.6s;
}

footer ul li a:hover {
    color: #aaa;
}

/* Section */
/* Base */
section {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    width: 100%;
    padding: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    text-transform: uppercase;
}

.section-animate {
    animation: fadeIn 2s ease-in-out;
}

/* Two types of section titles inner and center */
/* Section Inner (On the left) */
/* This one is specific only for the first section in the homepage */
/* Section A Specifics */
.section-inner-title {
    position: absolute;
    top: 4.375em;
    left: 2em;
    width: auto;
    overflow: hidden;
    text-align: left;
    max-width: 40%;
}

/* For when writing the Hive Logo in text
.logo-title {
    font-family: "Economica", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 30rem;
    text-transform: none;
} */

.section-inner-title h2 {
    font-size: 3.4em;
    font-weight: 700;
    margin-top: 0.625em;
    animation: fadeInUp 0.5s ease-in-out;
}

.section-inner-title h4 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 0.3125em;
    animation: fadeInUp 0.5s ease-in-out 0.4s;
    animation-fill-mode: both;
}

.section-a {
    background-image: url("../media/IREC_team.webp");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

.team-stats {
    position: absolute;
    top: 7.25em;
    right: 2em;
    width: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2em;
    animation: fadeInUp 0.5s ease-in-out;
}

.team-stats div span {
    font-size: 3.4em;
    display: block;
    line-height: 1;
}

.team-stats div h4 {
    font-size: 2em;
}

/* Section Inner Center */
.section-inner-center {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 50%);
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    text-shadow:
        0 0 48px black;
}

.section-inner-center h3 {
    font-size: 3.4em;
    font-weight: 700;
    animation: fadeInUp 0.4s ease-in-out 1s;
    animation-fill-mode: both;
}

.section-inner-center h4 {
    font-size: 2em;
    animation: fadeInUp 0.4s ease-in-out 1.2s;
    animation-fill-mode: both;
}

.btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    min-width: 8em;
    padding: 1em 1em;
    margin-top: 0.625em;
    border: 0.125em solid #fff;
    overflow: hidden;
    z-index: 2;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    animation: fadeInUp 0.4s ease-in-out 1.4s;
    animation-fill-mode: both;
}

.btn:hover span {
    color: #000;
}

.btn .hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    z-index: -1;
    transform: translateY(100%);
}

.btn:hover .hover {
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-arrow {
    position: absolute;
    bottom: 3.125em;
    left: 49%;
    transform: translate(-50%);
    animation: fadeBounce 5s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    width: 40px;
    height: 20px;
}

/* Section B */
.section-b {
    /* Try to get the photo of the actual rocket */
    background-image: url("../media/LegacyLaunch_JDS.jpg");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

/* Section C */
.section-c {
    /* Try to get the photo of the actual rocket */
    background-image: url("../media/section-b.jpeg");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

.section-d {
    background:
        /* horizontal and vertical lines */
        conic-gradient(from 90deg at 1px 1px,
            #0000 25%,
            gainsboro 0%) -0.5px -0.5px/ 1em 1em,
        /* main diagonal */
        linear-gradient(45deg,
            #0000 calc(50% + -0.5px),
            gainsboro 0 calc(50% + 0.5px),
            #0000 0) 0 0/ 2em 2em,
        /* secondary diagonal */
        linear-gradient(-45deg,
            #0000 calc(50% + -0.5px),
            gainsboro 0 calc(50% + 0.5px),
            #0000 0) 0 0/ 2em 2em;
    background-color: rgba(0, 0, 0, 0.8);
    background-blend-mode: darken;
}

/* Projects Stuff */
.bg-projects {
    background-image: url("../media/section-d.jpeg");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
}

/* Projects Section Title Styles */
.projects-section-title {
    position: absolute;
    text-align: center;
    top: 10%;
    margin: 0 auto;
    padding: 0 1.25em;
}

.projects-section-title h2 {
    font-size: 4em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.0125em;
}

.projects-section-title p {
    font-size: 1.5em;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animation for the title when it comes into view */
.projects-section-title.in-view {
    animation: fadeInUp 0.6s ease-in-out;
}

.project-title-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
    margin: 0 auto;
    padding: 20px 0;
}

.project-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 350px;
    background: rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card:before,
.project-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.5s;
    z-index: 1;
}

.project-card:hover:before {
    transform: rotate(20deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover:after {
    transform: rotate(10deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-card-img {
    bottom: 80px;
}

.project-card .project-card-img {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: #222;
    transition: 0.5s;
    z-index: 3;
    border-radius: 6px;
    overflow: hidden;
}

.project-card .project-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .project-details {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 60px;
    text-align: center;
    z-index: 2;
}

.project-card .project-details h2 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    color: #777;
    text-transform: uppercase;
}

.project-card .project-details h2 span {
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    color: #eee;
    margin-top: 5px;
}

/* Stars backgronud */
.bg-stars {
    background-image: url("../media/stars.jpg");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
}

/* Projects sepcifcially */

.project-container-first {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    overflow: hidden;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    margin-top: 5em;
    padding-top: 5em;
    overflow: hidden;
    border-top: 0.5em solid rgba(255, 255, 255, 0.2);
}

.project-title {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 0em;
}

.project-content {
    display: flex;
    gap: 1.875em;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4em;
    margin-top: 4em;
    width: 100%;
    flex: 1;
    min-width: none;
}

.project-team-leads {
    display: flex;
    justify-content: center;
    gap: 5em;
    transform: translateX(1.5em);
}

.project-lead {
    text-align: center;
}

.project-lead img {
    text-align: center;
    width: 10em;
    height: 10em;
    border-radius: 50%;
    object-fit: cover;
    border: 0.125em solid rgba(255, 255, 255, 0.5);
}

.project-lead p {
    margin-top: 0.625em;
    font-weight: bold;
}

.right-section {
    flex: 1;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.specs-table tr {
    border-bottom: 0.0625em solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    width: 40%;
    font-size: 1.4em;
    padding: 1.4em 1.25em;
    text-align: left;
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
}

.specs-table td {
    width: 60%;
    font-size: 1.4em;
    padding: 1.5em 1.25em;
    text-align: right;
    font-weight: bold;
    vertical-align: middle;
}

.specs-table tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.highlight-table {
    color: #4fc3f7;
}

/* Slider Styles */
.slider {
    -webkit-animation: animation ease 1s;
    animation-delay: 0.8s;
    animation-fill-mode: backwards;
    margin: 0;
    height: 31.25em;
    width: 31.25em;
    padding: 2.5em;
    top: 6.25em;
    perspective: 62.5em;
    transition: ease-in-out 0.2s;
    text-align: center;
}

.slide img {
    text-align: center;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    border-radius: 0.125em;
    object-fit: cover;
}

.slide {
    -webkit-user-select: none;
    user-select: none;
    -moz-user-select: none;
    position: absolute;
    height: 31.25em;
    width: 31.25em;
    box-shadow: 0 0.625em 1.875em 0 rgba(0, 0, 0, 0.9);
    background: #d0d0d0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    text-align: center;
    border: 0.75em #d0d0d0 solid;
    box-sizing: border-box;
    border-bottom: 3.4375em #d0d0d0 solid;
    border-radius: 0.3125em;
}

.transition {
    -webkit-transition: cubic-bezier(0, 1.95, 0.49, 0.73) 0.4s;
    -moz-transition: cubic-bezier(0, 1.95, 0.49, 0.73) 0.4s;
    transition: cubic-bezier(0, 1.95, 0.49, 0.73) 0.4s;
}

/* Animations */
@-webkit-keyframes animation {
    from {
        opacity: 0;
        -webkit-transform: scale(1.2) rotateX(45deg);
        transform: scale(1.2) rotateX(45deg);
    }

    to {}
}

@-webkit-keyframes animation2 {
    from {
        opacity: 0;
        -webkit-transform: scale(1.2) rotateX(45deg);
        transform: scale(1.2) rotateX(45deg);
    }

    to {}
}

.slider div p {
    color: #1c1c1c;
    position: absolute;
    bottom: -2em;
    font-size: 1.375em;
    text-align: center;
}

/* Team page */

.team-header-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
    padding: 8em 0;
}

.team-header-item {
    position: relative;
    color: white;
    height: 100%;
    z-index: 3;
}

.team-header-content {
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.team-header-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: orange;
}

.team-header-blurb {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.team-header-item:hover {
    --expand: 1;
}

.team-header-item:before,
.team-header-item:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: hsl(0, 0%, 5%);
    border: 2px solid white;
    top: 0;
    left: 0;
    z-index: -1;
}

.team-header-item:after {
    transform: translate(calc(var(--expand, 0) * -2%),
            calc(var(--expand, 0) * -2%));
    transition: transform 0.2s;
}

.team-header-item:hover .team-header-content {
    transform: translate(calc(var(--expand, 0) * -4%),
            calc(var(--expand, 0) * -4%));
}

.team-header-grid h1 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    grid-column: 1 / -1;
}

.team-header-grid .header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
}

.bg-teams {
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
}

.team-section {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.team-title-initial {
    color: white;
    text-align: center;
    padding-top: 3em;
    margin-bottom: 30px;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.team-title-initial::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, orange, black);
}

.team-title {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.team-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, orange, black);
}

.team-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1em;
}

.sponsors img {
    background-color: white;
    padding: 2rem;
}

.team-card {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 1em;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(40px);
    border: solid 2px transparent;
    background-clip: padding-box;
    box-shadow: 0px 10px 10px rgba(46, 54, 68, 0.03);
}

.team-card .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    transition: 0.3s;
}

.team-card .content .img {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(0, 0, 0, 0.25);
}

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

.team-card .content .card-content h3 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    margin: 20px 0 10px;
    line-height: 1.1em;
}

.team-card .content .card-content h3 span {
    font-size: 12px;
    font-weight: 300;
    text-transform: initial;
}

.team-card .content .card-content .degree {
    font-size: 12px;
    font-style: italic;
    color: #aaa;
    margin-top: 5px;
}

.team-card .sci {
    position: absolute;
    bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.team-card .sci li {
    margin: 0 10px;
    transform: translateY(40px);
    opacity: 0;
    transition: 0.2s;
}

.team-card .sci li:nth-child(1) {
    transition-delay: 0.1s;
}

.team-card .sci li:nth-child(2) {
    transition-delay: 0.2s;
}

.team-card .sci li:nth-child(3) {
    transition-delay: 0.3s;
}

.team-card .sci li a {
    font-size: 24px;
}

.team-card:hover .content {
    opacity: 1;
    transform: translateY(-20px);
}

.team-card:hover .sci li {
    transform: translateY(0px);
    opacity: 1;
}

.center-card {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 1em;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(40px);
    border: solid 2px transparent;
    background-clip: padding-box;
    box-shadow: 0px 10px 10px rgba(46, 54, 68, 0.03);
}

/* Not needed */
.center-card .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    transition: 0.3s;
    width: 100%;
    max-width: 80%;
}

.center-fix {
    margin: auto;
    top: 20%;
}

.center-card .content .img {
    position: relative;
    top: -20%;
    width: 600px;
    height: 150px;
}

.center-card .content .img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1em;
}

.center-card .content .card-content h3 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    line-height: 1.1em;
    transform: translateY(-1em);
}

.center-card .content .card-content h3 span {
    font-size: 16px;
    font-weight: 300;
    text-transform: initial;
}

.center-card .sci {
    position: absolute;
    bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.center-card .sci li {
    margin: 0 10px;
    transform: translateY(30px);
    opacity: 0;
    transition: 0.2s;
}

.center-card .sci li:nth-child(1) {
    transition-delay: 0.1s;
}

.center-card .sci li:nth-child(2) {
    transition-delay: 0.2s;
}

.center-card .sci li:nth-child(3) {
    transition-delay: 0.3s;
}

.center-card .sci li a {
    font-size: 24px;
}

.center-card:hover .content {
    opacity: 1;
    transform: translateY(-20px);
}

.center-card:hover .sci li {
    transform: translateY(0px);
    opacity: 1;
}

/* Leadership Section Styles */
.description-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    backdrop-filter: blur(40px);
    border: solid 2px transparent;
    background-clip: padding-box;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.description-section h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description-section p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-highlights {
    margin-top: 20px;
}

.project-highlights h4 {
    color: orange;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-highlights ul {
    padding-left: 20px;
}

.project-highlights li {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
}

.project-highlights li::before {
    content: "•";
    color: #e91e63;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Sponsors Page */
.bg-rmit {
    background-image: url("../media/rmitbuilding.jpg");
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
}

/* Gallery */
.main {
    display: grid;
    color: #fff;
    margin-top: 5em;
}

.main h1 {
    text-align: center;
}

/* Photo Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
}

.gallery figure {
    /* container-type: inline-size; */
    container: figure / inline-size;
    overflow: hidden;

    display: grid;
    /* grid-template-columns: 1fr; */
    /* grid-template-rows: 1fr; */

    /*
    Because 1fr = minmax(auto, 1fr),
    to prevent the grid blowout,
    set the minimum to zero.
  */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;

    /* grid-row: 1 / -1; */
    /* grid-column: 1 / -1; */
    grid-area: 1 / 1 / -1 / -1;

    transition: scale 1s ease-in-out;
}

.gallery figure:hover img {
    scale: 1.125;
}

.gallery figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;

    padding: 3em 15% 1em 1em;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
    display: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-overlay.active .video-container {
    transform: translateY(0);
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .menu-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .video-container {
        height: calc(100% - 50px);
        /* Leave space for close button */
        margin-top: 50px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* Prevent body scroll when overlay is open */
body.overlay-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@container figure (width > 20rem) {
    .gallery figcaption {
        display: block;
    }
}

.gallery figcaption h3 {
    font-size: 1.0625rem;
}

.gallery figcaption p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (width > 600px) {
    .gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
}

/* Animations */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(140px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeBounce {

    0%,
    25%,
    50%,
    80%,
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }

    40% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1440px) {
    .center-card {
        width: 650px;
    }
}

/* Media Queries - Mobile First Approach */
@media screen and (max-width: 1200px) {
    .slider {
        height: 28em;
        width: 28em;
    }

    .slide {
        height: 28em;
        width: 28em;
    }

    .team-grid {
        width: 90%;
        gap: 1.5rem;
    }

    .project-card {
        height: 250px;
        width: 230px;
    }

    .projects-section-title p {
        display: none;
    }

    .center-card {
        width: 400px;
    }


    .center-card .content .img {
        width: 100%;
    }

    .center-card .content .img img {
        width: 100%;
    }


}

/* Medium devices (tablets, 768px and up) */
@media screen and (max-width: 768px) {
    .section-inner-title h2 {
        font-size: 3.4em;
        transform: translateY(0.5em);
    }

    .team.stats {
        display: none;
    }

    .logo {
        width: 7em;
    }
}

/* Large devices (desktops, 992px and up) */
@media screen and (max-width: 960px) {
    nav.desktop-main-menu {
        width: 100%;
        margin: 0.5rem;
    }

    .desktop-main-menu ul {
        text-align: center;
        justify-content: center;
    }


    .desktop-main-menu ul li {
        font-size: 0.7em;
        padding: 0.1rem;
    }

    .logo {
        display: none;
    }

    .project-title-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        transform: translateY(2em);
    }

    .projects-section-title {
        transform: translateY(1em);
    }

    .project-card {
        height: 250px;
        width: 230px;
    }

    .project-content {
        flex-direction: column;
        gap: 2em;
    }

    .slide {
        height: 25em;
        width: 25em;
    }

    .left-section {
        margin-top: 2em;
        gap: 2em;
    }

    .team-header-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .team-header-title {
        font-size: 1.3rem;
    }

    .team-header-grid h1 {
        font-size: 2.2rem;
    }

    .slider div p {
        font-size: 1em;
    }
}

/* Medium devices (tablets, 768px and below) */
@media screen and (max-width: 768px) {
    .section-inner-title {
        display: none;
    }

    .section-inner-center {
        position: absolute;
        top: 15%;
    }

    .section-inner-center h3 {
        font-size: 2.4em;
    }

    .section-inner-center h4 {
        font-size: 1.5em;
    }

    .section-inner-title h2 {
        font-size: 3.4em;
        margin-top: 0;
        transform: none;
    }

    .team-stats {
        display: none;
    }

    .logo {
        width: 7em;
    }

    .scroll-arrow {
        width: 24px;
        height: 12px;
        bottom: 2em;
    }

    .project-title-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-card {
        height: 230px;
        width: 210px;
    }

    .team-header-grid {
        width: 95%;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .team-header-content {
        min-height: 140px;
        padding: 1rem;
    }

    .team-header-link {
        padding: 0.4rem 0.8rem;
    }
}

/* Small devices (landscape phones, 576px and below) */
@media screen and (max-width: 576px) {
    .section-inner-center h3 {
        font-size: 2.2em;
    }

    .project-container {
        width: 100%;
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .project-title-container {
        transform: translateY(2em);
    }

    .project-card {
        max-width: 100%;
        height: 230px;
        width: 200px;
    }

    .scroll-arrow {
        display: none;
    }

    .slider {
        transform: translateX(2em);
    }

    .slide {
        height: 20em;
        width: 20em;
    }

    .project-team-leads {
        transform: translateX(0em);
    }

    .team-header-blurb {
        display: none;
    }

    .project-lead img {
        height: 8em;
        width: 8em;
    }

    .specs-table td {
        font-size: 1em;
    }

    .specs-table th {
        font-size: 1em;
    }

    .team-header-grid {
        width: 90%;
        height: 80%;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .team-header-content {
        min-height: 100px;
        padding: 0.8rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .team-header-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .center-card {
        width: 300px;
    }

}

/* Extra small devices (phones, 425px and below) */
@media screen and (max-width: 425px) {
    .section-inner-center h3 {
        font-size: 2em;
    }

    .section-inner-center h4 {
        font-size: 1.5em;
    }

    .project-title-container {
        transform: translateY(10em);
    }

    .team-header-grid {
        gap: 0.6rem;
    }

    .team-header-content {
        padding: 0.6rem;
        min-height: 100px;
    }

    .team-header-title {
        font-size: 1rem;
    }

    .team-header-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .slider div p {
        font-size: 0.8em;
    }
}

/* Extra extra small devices (small phones, 375px and below) */
@media screen and (max-width: 375px) {
    .section-inner-center h3 {
        font-size: 1.8em;
    }

    .section-inner-center h4 {
        font-size: 1.2em;
    }

    .slider {
        transform: translateX(4em);
    }

    .slide {
        height: 15em;
        width: 15em;
    }

    .project-team-leads {
        transform: translateX(0em);
        flex-direction: column;
    }

    .specs-table {
        text-align: center;
        transform: translateX(-1em);
    }

    .specs-table td {
        font-size: 1em;
    }

    .specs-table th {
        font-size: 1em;
    }

    .team-header-grid {
        gap: 0.5rem;
    }

    .team-header-content {
        min-height: 90px;
        padding: 0.5rem;
    }

    .team-header-title {
        font-size: 0.9rem;
    }

    .team-header-link {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        margin-top: 0.3rem;
    }

    .center-card {
        width: 250px;
    }
}