:root {
    --header-font: 'Soul Gaze BC', sans-serif;
    --content-font: 'Cassio BC', sans-serif;
    --background-color: #f0f2f5;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--content-font);
    position: relative;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.page {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.line {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #000000;
    z-index: 5;
    opacity: 0.6;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
}

.main-header.hidden {
    transform: translateY(-100%);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-container h1 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
    letter-spacing: 2px;
    display: flex;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    font-family: var(--header-font);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-start {
    width: 24px;
    opacity: 1;
    margin-right: 8px;
    transform: translateX(0);
}

.nav-icon-end {
    width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-10px);
    overflow: hidden;
}

.nav-link:hover .nav-icon-start {
    width: 0;
    opacity: 0;
    margin-right: 0;
    transform: translateX(10px);
}

.nav-link:hover .nav-icon-end {
    width: 24px;
    opacity: 1;
    margin-left: 8px;
    transform: translateX(0);
}

.logo-container h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.2s;
}

.main-header:not(.hidden) .logo-container h1 span {
    animation: textDrop 0.4s ease forwards;
}

.main-header:not(.hidden) .logo-container h1 span:nth-child(1) {
    animation-delay: 0.05s;
}

.main-header:not(.hidden) .logo-container h1 span:nth-child(2) {
    animation-delay: 0.1s;
}

.main-header:not(.hidden) .logo-container h1 span:nth-child(3) {
    animation-delay: 0.15s;
}

.main-header:not(.hidden) .logo-container h1 span:nth-child(4) {
    animation-delay: 0.2s;
}

.main-header:not(.hidden) .logo-container h1 span:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes textDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main {
    width: 100%;
    overflow: hidden;
    max-height: 800px;
}

.background {
    position: relative;
    width: 120%;
    height: 1000px;
    left: -100px;
    top: -20px;
    background-image: url('../media/hero_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-20px, 15px) scale(1.02);
    }

    66% {
        transform: translate(15px, -20px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1.02);
    }
}

.transparency-container {
    position: relative;
    width: 1600px;
    height: 1600px;
    background: hsla(0, 0%, 100%, .2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: -10%;
    z-index: 1;
    pointer-events: none;
}

.container-1 {
    transform: rotate(-10deg);
    top: -1499px;
    right: 100px;
    height: 600px;
    animation: containerSlide1 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.container-2 {
    transform: rotate(-10deg);
    top: -1499px;
    right: 30px;
    height: 800px;
    animation: containerSlide2 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.16s;
}

@keyframes containerSlide1 {
    0% {
        top: -1499px;
    }

    100% {
        top: -1580px;
    }
}

@keyframes containerSlide2 {
    0% {
        top: -1499px;
    }

    100% {
        top: -1430px;
    }
}

.welcomer {
    position: relative;
    font-size: 2.4rem;
    width: 600px;
    z-index: 3;
    top: -899px;
    left: 2px;
    transform: rotate(-10deg);
    font-family: var(--header-font);
    text-transform: uppercase;
    opacity: 0;
    animation: welcomerEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.6s;
}

@keyframes welcomerEntrance {
    0% {
        opacity: 0;
        transform: rotate(-10deg) translateX(100px);
        filter: hue-rotate(0deg);
    }

    30% {
        opacity: 0.5;
        filter: hue-rotate(90deg);
        color: #00ffff;
    }

    60% {
        filter: hue-rotate(180deg);
        color: #ff0040;
    }

    100% {
        opacity: 1;
        transform: rotate(-10deg) translateX(0);
        filter: hue-rotate(0deg);
        color: inherit;
    }
}

.welcomer-text {
    color: #1a1a1a;
    letter-spacing: 2px;
    margin: 0;
}

.glitch-word {
    display: inline-block;
    position: relative;
    margin-right: 0.3em;
    transition: opacity 0.3s, transform 0.3s;
}

.glitch-word.glitch-out {
    animation: glitchOut 0.6s ease forwards;
}

@keyframes glitchOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    10% {
        opacity: 1;
        transform: translateX(-5px) skewX(5deg);
        color: #ff0040;
    }

    20% {
        opacity: 1;
        transform: translateX(5px) skewX(-5deg);
        color: #00ffff;
    }

    30% {
        opacity: 0.8;
        transform: translateX(-3px);
        clip-path: inset(20% 0 40% 0);
    }

    40% {
        opacity: 0.6;
        transform: translateX(3px);
        clip-path: inset(60% 0 10% 0);
        color: #ff0040;
    }

    50% {
        opacity: 0.4;
        transform: translateX(-2px) skewX(2deg);
    }

    60% {
        opacity: 0.2;
        clip-path: inset(10% 0 70% 0);
        color: #00ffff;
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
        clip-path: inset(0);
    }
}

.glitch-word.glitch-in {
    animation: glitchIn 0.6s ease forwards;
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    10% {
        opacity: 0.2;
        clip-path: inset(70% 0 10% 0);
        color: #00ffff;
    }

    20% {
        opacity: 0.4;
        transform: translateX(3px) skewX(-2deg);
    }

    30% {
        opacity: 0.6;
        clip-path: inset(10% 0 60% 0);
        color: #ff0040;
    }

    40% {
        opacity: 0.8;
        transform: translateX(-3px);
        clip-path: inset(40% 0 20% 0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px) skewX(5deg);
        color: #00ffff;
    }

    60% {
        opacity: 1;
        transform: translateX(-5px) skewX(-5deg);
        color: #ff0040;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0);
        color: #1a1a1a;
    }
}

.glitch-word.distortion-out {
    animation: distortionOut 0.8s ease forwards;
}

@keyframes distortionOut {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }

    20% {
        opacity: 0.9;
        filter: blur(2px);
        transform: scale(1.02) skewX(2deg);
        color: #ff0040;
    }

    40% {
        opacity: 0.7;
        filter: blur(4px);
        transform: scale(0.98) skewX(-3deg);
        color: #00ffff;
    }

    60% {
        opacity: 0.4;
        filter: blur(6px);
        transform: scale(1.05) rotate(1deg);
    }

    80% {
        opacity: 0.2;
        filter: blur(8px);
        transform: scale(0.95) rotate(-1deg);
        color: #ff0040;
    }

    100% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.8);
    }
}

