@import url('https://fonts.googleapis.com/css2?family=Anton:wght@400&display=swap');

:root {
    --electric-border-color: #4488dd;
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
    --color-neutral-900: oklch(0.185 0 0);
    
    /* Background gradient colors */
    --hue1: 255;
    --hue2: 222;
}

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

body {
    font-family: 'Anton', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 800px;
    background-image: url(https://assets.codepen.io/13471/abstract-light.jpg), linear-gradient(to right in oklab, hsl(var(--hue2) 80% 60%), hsl(var(--hue1) 80% 60%));
    background-size: cover;
    background-position: center center;
    background-blend-mode: hard-light;
    z-index: 0;
    pointer-events: none;
    will-change: background-image;
    transform: translateZ(0);
}


.cursor-light {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: left 0.1s ease, top 0.1s ease;
    mix-blend-mode: screen;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 100;
    background-color: transparent;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    margin-right: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    width: 80px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg) skewX(-5deg);
}

.logo:hover img {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.2) contrast(1.1);
}

.navigation {
    display: flex;
    gap: 2rem;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-20deg);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navigation a:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navigation a:hover::before {
    left: 100%;
}

.navigation a:hover::after {
    width: 100%;
}

.navigation a.active {
    font-weight: 600;
}

.navigation a.active::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-button {
    position: relative;
}

.social-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    color: #000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.social-button a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.social-button a svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.container {
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 0;
    text-align: center;
    perspective: 2000px;
    position: relative;
    overflow-x: hidden;
    z-index: 1;
}


h1 {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: 10rem;
    color: #fff;
    font-family: 'Anton', sans-serif;
    position: relative;
    z-index: 1;
}

.scene {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    left: 50%;
    transform: translateX(-50%);
    transform-style: preserve-3d;
    top: 400px;
    z-index: 5;
}

.card {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    will-change: transform;
}

.card[data-link] {
    cursor: default;
}

body.animation-complete .card[data-link] {
    cursor: pointer;
}

body.animation-complete .card:hover {
    transform: translateY(-15px) translateZ(50px) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.animation-complete .card.flip-1:hover {
    transform: rotateY(180deg) translateY(-15px) translateZ(50px) !important;
}

body.animation-complete .card.flip-2:hover {
    transform: rotateY(360deg) scale(0.8) translateY(-15px) translateZ(50px) !important;
}

body.animation-complete .card.split:hover {
    transform: rotateY(360deg) scale(0.8) translateZ(250px) translateY(-15px) !important;
}

.card.flip-1 {
    transform: rotateY(180deg);
}

.card.flip-2 {
    transform: rotateY(360deg) scale(0.8);
}

.card.split {
    transform: rotateY(360deg) scale(0.8) translateZ(200px);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

body.animation-complete .card:hover .card-front,
body.animation-complete .card:hover .card-back {
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.3);
}

.card-back {
    transform: rotateY(180deg);
}

.card-front img,
.card-back img {
    width: 100%;
    height: calc(100% - 60px);
    object-fit: cover;
    border-radius: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
}

.year {
    font-weight: bold;
}

.credit {
    color: #666;
}

.split-cards {
    position: absolute;
    width: 2200px;
    height: 100%;
    transform-style: preserve-3d;
    opacity: 0;
    visibility: hidden;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.split-cards.show {
    opacity: 1;
    visibility: visible;
}

.split-cards.hide {
    opacity: 0;
}

.split-card {
    position: relative;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) scale(0.8);
    opacity: 0;
    will-change: transform, opacity;
    overflow: hidden;
    transform-style: preserve-3d;
}

.split-card[data-link] {
    cursor: default;
}

body.animation-complete .split-card[data-link] {
    cursor: pointer;
}

.split-card.hovering {
    transition: all 0.1s ease-out !important;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.3);
}

.split-card img {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: cover;
    border-radius: 15px;
}

/* Initial positions */
.split-cards .split-card:nth-child(1),
.split-cards .split-card:nth-child(2) {
    transform: translateX(-100vw) scale(0.8);
}

.split-cards .split-card:nth-child(3),
.split-cards .split-card:nth-child(4) {
    transform: translateX(100vw) scale(0.8);
}

/* Show positions */
.split-cards.show .split-card {
    transform: translateX(0) scale(0.8);
    opacity: 1;
}

/* Hide position */
.split-cards.hide .split-card {
    opacity: 0;
}

/* Projects Section */
.projects-section {
    margin-top: 35rem;
    padding: 4rem 0;
}

