* {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: "railway-m";
    src: url(/static/assets/fonts/Raleway-Medium.ttf) format("truetype");
}
@font-face {
    font-family: "railway-lite";
    src: url(/static/assets/fonts/Raleway-Light.ttf) format("truetype");
}
@font-face {
    font-family: "railway-bold";
    src: url(/static/assets/fonts/Raleway-Bold.ttf) format("truetype");
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    } /* move up 20px */
    100% {
        transform: translateY(0);
    }
}

:root {
    --color-text: white;
    --font-size-menu: 20px;
    --font-size-head: 46px;
    --font-size-desc: 24px;
    --color-button: #7d4fe2;
    --color-base: #2a1e44;
}
html {
    scroll-behavior: smooth;
    /* scroll-snap-type: y proximity; */
}
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /* overflow: hidden; */
    background-color: var(--color-base);
}
#page-wrapper {
    transform-origin: top left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* overflow: hidden; */
    transition: transform 0.2s ease;
}
/* #page-wrapper {
    width: 100%;
    min-height: 100vh;

    transform-origin: top left;
    transition: transform 0.2s ease;
} */
/*---------------------------------- SECTION 1 CSS --------------------------------------*/
.section-1 {
    height: 100vh;
    width: 100%;
    background-image: url(/static/assets/backgrounds/section-1.png);
    /* background-color: #7d4fe2; */
    background-repeat: no-repeat;
    background-size: 100% 101%;
    background-position: center;
    box-sizing: border-box;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}
.section-1 > div {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    gap: 60px;
}
.bg-video {
    position: absolute;
    top: 0%;
    left: 0%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    /* transform: tran1slate(-50%, -50%); */
    mix-blend-mode: screen;
    opacity: 0.8;
}

iframe {
    border: 0;
    mix-blend-mode: screen;
    will-change: mix-blend-mode;
    isolation: auto;
}

#navbar {
    /* background: #000; */
    width: 100%;
    height: 120px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: top 0.3s ease, background-color 0.3s ease;
}
#navbar.scrolled {
    background-color: #00000076;
}
#navbar.hidden {
    top: -200px;
}

.phi-logo {
    height: 70px;
    margin-left: 6%;
    color: var(--color-text);
    font-family: "railway-bold";
    cursor: pointer;
    transition: color 0.4s ease;
}

#phicode-logo {
    height: 100%;
    transform: rotate(0);
    transition: transform 0.4s ease;
}

.phi-logo:hover {
    /* color: rgb(182, 182, 182); */
    filter: invert(20%);
    /* background-color: white; */
}

.phi-logo:hover #phicode-logo {
    transform: rotate(180deg);
    pointer-events: none;
}

.nav-menu {
    margin-right: 6%;
}
.nav-menu > a {
    text-decoration: none;
    border-bottom: none;
    color: var(--color-text);
    font-family: "railway-bold";
    font-size: var(--font-size-menu);
    transition: color 0.3s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.nav-menu > a:hover {
    color: var(--color-button);
}

.nav-menu > a.active {
    color: var(--color-button);
    border-bottom: 1px solid var(--color-button);
    scale: 1.2;
}

.intro-part {
    width: 100%;
    height: 950px;
    padding-top: 130px;
    color: var(--color-text);
}

.intro-part > div {
    display: flex;
    flex-direction: column;
    gap: 22rem;
    justify-content: center;
    align-items: center;
}

.intro-head {
    font-family: "railway-bold";
    font-size: 46px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(135, 135, 135, 0.345);
}

.intro-desc {
    font-family: "railway-lite";
    font-size: 24px;
    text-align: center;
}

/*------------------------------- SECTION 2 CSS ---------------------------*/
.section-2 {
    box-sizing: border-box;
    background-color: blue;
    height: 100vh;
    background-image: url(/static/assets/backgrounds/section-2.png);
    background-repeat: no-repeat;
    background-size: 100% 101%;
    background-position: 100% 16%;
    position: relative;
    color: var(--color-text);
    font-family: "railway-m";
    scroll-snap-align: start;
    width: 100%;
    display: flex;
}

.intro-part-s {
    width: 100%;
    /* height: 100%; */
    padding-top: 1%;
    gap: 3rem;
    color: var(--color-text);
}

.intro-head-s {
    font-family: "railway-bold";
    font-size: 46px;
}

.intro-desc-s {
    font-family: "railway-lite";
    font-size: 20px;
}

.info-images {
    width: 100%;
    height: 100%;
    gap: 0px;
}
.left,
.right {
    flex: 1;
    gap: 0%;
    padding: 0 30px;
}

.left > div:first-child {
    font-size: 32px;
    width: 100%;
    text-align: center;
}
.right > div:first-child {
    font-size: 32px;
    width: 100%;
    text-align: center;
}

.image-section {
    width: 100%;
    height: 60%;
    display: inherit;
}
.phi-img {
    width: 40%;
    scale: 1;
    transition: scale 0.4s ease;
}

#web-img {
    width: 75.5%;
}