.glitch-word.slide-in-left {
    animation: slideInLeft 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
        color: #00ffff;
    }

    50% {
        opacity: 0.7;
        color: #ff0040;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        color: #1a1a1a;
    }
}

.glitch-word.slide-in-right {
    animation: slideInRight 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
        color: #ff0040;
    }

    50% {
        opacity: 0.7;
        color: #00ffff;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        color: #1a1a1a;
    }
}

.glitch-word.hidden {
    opacity: 0;
    pointer-events: none;
}

.second {
    position: relative;
    width: 100%;
    height: 250px;
    z-index: 3;
    top: -250px;
    display: flex;
    justify-content: right;
    align-items: right;
    background-color: var(--background-color);
}

.cardone {
    position: relative;
    width: 380px;
    height: 340px;
    z-index: 3;
    top: -245px;
    right: 20px;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.1);
    background-color: var(--background-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-align: left;
    margin: 0;
    font-family: var(--header-font);
}

.card-line {
    width: 100%;
    height: 1px;
    background-color: #1a1a1a;
    opacity: 0.3;
}

.card-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
    margin: 0;
    font-family: var(--content-font);
}

.third {
    position: relative;
    width: 100%;
    z-index: 3;
    display: flex;
    height: 1px;
    background-color: var(--background-color);
}

.cardtwo {
    position: relative;
    text-align: left;
    width: 47vw;
    max-width: 70%;
    color: #1a1a1a;
    z-index: 5;
    top: -500px;
    padding: 2rem;
}

.quote-main {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-sub {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: #4a4a4a;
    font-family: var(--content-font);
    margin: 0;
}

.approach-wrapper {
    width: 100%;
    height: 415px;
    position: relative;
    top: -100px;
    z-index: 4;
}

.approach-container {
    position: relative;
    width: 69vw;
    max-width: 1120px;
    text-align: left;
    left: 214px;
    top: -540px;
    background-color: #e8eaed;
    border: 1px solid #d0d3d8;
    border-radius: 8px;
    padding: 2rem 2rem 8rem;
}

.approach-header {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 1.8rem;
    font-family: var(--header-font);
}

.approach-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 800px;
}

