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

:root {
    --orange: aqua;
    --orange-light: gold;
    --black: black;
    --dark: black;
    --dark2: black;
    --gray: gainsboro;
    --border: lightgray;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--black);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--orange);
    color: black;
}

a {
    color: inherit;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, maroon 0%, black 45%, black 100%);
    animation: introSequence 6s ease 0s forwards;
}

@keyframes introSequence {
    0% {
        visibility: visible;
        opacity: 0;
        pointer-events: auto;
    }
    8%, 88% {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    100% {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

.intro-grid {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: -100%;

    background:
        linear-gradient(
            color-mix(in srgb, orange 12%, transparent) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            color-mix(in srgb, orange 12%, transparent) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    transform:
        perspective(600px)
        rotateX(60deg);

    animation:
        gridMove 4s linear infinite;
}

.intro-glow {
    position: absolute;
    z-index: 1;
    pointer-events: none;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: var(orange);

    opacity: .25;

    filter: blur(130px);

    animation:
        introGlow 2.5s ease-in-out infinite alternate;
}

.intro-content {
    position: relative;
    z-index: 2;

    text-align: center;

    animation:
        introCamera 5.2s ease forwards;
}

.intro-small {
    color: gainsboro;

    font-size: 18px;

    letter-spacing: 9px;

    opacity: 0;

    animation:
        fadeDown .8s .15s forwards;
}

.intro-number {
    margin-top: 20px;

    font-size: clamp(150px, 27vw, 330px);

    line-height: .65;

    font-weight: 900;

    letter-spacing: -20px;

    color: transparent;

    -webkit-text-stroke: 2px white;

    text-shadow:
        0 0 30px color-mix(in srgb, aqua 25%, transparent);

    opacity: 0;

    transform: scale(1.4);

    filter: blur(15px);

    animation:
        numberReveal
        1.2s
        .35s
        cubic-bezier(.15, .8, .2, 1)
        forwards;
}

.intro-content h1 {
    margin-top: 35px;

    font-size: clamp(40px, 8vw, 100px);

    line-height: .85;

    font-weight: 900;

    letter-spacing: 8px;

    opacity: 0;

    transform: translateY(35px);

    filter: blur(10px);

    animation:
        titleReveal
        1s
        1.45s
        cubic-bezier(.15, .8, .2, 1)
        forwards;
}

.intro-line {
    width: 0;
    height: 2px;

    margin: 27px auto 22px;

    background: var(--orange);

    box-shadow:
        0 0 10px var(--orange),
        0 0 30px var(--orange),
        0 0 70px color-mix(in srgb, aqua 40%, transparent);

    animation:
        lineReveal .9s 2.25s ease forwards;
}

.intro-content h2 {
    font-size: clamp(25px, 5vw, 60px);

    letter-spacing: 7px;

    opacity: 0;

    transform: translateY(20px);

    animation:
        fadeUp .8s 2.45s forwards;
}

.intro-content h2 span {
    color: var(--orange);

    text-shadow:
        0 0 15px var(--orange),
        0 0 35px color-mix(in srgb, aqua 40%, transparent);
}

.intro-bottom {
    margin-top: 16px;

    color: gainsboro;

    font-size: 16px;

    letter-spacing: 6px;

    opacity: 0;

    animation:
        fadeUp .9s 2.9s forwards;
}

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background:
        color-mix(in srgb, black 80%, transparent);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid color-mix(in srgb, white 15%, transparent);
}

.logo {
    text-decoration: none;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: 2px;
}

.logo span {
    color: var(--orange);
}

nav {
    display: flex;

    gap: 30px;
}

nav a {
    position: relative;

    text-decoration: none;

    color: gainsboro;

    font-size: 16px;

    letter-spacing: 2px;

    transition: .3s;
}

nav a:hover {
    color: white;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--orange);

    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        150px 8%
        100px;

    overflow: hidden;

    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 850px;
}

.hero-label {
    color: var(--orange);

    font-size: 18px;

    letter-spacing: 5px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(60px, 9.5vw, 140px);

    line-height: .78;

    font-weight: 900;

    letter-spacing: -7px;
}

.hero h1 span {
    color: var(--orange);

    text-shadow:
        0 0 40px color-mix(in srgb, aqua 35%, transparent);
}

.hero-title {
    margin-top: 30px;

    font-size: clamp(26px, 3.6vw, 44px);

    font-weight: 900;

    line-height: 1;

    letter-spacing: -1px;
}

.hero-description {
    max-width: 620px;

    margin-top: 25px;

    color: gainsboro;

    font-size: 22px;

    line-height: 1.8;
}

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    margin-top: 35px;

    padding: 17px 25px;

    border: 1px solid lightgray;

    color: white;

    text-decoration: none;

    font-size: 17px;

    letter-spacing: 2px;

    transition: .35s;
}

.hero-button span {
    color: var(--orange);

    font-size: 24px;

    transition: .35s;
}

.hero-button:hover {
    background: var(--orange);

    color: black;

    border-color: var(--orange);

    transform: translateY(-5px);

    box-shadow:
        0 15px 40px
        color-mix(in srgb, aqua 35%, transparent);
}

.hero-button:hover span {
    color: black;

    transform:
        translate(5px,-5px);
}

.page-bg-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    pointer-events: none;
}

