/*
Theme Name: ECE-MAKERSPACE
Theme URI: Your Theme URI
Author: ECE-Makerspace IT Team
Description: Your theme description
Version: 3.1
License: GNU General Public License v2 or later
Text Domain: your-theme-name
*/

@font-face {
    font-family: 'Cubano';
    src: url('assets/fonts/Cubano-Regular.woff2') format('woff2'),
         url('assets/fonts/Cubano-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cubano';
    src: url('assets/fonts/Cubano-Regular.woff2') format('woff2'),
         url('assets/fonts/Cubano-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cubano';
    src: url('assets/fonts/Cubano-Regular.woff2') format('woff2'),
         url('assets/fonts/Cubano-Regular.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

body {
    padding-top: 175px;
}

/* HEADER */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: rgba(0, 0, 0, 1);
    background: rgba(246, 246, 244, 0.96);
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
}

.logo {
    width: 25rem;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.custom-logo {
    width: 25rem;
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.logocontainer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-family: "muli", "Mulish", sans-serif;
    font-weight: 600;
    font-style: normal;
    gap: 1rem;
    font-size: large;
}

/* .dept {
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.logocontainer>p {
    justify-content: center;
    align-items: center;
    color: black;
} */

.navbaritems {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: rgba(0, 0, 0, 1);
}

.text-special {
    color: rgba(247, 116, 49, 1) !important;
    font-weight: 600 !important;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0 2.5rem;
    flex-wrap: wrap;
}

.primary-menu li {
    list-style: none;
}

.nav-item {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: -0.13px;
    text-decoration: none;
    margin-left: 0;
    transition: color 0.3s ease;
    color: rgba(0, 0, 0, 1);
    display: inline-block;
}

.nav-item:hover {
    color: rgba(247, 116, 49, 1);
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -0.3rem;
    left: 50%;
    width: 0;
    height: 0.15rem;
    transform: translateX(-50%);
    background-color: rgba(247, 116, 49, 1);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.3rem;
    color: black;
    cursor: pointer;
    display: none;
}

#check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.light::after {
    content: "Explore";
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    color: #fff;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    border-radius: 5px;
}

/* MEDIA QUERIES */

@media (max-width: 900px) {
    header {
        padding: 1.3rem 5%;
    }
    body {
        padding-top: 185px;
    }
}

@media (max-width: 700px) {
    body {
        padding-top: 115px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .logocontainer {
        width: auto;
        max-width: calc(100% - 55px);
        padding-right: 0.5rem;
    }

    .logo,
    .custom-logo,
    .custom-logo-link img {
        width: clamp(11rem, 52vw, 18rem);
        max-width: 100%;
        height: auto;
        max-height: 60px;
        object-fit: contain;
    }

    .custom-logo-link {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    header::before {
        position: absolute;
        content: "";
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        z-index: -1;
    }

    header::after {
        position: absolute;
        content: "";
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(246, 246, 244, 0.96);
        transition: 0.8s;
    }

    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        background: rgba(246, 246, 244, 0.96);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        overflow: hidden;
        overflow-y: auto;
        transition: max-height 0.3s ease;
    }

    #check:checked~.navbar {
        max-height: 80vh;
        height: auto;
    }

    .primary-menu {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-item {
        display: block;
        font-size: 1.1rem;
        margin: 1rem 0;
        text-align: center;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-item:hover::after {
        width: 100%;
    }

    #check:checked~.navbar .nav-item,
    #check:checked~.navbar a.nav-item {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(0.05s * var(--i));
    }
}

@media (max-width: 450px) {
    .btn {
        width: 130px;
    }

    .light::after {
        width: 120px;
    }

    .logo,
    .custom-logo,
    .custom-logo-link img {
        width: clamp(9rem, 60vw, 14rem);
        max-height: 48px;
    }

    .logocontainer {
        max-width: calc(100% - 50px);
    }
}

.current_page_item > .nav-item,
.current-menu-item > .nav-item,
.nav-item.current_page_item,
.nav-item.current-menu-item,
li.current_page_item a.nav-item,
li.current-menu-item a.nav-item {
    color: rgba(247, 116, 49, 1) !important;
}

/* HERO SECITON */

/* Hero Section Styles */
.hero {
    position: relative;
    min-height: 60vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(246, 246, 244, 0.96);
    /* header is fixed, body has padding-top */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/Circuit_Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero .logo,
.hero-title,
.cta-button {
    position: relative;
    z-index: 2;
}

.hero .logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    margin-bottom: 30px;
    gap: 10rem;
    display: flex;
    padding-bottom: 50px;
}

.cta-button {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    padding: 12px 40px;
    background-color: rgba(247, 116, 49, 1);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero .logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero .logo {
        max-width: 200px;
    }

    .cta-button {
        padding: 10px 30px;
        font-size: 1rem;
    }
}
