@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');

/* RESET */
::-moz-selection {
    background: var(--dark-blue);
    color: #fff;
}
::selection {
    background: var(--dark-blue);
    color: #fff;
}
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Oxygen", sans-serif;
}
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*:focus {
    outline: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
::-webkit-scrollbar {
    width: .5vw;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: var(--light-blue);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-color: var(--light-blue) #fff;
    scrollbar-width: thin;
}
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--background-color);
}
body.no-scroll,
html.no-scroll{
    overflow: hidden;
}
img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
a {
    text-decoration: none;
    display: inline-block;
    color: inherit;
    cursor: pointer;
}
button {
    cursor: pointer;
    outline: none;
    border: none;
    font-family: inherit;
}
button[disabled] {
    cursor: default;
}
p{
    color: var(--txt-color);
}
a{
    color: var(--txt-color);
}
ul,
ol {
    list-style: none;
}
input,
textarea {
    font-family: inherit;
    resize: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* UTILITIES */
:root {
    --white-color: #fff;
    --txt-color: #2C2C2C;
    --light-blue: #85979B;
    --dark-blue: #223035;
    --background-color: #EFEFEF;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.container {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: 179rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.container-right {
    padding-left: calc((100vw - 160rem) / 2);
    position: relative;
}
.container-left {
    padding-right: calc((100vw - 160rem) / 2);
    position: relative;
}
@media only screen and (max-width: 1730px) {
    .container-right {
        padding-left: 3rem;
    }
    .container-left {
        padding-right: 3rem;
    }
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(4.5rem) scale(0.97);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease-out-expo),
        transform 0.9s var(--ease-out-expo),
        filter 0.9s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Project content — scale 1.2→1 + fade in */
.projects-grid .projects-card-img.reveal,
.projects-grid .projects-card-text.reveal {
    opacity: 0;
    transform: scale(1.2);
    filter: none;
    transition: none;
    transform-origin: center center;
}
.projects-grid .projects-card-img.reveal.is-visible,
.projects-grid .projects-card-text.reveal.is-visible {
    animation: cardReveal 0.9s var(--ease-out-expo) both;
    animation-delay: var(--delay, 0s);
}
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    animation: navDrop 1s var(--ease-out-expo) both;
}
@keyframes navDrop {
    from {
        opacity: 0;
        transform: translateY(-2.4rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-container{
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0rem;
}
.nav-logo img {
    display: block;
    transition: transform 0.45s var(--ease-spring);
}
.nav-logo:hover img {
    transform: rotate(-6deg) scale(1.06);
}
.nav-links ul{
    display: flex;
    align-items: center;
    gap: 2.6rem;
}
.nav-links ul li a{
    font-size: 1.6rem;
    line-height: 2.6rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 1px;
    background: var(--dark-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out-expo);
}
.nav-links ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-section{
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.hero-container{
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-end;
    padding-top: 20rem;
    position: relative;
    z-index: 1;
    padding-bottom: 8rem;
}
.hero-title {
    font-size: 25.4rem;
    line-height: 1.2;
    font-weight: 700;
}
.hero-line {
    display: block;
    overflow: hidden;
}
.hero-word {
    display: inline-block;
    transform: translateY(110%);
    animation: wordRise 1.15s var(--ease-out-expo) forwards;
}
.hero-line:nth-child(2) .hero-word {
    animation-delay: 0.18s;
}
@keyframes wordRise {
    to {
        transform: translateY(0);
    }
}
.hero-text {
    font-size: 1.6rem;
    line-height: 2.6rem;
    max-width: 54rem;
    width: 100%;
    opacity: 0;
    transform: translateY(2.4rem);
    animation: fadeUp 1s var(--ease-out-expo) 0.55s forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-graphic{
    --parallax-y: 0px;
    position: absolute;
    top: 0;
    right: 0;
    max-width: 55%;
    pointer-events: none;
    will-change: transform;
    animation: graphicIn 1.4s var(--ease-out-expo) 0.2s both, graphicFloat 6s ease-in-out 1.6s infinite;
}
.hero-graphic img{
    display: block;
    width: 100%;
    height: auto;
}
@keyframes graphicIn {
    from {
        opacity: 0;
        transform: translate(8%, calc(var(--parallax-y) - 6%)) scale(1.08) rotate(4deg);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: translate(0, var(--parallax-y)) scale(1) rotate(0deg);
        filter: blur(0);
    }
}
@keyframes graphicFloat {
    0%, 100% {
        transform: translateY(var(--parallax-y)) rotate(0deg);
    }
    50% {
        transform: translateY(calc(var(--parallax-y) + 1.6rem)) rotate(-1.5deg);
    }
}
.swiper-slide h3{
    font-size: 2rem;
    line-height: 2.6rem;
    color: var(--white-color);
    font-weight: 400;
    margin-top: 1.6rem;
}
.projects-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.projects-card{
    width: 100%;
    height: 66.5rem;
    padding: 9rem 10rem 13rem 10rem;
    border-top: 1px solid var(--txt-color);
    border-right: 1px solid var(--txt-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.45s ease;
}
.projects-grid .projects-card:nth-child(3n){
    border-right: none;
}
.projects-card-img{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 5rem;
    height: 100%;
}
.projects-card-media{
    max-width: 100%;
    overflow: hidden;
    position: relative;
}
.projects-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease-out-expo);
    pointer-events: none;
}
.projects-card:hover .projects-card-media::after {
    transform: translateX(120%);
}
.projects-card-media img{
    max-width: 100%;
    width: 100%;
    display: block;
    transition: transform 0.85s var(--ease-out-expo);
}
.projects-card:hover .projects-card-media img {
    transform: scale(1.08);
}
.projects-card-img h2{
    font-size: 2rem;
    line-height: 2.6rem;
    color: var(--txt-color);
    font-weight: 400;
    transition: transform 0.45s var(--ease-out-expo), letter-spacing 0.45s ease;
}
.projects-card:hover .projects-card-img h2 {
    transform: translateX(0.6rem);
    letter-spacing: 0.04em;
}
.projects-card-text{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 1rem;
}
.projects-card-text h2{
    font-size: 4.6rem;
    line-height: 5.4rem;
    font-weight: normal;
    color: var(--txt-color);
    transition: transform 0.55s var(--ease-out-expo);
}
.projects-card:hover .projects-card-text h2 {
    transform: translateY(-0.6rem);
}
.projects-card-text h2 span{
    color: var(--light-blue);
    display: inline;
    background: linear-gradient(90deg, var(--light-blue), #b7c6c9, var(--light-blue));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.8s ease;
}
.projects-card:hover .projects-card-text h2 span {
    -webkit-text-fill-color: transparent;
    background-position: 100% 0;
}
.projects-card-text p{
    color: var(--white-color);
    font-size: 1.6rem;
    line-height: 2.4rem;
    transition: opacity 0.4s ease, transform 0.45s var(--ease-out-expo);
}
.projects-card:hover .projects-card-text p {
    transform: translateY(-0.4rem);
}
.projects-card.lightblue{
    background-color: #D5DEDE;
}
.projects-card.darkblue{
    background-color: var(--dark-blue);
}
.projects-card.white{
    background-color: var(--white-color);
}
.projects-card.lightblue h2{
    color: var(--txt-color);
}
.projects-card.lightblue p{
    color: var(--txt-color);
}
.projects-card.darkblue h2{
    color: var(--white-color);
}
.projects-card.darkblue p{
    color: var(--white-color);
}
.projects-card.white h2{
    color: var(--txt-color);
}
.projects-card.white p{
    color: var(--txt-color);
}

.apps-section{
    background-color: var(--dark-blue);
    overflow: hidden;
}
.apps-container{
    padding: 11rem 0rem;
    display: flex;
    gap: 6rem;
}
.apps-container-left{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex: 0 0 42rem;
    max-width: 42rem;
    align-self: stretch;
    justify-content: space-between;
    padding-top: 3.4rem;
    padding-bottom: 1.2rem;
}
.apps-container-left h2{
    font-size: 4.6rem;
    line-height: 5.4rem;
    font-weight: normal;
    color: var(--white-color);
}
.apps-container-left p{
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--white-color);
    max-width: 42rem;
}
.apps-container-right{
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.apps-swiper{
    overflow: visible;
    width: 100%;
}
.apps-swiper .swiper-slide{
    height: auto;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease;
}
.apps-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-next + .swiper-slide) {
    opacity: 0.75;
}
.apps-card{
    width: 100%;
    overflow: hidden;
    transition: transform 0.55s var(--ease-spring);
}
.apps-card:hover {
    transform: translateY(-1rem) scale(1.02);
}
.apps-card img{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s var(--ease-out-expo);
    aspect-ratio: 4 / 3;
}
.apps-card:hover img {
    transform: scale(1.05);
}

footer{
    padding-top: 16rem;
    padding-bottom: 1.6rem;
    position: relative;
    overflow: hidden;
}
.footer-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.footer-title{
    font-size: 12rem;
    line-height: 1.2;
    color: var(--light-blue);
    margin-bottom: 6.4rem;
    position: relative;
    z-index: 1;
    text-align: center;
}
.footer-links{
    display: flex;
    gap: 6rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 12rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.footer-links a{
    font-size: 2.2rem;
    color: var(--txt-color);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.35s var(--ease-spring);
}
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: var(--dark-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out-expo);
}
.footer-links a:hover {
    color: var(--dark-blue);
    transform: translateY(-0.3rem);
}
.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.footer-container span{
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    color: var(--light-blue);
}
.footer-graphic{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    width: min(90vw, 90rem);
    pointer-events: none;
    animation: footerPulse 8s ease-in-out infinite;
}
.footer-graphic img{
    display: block;
    width: 100%;
    height: auto;
}
@keyframes footerPulse {
    0%, 100% {
        opacity: 0.85;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.04);
    }
}

/* ========== RESPONSIVE ========== */
@media only screen and (max-width: 1400px) {
    .hero-title {
        font-size: 18rem;
    }
    .hero-container {
        padding-top: 16rem;
        padding-bottom: 6rem;
    }
    .projects-card {
        height: 56rem;
        padding: 6rem 5rem 8rem 5rem;
    }
    .projects-card-text h2 {
        font-size: 3.6rem;
        line-height: 4.4rem;
    }
    .apps-container-left {
        flex: 0 0 34rem;
        max-width: 34rem;
    }
    .apps-container-left h2 {
        font-size: 3.6rem;
        line-height: 4.4rem;
    }
    .footer-title {
        font-size: 8rem;
    }
}

@media only screen and (max-width: 1200px) {
    .hero-section {
        min-height: auto;
    }
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 14rem;
        gap: 3rem;
    }
    .hero-title {
        font-size: 14rem;
    }
    .hero-graphic {
        max-width: 48%;
        opacity: 0.9;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid .projects-card:nth-child(3n) {
        border-right: 1px solid var(--txt-color);
    }
    .projects-grid .projects-card:nth-child(2n) {
        border-right: none;
    }
    .projects-card {
        height: 52rem;
        padding: 5rem 4rem 7rem 4rem;
    }
    .projects-card-img {
        padding-top: 3rem;
    }
    .apps-container {
        flex-direction: column;
        gap: 4rem;
        padding: 8rem 0;
    }
    .apps-container-left {
        flex: none;
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        gap: 2rem;
    }
    .footer-title {
        font-size: 6.4rem;
        margin-bottom: 4rem;
    }
    .footer-links {
        gap: 3.2rem;
        margin-bottom: 8rem;
    }
}

@media only screen and (max-width: 992px) {
    .hero-title {
        font-size: 11rem;
    }
    .hero-graphic {
        max-width: 42%;
        top: 4rem;
    }
    .projects-card-text h2 {
        font-size: 3rem;
        line-height: 3.6rem;
    }
    .footer-title {
        font-size: 5rem;
    }
    .footer-links a {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .container-right {
        padding-left: 2rem;
    }
    .nav-container {
        padding: 1.6rem 0;
    }
    .nav-logo img {
        max-width: 12rem;
        height: auto;
    }
    .hero-container {
        padding-top: 12rem;
        padding-bottom: 4rem;
    }
    .hero-title {
        font-size: 8.4rem;
    }
    .hero-text {
        font-size: 1.5rem;
        line-height: 2.4rem;
    }
    .hero-text br {
        display: none;
    }
    .hero-graphic {
        position: relative;
        max-width: 70%;
        margin: 0 0 0 auto;
        top: auto;
        right: auto;
        animation: graphicIn 1.2s var(--ease-out-expo) 0.2s both;
    }
    .hero-section {
        flex-direction: column;
        align-items: stretch;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid .projects-card,
    .projects-grid .projects-card:nth-child(2n),
    .projects-grid .projects-card:nth-child(3n) {
        border-right: none;
    }
    .projects-card {
        height: auto;
        min-height: 42rem;
        padding: 4rem 2.4rem 5rem 2.4rem;
    }
    .projects-card-img {
        padding-top: 2rem;
    }
    .projects-card-text h2 {
        font-size: 2.8rem;
        line-height: 3.4rem;
    }
    .projects-card-text h2 br {
        display: none;
    }
    .apps-container {
        padding: 6rem 0;
        gap: 3rem;
    }
    .apps-container-left h2 {
        font-size: 3rem;
        line-height: 3.6rem;
    }
    .apps-container-left h2 br {
        display: none;
    }
    footer {
        padding-top: 8rem;
    }
    .footer-title {
        font-size: 3.6rem;
        margin-bottom: 3rem;
        line-height: 1.15;
    }
    .footer-links {
        flex-direction: column;
        gap: 1.6rem;
        margin-bottom: 5rem;
    }
    .footer-links a {
        font-size: 1.6rem;
    }
    .footer-graphic {
        width: 120%;
        opacity: 0.7;
    }
}

@media only screen and (max-width: 480px) {
    .hero-title {
        font-size: 6.2rem;
    }
    .hero-container {
        padding-top: 10rem;
    }
    .projects-card {
        min-height: 36rem;
        padding: 3.2rem 2rem 4rem 2rem;
    }
    .projects-card-text h2 {
        font-size: 2.4rem;
        line-height: 3rem;
    }
    .projects-card-img h2 {
        font-size: 1.8rem;
    }
    .apps-container-left h2 {
        font-size: 2.6rem;
        line-height: 3.2rem;
    }
    .footer-title {
        font-size: 2.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
    .projects-grid .projects-card-img.reveal,
    .projects-grid .projects-card-text.reveal {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
    .hero-word,
    .hero-text {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