.page-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, black 55%, transparent);
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

.portfolio-section {
    position: relative;

    padding:
        130px 6%;

    background: transparent;
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 60px;
}

.section-label {
    color: var(--orange);

    font-size: 17px;

    letter-spacing: 4px;
}

.section-heading h2 {
    margin-top: 15px;

    font-size:
        clamp(45px, 6vw, 85px);

    line-height: .85;

    font-weight: 900;

    letter-spacing: -3px;
}

.section-heading h2 span {
    color: var(--orange);
}

.heading-description {
    max-width: 260px;

    color: lightgray;

    font-size: 18px;

    line-height: 1.7;
}

.members-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;
}

.member-card {
    position: relative;

    height: 570px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: black;

    text-decoration: none;

    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        border-color .3s,
        box-shadow .5s;
}

.member-card:hover {
    transform: translateY(-12px);

    border-color:
        aqua;

    box-shadow:
        0 25px 70px color-mix(in srgb, black 70%, transparent),
        0 0 35px color-mix(in srgb, aqua 25%, transparent);
}

.card-image {
    position: absolute;
    inset: 0;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        grayscale(100%)
        contrast(1.05);

    transform: scale(1.01);

    transition:
        transform .8s cubic-bezier(.2,.8,.2,1),
        filter .6s;
}

.member-card:hover img {
    transform: scale(1.12);

    filter:
        grayscale(0%)
        contrast(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            color-mix(in srgb, black 5%, transparent) 20%,
            color-mix(in srgb, black 25%, transparent) 45%,
            color-mix(in srgb, black 96%, transparent) 100%
        );
}

.card-number {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 5;

    color: var(--orange);

    font-size: 17px;

    letter-spacing: 3px;
}

.card-content {
    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 25px;

    z-index: 5;
}

.card-content p {
    color: var(--orange);

    font-size: 14px;

    letter-spacing: 3px;
}

.card-content h3 {
    margin: 10px 0;

    font-size: 36px;

    line-height: .85;

    font-weight: 900;

    letter-spacing: -1px;
}

.card-content span {
    display: block;

    color: white;

    font-size: 14px;

    letter-spacing: 1.5px;
}

.card-content b {
    display: inline-block;

    margin-top: 20px;

    color: white;

    font-size: 15px;

    letter-spacing: 2px;

    transition: .3s;
}

.member-card:hover .card-content b {
    color: var(--orange);

    transform:
        translateX(7px);
}

.profile {
    min-height: 100vh;

    padding-top: 75px;

    background: color-mix(in srgb, black 68%, transparent);

    border-top:
        1px solid black;
}

.profile-top {
    display: flex;

    align-items: center;

    gap: 40px;

    padding:
        80px 10%;

    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, aqua 22%, transparent),
            transparent
        );

    border-bottom:
        1px solid lightgray;
}

.profile-top img {
    width: 190px;
    height: 190px;

    object-fit: cover;

    border:
        1px solid lightgray;

    transition: .4s;
}

