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

body {
    font-family: 'Instrument Serif', serif;
    background: #f5f5f0;
    overflow-x: hidden;
    min-height: 100vh;
    color: #1a1a1a;
}

/* === NAVIGATION TOGGLE BUTTON === */
.nav-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.nav-toggle:hover {
    background: rgba(26, 26, 26, 1);
    transform: scale(1.1);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #f5f5f0;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(15px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-15px);
}

/* === NAVIGATION MODAL === */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-modal.active {
    opacity: 1;
    visibility: visible;
}

.nav-modal-content {
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid rgba(245, 245, 240, 0.3);
    color: #f5f5f0;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-modal-close:hover {
    background: rgba(245, 245, 240, 0.1);
    border-color: #f5f5f0;
    transform: rotate(90deg);
}

.nav-modal-nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0 0 80px 0;
}

.nav-modal-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: rgba(245, 245, 240, 0.6);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-modal-link:hover {
    color: #f5f5f0;
    transform: translateX(20px);
}

.nav-modal-link.active {
    color: #f5f5f0;
}

.nav-modal-link-icon {
    display: inline-block;
    font-size: 1.5em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-modal-link:hover .nav-modal-link-icon {
    opacity: 1;
    transform: translateX(0);
}

.nav-modal-link.active .nav-modal-link-icon {
    opacity: 1;
    transform: translateX(0);
}

.nav-modal-footer {
    border-top: 1px solid rgba(245, 245, 240, 0.2);
    padding-top: 40px;
    opacity: 0.6;
}

.nav-modal-footer p {
    font-size: 0.9rem;
    color: #f5f5f0;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-modal-footer a {
    color: rgba(245, 245, 240, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-modal-footer a:hover {
    color: #f5f5f0;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #555;
    margin-top: 1rem;
    font-style: italic;
}

.circular-gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(65deg);
    animation: turntableRotate 60s linear infinite;
}

@keyframes turntableRotate {
    0% { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg); }
}

.image-card {
    position: absolute;
    width: 200px;
    height: 140px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.7));
    z-index: 1;
}

