/* General Styles */
body {
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    background-color: #1c1c1c;
    color: #ecd687;
    line-height: 1.6;
    position: relative;
    overflow: scroll;
}

/* Honeycomb Background */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(40,40,40)' viewBox='0 0 100 169.5'%3E%3Cpolygon points='50,34.75 93.5,59.75 93.5,109.75 50,134.75 6.5,109.75 6.5,59.75'%3E%3C/polygon%3E%3Cpolygon points='0,-50 43.5,-25 43.5,25 0,50 -43.5,25 -43.5,-25'%3E%3C/polygon%3E%3Cpolygon points='100,-50 143.5,-25 143.5,25 100,50 56.5,25 56.5,-25'%3E%3C/polygon%3E%3Cpolygon points='0,119.5 43.5,144.5 43.5,194.5 0,219.5 -43.5,194.5 -43.5,144.5'%3E%3C/polygon%3E%3Cpolygon points='100,119.5 143.5,144.5 143.5,194.5 100,219.5 56.5,194.5 56.5,144.5'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: 50px;
    background-repeat: repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.3; /* Honeycomb opacity */
    z-index: -2; /* Keeps it behind everything */
}

/* Wireframe Background */
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url('assets/wireframe.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    opacity: 0.35; /* Wireframe opacity */
    z-index: -1; /* Keeps it above the honeycomb */
}


.nav::-webkit-scrollbar {
    display: none; /* Hide the scrollbar */
}

/* For the entire body if it has overflow */
body::-webkit-scrollbar {
    display: none; /* Hide the scrollbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ecd687;
    margin: 0;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    color: #ecd687;
    text-decoration: none;
    margin-right: 15px;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ecd687;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hamburger Icon (Initially Hidden on Larger Screens) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px; /* Add padding for the background */
    background-color: rgba(28, 28, 28, 0.8); /* Semi-transparent background */
    border-radius: 5px; /* Rounded corners */
    z-index: 20; /* Ensure it stays above the menu */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.hamburger:hover {
    background-color: rgba(44, 44, 44, 0.9); /* Darker background on hover */
}

.bar {
    width: 30px;
    height: 4px;
    background-color: #ecd687;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

/* Logo and team info */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align logo and text */
    margin-bottom: 30px;
}

.logo-image {
    margin-right: 20px; /* Adds space between the logo and the text */
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Align text to the left */
}

.team-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.team-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin: -40px 0 0 0;  /* Adjust margin to bring the elements closer */
    color: #ecd687;
}

/* Links */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link {
    text-decoration: none;
    background-color: rgba(56, 56, 56, 0.8);
    padding: 10px;
    padding-bottom: 35px;
    border-radius: 8px;
    border: 2px solid rgb(90, 90, 90); /* Added border style */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.link:hover {
    background-color: #4a4a4a;
    transform: translateY(-10px);
}

.link h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ecd687;
}

.link p {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: #ddd;
}

/* Responsive Design: Logo on top of text */
@media (max-width: 1200px) {
    .logo-container {
        flex-direction: column; /* Stack the logo and text vertically */
        align-items: center; /* Center the items */
    }

    .logo-image {
        margin-right: 0; /* Remove space between logo and text */
        margin-bottom: 20px; /* Add space below the logo */
    }

    .team-info {
        text-align: center; /* Center align the text */
    }

    /* Show Hamburger Icon */
    .hamburger {
        display: flex;
    }

    /* Hide Links on Mobile */
    .nav {
        display: none;
        width: 100%;
        justify-content: center;
        gap: 0;
        flex-direction: column;
        padding: 10px 0;
        position: absolute;
        top: 60px;
        right: 0;
        z-index: 10;
    }

    /* Show Links when Hamburger is Active */
    .nav.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(28, 28, 28, 0.95); /* Semi-transparent background for menu */
        z-index: 10;
        padding: 20px 0;
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: calc(100vh - 60px); /* Prevent menu from going beyond the viewport */
    }

    .nav-link {
        margin: 15px 0;
    }
}
