/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #EDFFB0;
    --accent-color: #EDFFB0;
    --text-light: #f0f0f0;
    --text-dark: #0a0a0a;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    border: none;
    padding: 2rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-120%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 60px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #ffffff;
    font-family: Arial, sans-serif;
    text-transform: lowercase;
}

.rotating-s {
    display: inline-block;
    animation: flipS 6s ease-in-out infinite;
}

@keyframes flipS {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(-1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-menu a {
    position: relative;
    font-weight: 300;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: white;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #EDFFB0;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #EDFFB0;
    transform: scale(1.05);
}

.nav-menu a:hover::after {
    width: 100%;
}

.navbar.scrolled {
    background: transparent;
    padding: 2rem 0;
    box-shadow: none;
}

.navbar.scrolled .nav-menu {
    opacity: 0;
    pointer-events: none;
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: url('images/hero-background.png') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 0 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(40px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-intro {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.8rem;
    animation: slideUp 0.8s ease-out 0s backwards;
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: white;
    animation: slideDown 0.8s ease-out 0.1s backwards;
    font-family: Arial, sans-serif;
    line-height: 1.1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-role {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: slideUp 0.8s ease-out 0.2s backwards;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.6);
    animation: slideUp 0.8s ease-out 0.3s backwards;
    font-weight: 300;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: none;
}

/* ==================== About Section ==================== */
.about {
    padding: 120px 60px;
    background: white;
}

.section-title {
    position: absolute;
    left: 60px;
    top: 24px;
    transform: none;
    z-index: 40;
    font-size: 1.2rem;
    margin: 0;
    text-align: left;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title-portfolio {
    color: #ffffff;
}

.section-title-about {
    color: #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    min-height: 100vh;
    padding: 0 60px;
}

.about-text {
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: #333;
    font-weight: 300;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.about-image img {
    width: 50vw;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* ==================== Portfolio Section ==================== */
.portfolio {
    padding: 0;
    background: #000000;
}

.portfolio .container,
.about .container {
    max-width: 100%;
    padding: 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
}


.portfolio-item {
    position: relative;
    overflow: visible;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 1;
    min-height: 100vh;
    width: 100%;
    background: #000000;
}

.portfolio-item[data-index="3"] {
    min-height: 100vh;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    border: none;
    margin-bottom: 0;
    background: #000000;
}

.portfolio-item[data-index="3"] .portfolio-image {
    height: 100vh;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.project-track {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: transform 0.4s ease;
}

.project-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100vh;
    background: #000000;
    position: relative;
}

.project-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-slide > iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-poster {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: #000000;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.vimeo-embed,
.hover-vimeo {
    width: 100%;
    height: 100%;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
}

.mosaic-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.mosaic-vimeo {
    width: 100%;
    height: 100%;
    border: 0;
}

.mosaic-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 0;
}

.quad-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
}

.portfolio-item[data-index="3"] .project-slider,
.portfolio-item[data-index="3"] .project-track,
.portfolio-item[data-index="3"] .project-slide {
    height: 100vh;
}

.quad-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.quad-item img,
.quad-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

.split-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.split-item .project-info {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.portfolio-item[data-index="3"] .split-item .slide-click-surface {
    pointer-events: auto;
    z-index: 20;
}

.portfolio-item[data-index="3"] .split-grid {
    position: absolute;
    inset: 0;
}

.split-item img,
.split-item iframe,
.split-vimeo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

.triptych {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
}

.triptych-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.triptych-item img,
.triptych-item video,
.triptych-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(10,10,10,0.7);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 40;
}

.project-prev { left: 16px; }
.project-next { right: 16px; }

/* Project info button */
.portfolio-image { position: relative; }
.project-info {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
}

.portfolio-quad-item .project-info {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
}

.portfolio-item[data-index="3"] .project-slider,
.portfolio-item[data-index="3"] .project-track,
.portfolio-item[data-index="3"] .project-slide {
    height: 100vh;
}

.portfolio-quad-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    width: 100%;
    height: 100%;
    gap: 0;
}

.quad-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

.portfolio-quad-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    border: 0;
}

.portfolio-quad-item iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    display: block;
    transform: translate(-50%, -50%) scale(1.08);
    transform-origin: center;
    pointer-events: none;
}


.project-info.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.slide-click-surface {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 5;
    pointer-events: none;
    cursor: pointer;
}

.slide-click-surface.is-active {
    pointer-events: auto;
}

.video-audio {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border: none;
    background: rgba(10,10,10,0.8);
    color: white;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 35;
}

.video-audio i {
    font-size: 1rem;
}

/* Fullscreen carousel modal */
.carousel-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.carousel-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.carousel-close {
    position: fixed;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    z-index: 2010;
    cursor: pointer;
}
.carousel-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.2rem;
    z-index: 2010;
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
}
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* Project info popup inside modal */
.project-popup {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    padding: 18px 20px 16px;
    max-width: 600px;
    width: min(520px, calc(100% - 60px));
    z-index: 2020;
    display: none;
    border-radius: 4px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.project-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 28px;
    margin-bottom: 6px;
}
.project-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.project-popup h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
}

.popup-date {
    position: static;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.55);
    margin: 0;
    line-height: 1.2;
}

#popupDescription {
    max-width: 100%;
    padding-right: 28px;
    word-break: break-word;
    margin-top: 6px;
}

#popupDescription p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-image {
    border-color: #EDFFB0;
}

.portfolio-info {
    position: absolute;
    left: 60px;
    bottom: 40px;
    z-index: 10;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    display: none;
}

.portfolio-category {
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    color: #EDFFB0;
    display: none;
}

.portfolio-overlay {
    display: none;
}


/* ==================== Footer ==================== */
.footer {
    background: white;
    color: var(--text-dark);
    padding: 4rem 60px 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: center;
}

.footer-section-left {
    text-align: left;
}

.footer-section-center p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-section-right {
    text-align: right;
}

.footer-section ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-section ul li {
    margin-bottom: 0;
}

.footer-section a {
    color: rgba(10, 10, 10, 0.6);
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-section a:hover {
    color: #b500ff;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(237, 255, 176, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #EDFFB0;
    transform: translateY(-4px);
}

.social-links a:hover::before {
    width: 50px;
    height: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: rgba(10, 10, 10, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 0 30px;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -0.5px;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .about {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 1.1rem;
        top: 16px;
        left: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 30px;
    }

    .about-themes {
        grid-template-columns: 1fr;
    }

    .portfolio {
        padding: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }




    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section-left,
    .footer-section-center,
    .footer-section-right {
        text-align: center;
    }

    .footer-section-center p {
        white-space: normal;
    }

    .footer-section ul {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer {
        padding: 3rem 30px 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-intro {
        font-size: 0.85rem;
    }

    .hero-role {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .about,
    .portfolio {
        padding: 0;
    }

    .about-content {
        padding: 0 20px;
    }

    .section-title {
        font-size: 1rem;
        top: 12px;
        left: 20px;
    }

    .theme-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 20px 1rem;
    }

    .footer-section h3 {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

a, button {
    cursor: pointer;
}