.approach-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
    font-family: var(--content-font);
}

.approach-image {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 350px;
    top: -100px;
    left: -25px;
    height: auto;
    object-fit: contain;
}

.a-cone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
}

.a-m {
    width: 1px;
    height: auto;
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
}

.mission {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--background-color);
    top: -150px;
    z-index: 5;
}

.mission-header {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: var(--header-font);
}

.mission-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 900px;
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
    font-family: var(--content-font);
    text-align: justify;
}

.border {
    position: relative;
    top: -225px;
    left: 0;
    max-width: 985px;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
}

.left-border {
    position: relative;
    top: -95px;
    left: -75px;
    width: 400px;
    height: 100%;
    z-index: 0;
}

.right-border {
    position: relative;
    top: -10px;
    right: -75px;
    width: 400px;
    height: 100%;
    z-index: 0;
}

.projects-section {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding-top: 3rem;
    padding-left: 2rem;
    padding-bottom: 3rem;
    background-color: var(--background-color);
    top: -350px;
    z-index: 5;
}

.projects-headline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    font-family: var(--header-font);
}

.projects-subheadline {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin: 0 0 2rem 0;
    font-family: var(--content-font);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    transition: grid-template-rows 0.6s ease;
}

.projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    border-radius: 8px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.projects-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.view-projects-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background-color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-projects-btn:hover {
    background-color: transparent;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
}

.view-projects-btn:active {
    transform: translateY(-1px);
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.15);
}

.project-card-main {
    position: relative;
    z-index: 5;
}

.project-card-stacked {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateX(-100%);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.6s;
}

.project-card-stacked:nth-child(2) {
    transform: scale(0.97) translateX(-100%);
}

.project-card-stacked:nth-child(3) {
    transform: scale(0.94) translateX(-100%);
}

.projects-grid.expanded .project-card-stacked {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s;
}

.projects-grid.expanded .project-card-stacked:nth-child(2) {
    transition-delay: 0.1s;
}

.projects-grid.expanded .project-card-stacked:nth-child(3) {
    transition-delay: 0.2s;
}

.project-card {
    position: relative;
    background-color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.project-card:hover,
.project-card:focus {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.15);
}

.project-card:active {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #e8eaed;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: auto;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0 0 1rem 0;
    font-family: var(--content-font);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-version {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: var(--content-font);
    background-color: #e8eaed;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.project-date {
    font-size: 0.85rem;
    color: #6a6a6a;
    font-family: var(--content-font);
}

.sit-a {
    position: relative;
    top: 104px;
    left: 0;
    width: 200px;
    height: 100%;
    z-index: 6;
    transform: rotate(3deg);
}

.footer {
    position: relative;
    width: 100%;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: #000000;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    gap: 1rem;
    flex-direction: row-reverse;
}

.footer-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    top: 15px;
    text-align: left;
}

.footer-info .line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.5);
}

.footer-legal-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: var(--content-font);
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-brand {
    margin-bottom: 1rem;
}

.slogan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    right: 60px;
    padding: 1rem;
    text-align: center;
}

.footer-logo-img {
    height: 140px;
    width: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    position: relative;
    bottom: 25px;
}

.brand-name {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
    color: #2c7a7b;
    text-transform: uppercase;
}

.brand-slogan {
    font-family: 'Cassio BC', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: #4fd1c5;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-copyright {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #4a4a4a;
    font-family: var(--content-font);
    margin: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.placeholder {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    top: 280px;
    width: 100%;
}

.placeholder-text {
    position: relative;
    top: -15px;
}

.kitsune {
    width: 100px;
}

.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.project-popup.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.popup-close:hover {
    color: #1a1a1a;
}

.popup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.8rem 0;
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-description {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    font-family: var(--content-font);
}

.popup-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-family: var(--header-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.popup-link:hover {
    background-color: transparent;
    color: #1a1a1a;
}


.social-container {
    margin-top: 1.5rem;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    align-self: auto;
    padding-top: 0;
}

.social-header {
    font-family: var(--header-font);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: #888;
    font-weight: 700;
}

.social-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-family: var(--content-font);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-item:hover {
    color: #1a1a1a;
    transform: translateX(3px);
}

.social-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}