:root {
    --primary: #ffa31a;
    --bg-glass: rgba(20, 20, 20, 0.85);
    --bg-glass-light: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: "Roboto", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: var(--text-main);
    user-select: none;
    overscroll-behavior-y: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    overflow: hidden;
}

#background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

p{
    pointer-events: none;
    touch-action: none;
}

#wrapper{
    position: relative;
    left: 0;
    top: 0px;
    width: 100%;
    height: auto;
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.header{
    width: 100%;
    position: absolute;
    top: 0px;
    display: flex;
    justify-content: right;
    align-items: center;
    font-family: "gravesend-sans", sans-serif;
    padding: 30px 50px;
    max-width: 1600px;
    gap: 25px;
    z-index: 100;
}

.header button{
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    color: white;
    font-size: 14pt;
    font-family: Roboto-Light;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.header button:hover{
    background: var(--primary);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 163, 26, 0.3);
    border-color: var(--primary);
}

.container{
    position: relative;
    width: 100%;
    height: 100vh;
    height: var(--app-height, 100vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container.full{
    height: 100%;
}

.flex{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.brand{
    display: flex;
    justify-content: center;
    align-items:center;
    gap: 2vw;
}

.brand img{
    display:inline;
    width: 5vw;
    height: 5vw;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.brand p{
    display: inline;
    text-align: center;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    line-height: 3vw;
}

.brand #output{
    font-size: 4vw;
    letter-spacing: 2vw;
    font-weight: 400;
    font-family: "gravesend-sans", sans-serif;
}

.p1{
    position: absolute;
    width: 100%;
    left: 50%;
    transform:translateX(-50%);
    bottom: 30px;
    text-align: center;
    font-family: Roboto-Black;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: scrollDownAnimation 3s infinite;
}

.projects-title {
    width: 100%;
    text-align: center;
    font-size: 3rem;
    font-family: Roboto-Bold;
    padding: 0px 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    position: relative;
    width: 300px; /* 600x900 ratio scaled down */
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: var(--border-glass);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-name {
    font-family: Roboto-Bold;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-desc {
    font-family: Roboto-Light;
    font-size: 1rem;
    color: white;
    text-align: center;
}

.about-us-title, .team-title{
    width: 100%;
    text-align: center;
    font-size: 3rem;
    font-family: Roboto-Bold;
    padding: 0px 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.about-us-text, .team-text{
    max-width: 900px;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: Roboto-Light;
    padding: 0px 15px;
    margin-top: 10px;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.contact-text{
    max-width: 900px;
    text-align: center;
    font-size: 16pt;
    font-family: Roboto-Light;
    padding: 5px 15px;
    margin: 10px 0px;
}

.contact-text a{
    pointer-events:all;
    touch-action: all;
    text-decoration: none;
    color:gray;
}

.blur{
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.personnel{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 2vw;
    column-gap: 20px;
    row-gap: 20px;
}

.personnel .person-card{
    padding: 20px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content:start;
    align-items: center;
    line-height: 20px;
    border-radius: 20px;
    background: var(--bg-glass-light);
    border: var(--border-glass);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.personnel .person-card:hover{
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.personnel .person-card img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary);
    object-fit: cover;
}

.personnel .person-card p{
    color:white;
    margin: 5px 5px;
}

.personnel .person-card .name{
    font-size: 1.4rem;
    font-family: Roboto-Bold;
    color: var(--primary);
}

.personnel .person-card .role{
    font-size: 1rem;
    font-family: Roboto-Regular;
    color: var(--text-muted);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 90%;
    max-width: 800px;
    padding: 50px;
    background: var(--bg-glass-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.contact-wrapper:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.section-title {
    font-family: Roboto-Bold;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 163, 26, 0.3);
}

.social-section, .address-section, .press-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.press-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 1rem;
    font-family: Roboto-Bold;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.press-button:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px rgba(255, 163, 26, 0.4);
    transform: translateY(-2px);
}

.socialmedia{
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.socialmedia .icon {
    width: 45px;
    height: 45px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: none;
}

.socialmedia .icon:hover {
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--primary));
}

.address-text {
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: Roboto-Light;
}

.copyright-section {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
}

.copyright-section p {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: Roboto-Light;
}

form{
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    row-gap: 20px;
    background-color: rgba(255, 163, 26, 0.1);
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: var(--border-glass);
}

form label{
    color: var(--primary);
    font-family: Roboto-Bold;
    font-size: 1.5rem;
}

form .textbox-carrier{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

form .textbox-carrier span{
    font-family: Roboto-Bold;
    color:white;
    margin-bottom: 8px;
    padding-left: 5px;
}

form .textbox{
    width: 100%;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: Roboto-Regular;
    color:white;
    padding: 0px 15px;
    transition: border-color 0.3s;
}

form .textbox:focus, form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

form textarea{
    width: 100%;
    height: 160px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: Roboto-Regular;
    color:white;
    padding: 15px;
    resize: none;
    transition: border-color 0.3s;
}

form .row{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: center;
    column-gap: 15px;
}

form button{
    width: 100%;
    height: 45px;
    align-self: center;
    border: none;
    background-color: var(--primary);
    font-family: Roboto-Bold;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

form button:hover {
    transform: scale(1.02);
}

@keyframes scrollDownAnimation {
    0%{
        bottom: 30px;
        opacity: 0.5;
    }
    50%{
        bottom: 45px;
        opacity: 1;
    }
    100%{
        bottom: 30px;
        opacity: 0.5;
    }
}

.container .content, 
.container .about-us-text, 
.container .team-text,
.container .personnel,
.container .about-us-title,
.container .team-title,
.container .projects-title,
.container .projects-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.container.active .content, 
.container.active .about-us-text, 
.container.active .team-text,
.container.active .personnel,
.container.active .about-us-title,
.container.active .team-title,
.container.active .projects-title,
.container.active .projects-grid {
    opacity: 1;
    transform: translateY(0);
}

#overview{
    display: block;
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    z-index: 100;
}

#overview .item{
    position: relative;
    width: 100%;
    font-family: Roboto-Bold;
    padding: 15px 20px;
    background-color: transparent;
    border-radius: 5px;
    transition: 0.3s;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#overview .item:hover{
    color: white;
    padding-left: 25px;
}

#overview #highlighter{
    position: absolute;
    top: 0px;
    left: 0;
    width: 3px;
    background-color: var(--primary);
    transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px var(--primary);
}

@media screen and (max-width: 1170px) {
    .personnel{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 15px;
        justify-content: center;
    }

    .brand {
        flex-direction: column;
        gap: 10px;
    }

    .brand img {
        width: 80px;
        height: 80px;
    }

    .brand #output {
        font-size: 2rem;
        letter-spacing: 5px;
        line-height: 1.2;
    }

    .about-us-title, .team-title, .projects-title {
        font-size: 2rem;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .about-us-text, .team-text {
        font-size: 1rem;
        padding: 0 20px;
        text-align: center;
        /* Prevent text from taking too much space */
        display: -webkit-box;
        -webkit-line-clamp: 8;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .projects-grid {
        padding: 10px;
    }

    .project-card {
        width: 200px;
        height: 300px;
    }
    
    .project-name {
        font-size: 1.5rem;
    }

    .personnel {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .personnel .person-card {
        padding: 10px;
    }

    .personnel .person-card img {
        width: 70px;
        height: 70px;
        margin-bottom: 5px;
    }

    .personnel .person-card .name {
        font-size: 0.9rem;
    }

    .personnel .person-card .role {
        font-size: 0.7rem;
    }

    .contact-wrapper {
        width: 95%;
        padding: 15px;
        gap: 15px;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .socialmedia {
        gap: 15px;
    }

    .socialmedia .icon {
        width: 35px;
        height: 35px;
    }

    #overview {
        display: none;
    }
    
    .p1 {
        font-size: 0.8rem;
        bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .brand img {
        width: 60px;
        height: 60px;
    }

    .brand #output {
        font-size: 1.5rem;
    }
    
    .personnel .person-card img {
        width: 60px;
        height: 60px;
    }
}