/* Effects Section */
.effects-section {
    margin-top: 4rem;
    padding: 4rem 0;
    text-align: center;
}

.effects-title {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    font-family: 'Anton', sans-serif;
    margin-bottom: 3rem;
}

.effects-image-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    gap: 0;
    position: relative;
    height: 500px;
}

.image-piece {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex: 1;
    height: 100%;
    perspective: 1000px;
}

.piece-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.piece-front,
.piece-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.piece-front img {
    position: absolute;
    width: 400%;
    height: 100%;
    object-fit: contain;
    top: 0;
}

.piece-back img {
    position: absolute;
    width: 400%;
    height: 100%;
    object-fit: cover;
    top: 0;
}

.piece-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.piece-back img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    left: auto;
    top: auto;
}

/* Position each piece to show correct part of image */
.piece-1 .piece-front,
.piece-1 .piece-back {
    border-radius: 20px 0 0 20px;
}

.piece-1 .piece-front img {
    left: 0;
}

.piece-2 .piece-front img {
    left: -100%;
}

.piece-3 .piece-front img {
    left: -200%;
}

.piece-4 .piece-front,
.piece-4 .piece-back {
    border-radius: 0 20px 20px 0;
}

.piece-4 .piece-front img {
    left: -300%;
}

/* Hover effect - pieces move apart and flip */
.effects-image-container:hover .piece-1 {
    transform: translateX(-20px);
}

.effects-image-container:hover .piece-1 .piece-inner {
    transform: rotateY(180deg);
}

.effects-image-container:hover .piece-2 {
    transform: translateX(-7px);
}

.effects-image-container:hover .piece-2 .piece-inner {
    transform: rotateY(180deg);
}

.effects-image-container:hover .piece-3 {
    transform: translateX(7px);
}

.effects-image-container:hover .piece-3 .piece-inner {
    transform: rotateY(180deg);
}

.effects-image-container:hover .piece-4 {
    transform: translateX(20px);
}

.effects-image-container:hover .piece-4 .piece-inner {
    transform: rotateY(180deg);
}

.projects-title {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    font-family: 'Anton', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
}


.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #4488dd;
    box-shadow: 0 10px 40px rgba(68, 136, 221, 0.4);
}


.card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.project-card h3 {
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.project-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


/* Hidden Text Section */
/* Footer Navigation Section */
.footer-nav-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    margin-top: 8rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-nav-btn {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.15em;
    padding: 1.5rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 400px;
    text-align: center;
}

.footer-nav-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Color Controls Footer */
/* Color Controls Sidebar */
.color-controls-sidebar {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

/* Disco Icon */
.disco-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.disco-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.disco-icon:hover {
    transform: scale(1.1) rotate(15deg);
}

.disco-icon.active {
    animation: disco-colors 2s linear infinite;
}

@keyframes disco-colors {
    0% { color: #ff0080; filter: drop-shadow(0 0 10px #ff0080); }
    25% { color: #40e0d0; filter: drop-shadow(0 0 10px #40e0d0); }
    50% { color: #ff8c00; filter: drop-shadow(0 0 10px #ff8c00); }
    75% { color: #00ff00; filter: drop-shadow(0 0 10px #00ff00); }
    100% { color: #ff0080; filter: drop-shadow(0 0 10px #ff0080); }
}

/* Vertical Slider Containers */
.vertical-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.vertical-slider-container label {
    font-family: 'Anton', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

/* Vertical Range Slider */
.vertical-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 120px;
    background: linear-gradient(to bottom, 
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.vertical-slider::-webkit-slider-runnable-track {
    width: 8px;
    border-radius: 10px;
    background: transparent;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 2px white;
    transition: transform 0.2s ease;
    border: 2px solid white;
}

.vertical-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.vertical-slider::-moz-range-track {
    width: 8px;
    border-radius: 10px;
    background: transparent;
}

.vertical-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 2px white;
    transition: transform 0.2s ease;
    border: 2px solid white;
}

.vertical-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* Individual slider colors */
#hue1::-webkit-slider-thumb {
    background: hsl(var(--hue1), 100%, 50%);
}

#hue1::-moz-range-thumb {
    background: hsl(var(--hue1), 100%, 50%);
}

#hue2::-webkit-slider-thumb {
    background: hsl(var(--hue2), 100%, 50%);
}

#hue2::-moz-range-thumb {
    background: hsl(var(--hue2), 100%, 50%);
} 