.profile-label {
    color: var(--orange);

    font-size: 17px;

    letter-spacing: 4px;

    margin-bottom: 15px;
}

.profile-top h2 {
    font-size:
        clamp(40px, 6vw, 75px);

    line-height: .85;

    letter-spacing: -4px;

    font-weight: 900;
}

.profile-top h2 span {
    color: var(--orange);
}

.profile-top > div > p:last-child {
    margin-top: 18px;

    color: gainsboro;

    font-size: 18px;

    letter-spacing: 3px;
}

.profile-body {
    padding:
        70px 10%;
}

.profile-columns {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 50px;
}

.profile-body h3 {
    margin-bottom: 20px;

    color: var(--orange);

    font-size: 18px;

    letter-spacing: 3px;
}

.profile-body p {
    color: gainsboro;

    font-size: 19px;

    line-height: 1.9;
}

.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skills span {
    padding:
        9px 13px;

    border:
        1px solid lightgray;

    color: white;

    font-size: 15px;

    letter-spacing: 1px;

    transition: .3s;
}

.skills span:hover {
    color: var(--orange);

    border-color: var(--orange);
}

.info-box {
    margin-top: 45px;

    padding-top: 35px;

    border-top:
        1px solid lightgray;
}

.info-box h4 {
    margin-bottom: 10px;

    color: white;

    font-size: 26px;
}

.career {
    margin-top: 50px;

    padding: 35px;

    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, aqua 25%, transparent),
            transparent
        );

    border-left:
        3px solid var(--orange);
}

.career h4 {
    margin-bottom: 10px;

    font-size: 30px;
}

.contact-box {
    margin-top: 50px;

    padding-top: 35px;

    border-top:
        1px solid lightgray;
}

.back-button {
    display: inline-block;

    margin-top: 45px;

    padding: 15px 22px;

    border:
        1px solid lightgray;

    text-decoration: none;

    color: white;

    font-size: 16px;

    letter-spacing: 2px;

    transition: .3s;
}

.back-button:hover {
    color: black;

    background: var(--orange);

    border-color: var(--orange);
}

.about-section,
.contact-section {
    min-height: 70vh;

    padding:
        140px 10%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: transparent;
}

.about-section h2,
.contact-section h2 {
    margin-top: 25px;

    font-size:
        clamp(50px, 8vw, 115px);

    line-height: .82;

    font-weight: 900;

    letter-spacing: -5px;
}

.about-section h2 span,
.contact-section h2 span {
    color: var(--orange);
}