.image-card:hover {
    transform: scale(1.1) translateZ(30px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 100;
}

.category-label {
    position: absolute;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
    z-index: 20;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.category-label.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.category-label.hidden {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

@keyframes popInLabel {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes popOutLabel {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.4) rotate(15deg);
    }
}

.category-label.pop-in {
    animation: popInLabel 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.category-label.pop-out {
    animation: popOutLabel 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.category-label:hover {
    background: rgba(26, 26, 26, 1);
    transform: scale(1.1);
}

.category-label.hidden:hover {
    transform: scale(0.7);
}

.category-label sup {
    font-size: 0.6em;
    opacity: 0.7;
    margin-left: 2px;
}

#cat-retail { }
#cat-workplace { }
#cat-education { }
#cat-mixed { }
#cat-exhibition { }

/* Card positioning - turntable effect */
.image-card:nth-child(1) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(0deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(2) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(15deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(3) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(30deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(4) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(45deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(5) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(60deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(6) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(75deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(7) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(90deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(8) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(105deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(9) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(120deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(10) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(135deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(11) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(150deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(12) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(165deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(13) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(180deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(14) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(195deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(15) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(210deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(16) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(225deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(17) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(240deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(18) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(255deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(19) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(270deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(20) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(285deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(21) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(300deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(22) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(315deg) translateY(-450px) rotateX(270deg)!important;
}
.image-card:nth-child(23) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(330deg) translateY(-450px) rotateX(270deg) !important;
}
.image-card:nth-child(24) { 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateZ(345deg) translateY(-450px) rotateX(270deg) !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    z-index: 20;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #4a4a4a 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === FALL ANIMATION === */
.image-card {
    opacity: 0;
    animation: fallDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotateZ(var(--rotation)) translateY(-450px) rotateX(90deg) translateZ(-1000px) rotateY(180deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotateZ(var(--rotation)) translateY(-450px) rotateX(90deg) translateZ(0px) rotateY(0deg);
    }
}

.image-card:nth-child(1) { --rotation: 0deg; animation-delay: 0.1s; }
.image-card:nth-child(2) { --rotation: 15deg; animation-delay: 0.15s; }
.image-card:nth-child(3) { --rotation: 30deg; animation-delay: 0.2s; }
.image-card:nth-child(4) { --rotation: 45deg; animation-delay: 0.25s; }
.image-card:nth-child(5) { --rotation: 60deg; animation-delay: 0.3s; }
.image-card:nth-child(6) { --rotation: 75deg; animation-delay: 0.35s; }
.image-card:nth-child(7) { --rotation: 90deg; animation-delay: 0.4s; }
.image-card:nth-child(8) { --rotation: 105deg; animation-delay: 0.45s; }
.image-card:nth-child(9) { --rotation: 120deg; animation-delay: 0.5s; }
.image-card:nth-child(10) { --rotation: 135deg; animation-delay: 0.55s; }
.image-card:nth-child(11) { --rotation: 150deg; animation-delay: 0.6s; }
.image-card:nth-child(12) { --rotation: 165deg; animation-delay: 0.65s; }
.image-card:nth-child(13) { --rotation: 180deg; animation-delay: 0.7s; }
.image-card:nth-child(14) { --rotation: 195deg; animation-delay: 0.75s; }
.image-card:nth-child(15) { --rotation: 210deg; animation-delay: 0.8s; }
.image-card:nth-child(16) { --rotation: 225deg; animation-delay: 0.85s; }
.image-card:nth-child(17) { --rotation: 240deg; animation-delay: 0.9s; }
.image-card:nth-child(18) { --rotation: 255deg; animation-delay: 0.95s; }
.image-card:nth-child(19) { --rotation: 270deg; animation-delay: 1.0s; }
.image-card:nth-child(20) { --rotation: 285deg; animation-delay: 1.05s; }
.image-card:nth-child(21) { --rotation: 300deg; animation-delay: 1.1s; }
.image-card:nth-child(22) { --rotation: 315deg; animation-delay: 1.15s; }
.image-card:nth-child(23) { --rotation: 330deg; animation-delay: 1.2s; }
.image-card:nth-child(24) { --rotation: 345deg; animation-delay: 1.25s; }

/* === CONTENT SECTIONS === */
.content-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f0;
}

.section-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.section-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-content {
    max-width: 1400px;
    width: 100%;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #333;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin: 0 auto 80px;
    display: block;
    width: fit-content;
}

.cta-button:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Fade-in animation trigger */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grid layouts */
.section-grid {
    display: grid;
    gap: 12px;
    margin-top: 60px;
}

.section-grid.horizontal-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section-grid.masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 200px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item.wide {
    grid-column: span 2;
}

.grid-item.tall {
    grid-row: span 2;
}

/* Project showcase */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 60px;
}

.showcase-row {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.showcase-row:nth-child(2) {
    transform: translateX(50px);
}

.showcase-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.showcase-item {
    flex: 1;
    min-width: 150px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

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

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

/* Video container */
.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease;
}

.video-container.visible {
    opacity: 1;
    transform: scale(1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* === FOOTER === */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 5% 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 60px;
    filter: brightness(0) invert(1);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 5px 0;
}

.footer-column a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #808080;
    margin: 8px 0;
}

.footer-bottom a {
    color: #808080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .circular-gallery {
        width: 600px;
        height: 600px;
    }
    
    .image-card {
        width: 120px;
        height: 80px;
    }

    .category-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .content-section {
        padding: 80px 5%;
    }

    .section-grid {
        grid-template-columns: 1fr !important;
    }

    .grid-item.large,
    .grid-item.wide,
    .grid-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .showcase-row {
        flex-direction: column;
    }

    .showcase-item {
        min-width: 100%;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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