.phi-img:hover {
    scale: 1.05;
    animation: float 2s ease-in-out infinite;
}
.content-section {
    width: 100%;
    gap: 40px;
    display: flex;
    flex-direction: column;
}
.content-section > div{
    padding: 0 70px;
}

/*------------------------------------ SECTION 3 -------------------------------- */

.section-3 {
    height: 100vh;
    background-image: url(/static/assets/backgrounds/section-3.svg),
        url(/static/assets/backgrounds/group.png);
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 62.5% 103%;
    background-position: center, 100% 100%;
    background-blend-mode: screen;
    box-sizing: border-box;
    position: relative;
    color: var(--color-text);
    scroll-snap-align: start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.left-content {
    padding-left: 100px;
    max-width: 800px;
    width: 46%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 5%; */
}
.hbar {
    position: fixed;
    background-color: #1c142e;
    height: 120%;
    width: 10px;
    top: -94px;
    left: 1045px;
    transform: rotate(-28.8deg);
    transform-origin: center center;
}

.intro-part-s3 {
    width: 100%;
    /* height: 100%; */
    padding-top: 80px;
    color: var(--color-text);
}

.intro-head-s3 {
    font-family: "railway-bold";
    font-size: 46px;
    margin-bottom: 5rem;
}

.intro-desc-s3 {
    font-family: "railway-lite";
    font-size: 26px;
    margin-bottom: 0.6rem;
}

/* ---------------------------------- MODAL --------------------------------- */
.modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 50%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.219);
    color: var(--color-text);
    box-sizing: border-box;
    padding: 10px;
    font-family: "railway-m";
}

/* Show modal */
.modal-overlay.show {
    display: flex;
}
.modal-overlay.show {
    transform: scale(1);
}

.form-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 0;
}
.input-container {
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 0;
    font-family: "railway-lite";
    gap: 6%;
}
.input-container > input,
textarea {
    background: transparent;
    color: white;
    border: none;
    border-bottom: 1px solid rgb(255, 255, 255);
    outline: none;
    color: var(--color-text);
}
input {
    width: 40%;
    font-size: 18px;
    padding-left: 5px;
}
input:nth-child(3) {
    width: 86%;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.626); /* Change placeholder text color */
    opacity: 1; /* Optional: make sure it's fully visible */
}

.msg-container {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 0;
    font-family: "railway-lite";
    gap: 6%;
}
textarea {
    background-color: rgba(255, 255, 255, 0.131);
    border-radius: 5px;
    padding-left: 5px;
    height: 75%;
    width: 86%;
}
.req-btn {
    display: flex;
    justify-content: center;
}

/* ---------------------------------- FOOTER -------------------------------- */
footer {
    height: 30vh;
    box-sizing: border-box;
    font-family: "railway-m";
    margin-top: 20px;
}

.footer-container {
    display: flex;
    color: var(--color-text);
    justify-content: space-between;
    height: 100%;
    font-size: 12px;
}
.footer-container > div {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
}

.footer-container > div:nth-child(1) {
    align-items: start;
    padding-left: 5%;
}
.footer-container > div:nth-child(2) {
    align-items: center;
    justify-content: center;
    padding-right: 5%;
    width: 20%;
}

.logo-b {
    height: 100px;
}
.phi-logo-f {
    height: 160px;
    width: 160px;
    /* margin-left: 6%; */
    color: var(--color-text);
    font-family: "railway-bold";
    cursor: pointer;
    transition: color 0.4s ease;
}
.accounts {
    width: 30px;
    height: 30px;
}