.about-section > p:last-child,
.contact-section > p:last-child {
    max-width: 650px;

    margin-top: 35px;

    color: gainsboro;

    font-size: 20px;

    line-height: 1.9;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberReveal {
    from {
        opacity: 0;
        transform: scale(1.4);
        filter: blur(15px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes lineReveal {
    from {
        width: 0;
    }

    to {
        width: 220px;
    }
}

@keyframes gridMove {
    from {
        transform:
            perspective(600px)
            rotateX(60deg)
            translateY(0);
    }

    to {
        transform:
            perspective(600px)
            rotateX(60deg)
            translateY(50px);
    }
}

@keyframes introExit {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes introGlow {
    from {
        transform: scale(.8);
        opacity: .04;
    }

    to {
        transform: scale(1.2);
        opacity: .1;
    }
}

@keyframes introCamera {
    0% {
        transform: scale(.95);
    }

    100% {
        transform: scale(1);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {

    .members-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .member-card {
        height: 520px;
    }
}

@media (max-width: 700px) {

    header {
        height: 65px;

        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .hero {
        padding:
            130px 7%
            90px;
    }

    .hero h1 {
        font-size: 62px;

        letter-spacing: -4px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 12px;
    }

    .portfolio-section {
        padding:
            90px 5%
            100px;
    }

    .section-heading {
        display: block;
    }

    .heading-description {
        margin-top: 20px;
    }

    .members-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .member-card {
        height: 460px;
    }

    .profile-top {
        flex-direction: column;

        align-items: flex-start;

        padding:
            55px 7%;
    }

    .profile-top img {
        width: 140px;
        height: 140px;
    }

    .profile-body {
        padding:
            50px 7%;
    }

    .profile-columns {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about-section,
    .contact-section {
        padding:
            100px 7%;
    }

    .about-section h2,
    .contact-section h2 {
        font-size: 52px;

        letter-spacing: -3px;
    }
}


/* SMALL PHONE */

@media (max-width: 430px) {

    .intro-number {
        font-size: 170px;
    }

    .intro-content h1 {
        font-size: 40px;

        letter-spacing: 4px;
    }

    .intro-content h2 {
        font-size: 23px;

        letter-spacing: 4px;
    }

    .intro-bottom {
        font-size: 7px;

        letter-spacing: 3px;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .member-card {
        height: 520px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .profile-top h2 {
        font-size: 42px;
    }
}




@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== READABILITY OVER BACKGROUND VIDEO (named colors only) ===== */

h1, h2, h3, h4,
.hero-label, .hero-description, .hero-title,
.section-label, .heading-description,
.profile-label, .profile-body p, .profile-top > div > p:last-child,
.about-section p, .contact-section p,
.intro-small, .intro-bottom, .logo, nav a {
    text-shadow:
        0 2px 4px black,
        0 0 14px black,
        0 0 28px black;
}

.hero h1 span,
.section-heading h2 span,
.profile-top h2 span,
.about-section h2 span,
.contact-section h2 span,
.intro-content h1 span,
.logo span {
    color: aqua;
}

.hero-label,
.section-label,
.profile-label,
.profile-body h3 {
    color: gold;
}

.hero-description,
.heading-description,
.profile-body p,
.about-section > p:last-child,
.contact-section > p:last-child {
    color: white;
}

.hero-button {
    background: color-mix(in srgb, black 55%, transparent);
    border: 2px solid white;
    font-weight: 700;
}

.hero-button span { color: aqua; }

.hero-button:hover {
    background: aqua;
    color: black;
    border-color: aqua;
}

.hero-button:hover span { color: black; }

nav a { color: white; font-weight: 700; }
nav a:hover { color: aqua; }

.skills span {
    background: color-mix(in srgb, black 55%, transparent);
    color: white;
    border: 1px solid white;
}

.skills span:hover { color: black; background: aqua; border-color: aqua; }

.back-button {
    color: white;
    border: 2px solid white;
    background: color-mix(in srgb, black 55%, transparent);
}

.back-button:hover { color: black; background: aqua; border-color: aqua; }

.card-content p { color: gold; }
.card-content span { color: white; }
.card-content h3, .card-content b { text-shadow: 0 2px 6px black; }
.member-card:hover .card-content b { color: aqua; }

.hero h1 { line-height: .9; }

.intro-content h1 {
    letter-spacing: 6px;
    line-height: 1;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
}

.logo { white-space: nowrap; }

@media (max-width: 700px) {
    .logo { font-size: 22px; }
    .hero-description, .profile-body p { font-size: 18px; }
}

@media (max-width: 430px) {
    .intro-small { letter-spacing: 5px; }
    .intro-content h1 { font-size: 44px; }
}

.card-number {
    padding: 4px 10px;
    background: black;
    color: aqua;
    font-weight: 700;
}

/* ===== PORTFOLIO SECTION: kasya sa isang screen pagkapindot ng PORTFOLIO ===== */

#portfolio {
    scroll-margin-top: -80px;
}

@media (min-width: 1101px) {

    .portfolio-section {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .portfolio-section .section-heading {
        margin-bottom: 40px;
    }

    .portfolio-section .member-card {
        height: clamp(380px, 60vh, 700px);
    }
}

/* ===== HOME / HERO: kasya sa isang screen pagkapindot ng HOME ===== */

#home {
    scroll-margin-top: -80px;
}

@media (min-width: 1101px) {

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(60px, min(9.5vw, 15vh), 140px);
    }

    .hero-title {
        font-size: clamp(24px, min(3.6vw, 5vh), 44px);
        margin-top: 2.5vh;
    }

    .hero-description {
        font-size: clamp(18px, min(1.4vw, 2.6vh), 22px);
        margin-top: 2.5vh;
    }

    .hero-button {
        margin-top: 3.5vh;
    }
}
