﻿:root {
    --bg-dark: #0b120f;
    --bg-soft: #121a16;
    --color-primary: #F7F3EE;
    --color-secondary: #B0C5A5;
    --color-accent: #D97B3D;
    --color-accent-2: #2D5A27;
    --color-dark: #1F3B1F;
    --color-muted: #8B9B86;
    --color-glow: rgba(217, 123, 61, 0.35);
    --color-glow-2: rgba(45, 90, 39, 0.3);
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 100px;
    --radius: 22px;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    opacity: 1;
    transition: opacity 0.8s ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(217, 123, 61, 0.14), transparent 18%),
                radial-gradient(circle at bottom right, rgba(45, 90, 39, 0.16), transparent 22%);
    z-index: 0;
}

canvas#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(217, 123, 61, 0.7);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 90, 39, 0.85);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: calc(var(--spacing-sm) / 2) var(--spacing-sm);
    background: rgba(11, 18, 15, 0.55);
    backdrop-filter: blur(18px);
    z-index: 1010;
    border-bottom: 1px solid rgba(217, 123, 61, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
 }

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.4s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-md) / 1.5);
}

.nav-link {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-2);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(100px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    position: relative;
    background: linear-gradient(180deg, rgba(11, 18, 15, 0.88), rgba(11, 18, 15, 0.88)), url('../images/hero-bg.jpg') center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 35% 25%, rgba(217, 123, 61, 0.11), transparent 25%),
                radial-gradient(circle at 70% 70%, rgba(45, 90, 39, 0.11), transparent 28%),
                linear-gradient(180deg, rgba(3, 6, 4, 0.22), rgba(3, 6, 4, 0.44));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-intro {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: clamp(72px, 12vw, 140px);
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 0.95;
    color: transparent;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 45%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
}

.hero-title span {
    display: inline-block;
    transition: transform 0.45s ease, text-shadow 0.45s ease;
}

.hero-title:hover span:nth-child(odd) {
    transform: translate(-0.18em, -0.12em);
}

.hero-title:hover span:nth-child(even) {
    transform: translate(0.18em, 0.12em);
}

.hero-title:hover span {
    text-shadow: 0 0 30px rgba(217, 123, 61, 0.35), 0 0 22px rgba(45, 90, 39, 0.24);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--color-primary);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.hero-location {
    font-size: 14px;
    color: var(--color-secondary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shapes-container {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.shape {
    position: absolute;
    transform-style: preserve-3d;
    pointer-events: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.shape:hover {
    animation-duration: 4s !important;
    transform: scale(1.07);
    filter: drop-shadow(0 18px 45px rgba(217, 123, 61, 0.25));
}

.shape.cube {
    width: 52px;
    height: 52px;
    animation: rotateCubeEnhanced 18s infinite linear;
    filter: drop-shadow(0 0 24px rgba(45, 90, 39, 0.22));
}

.shape.cube::before,
.shape.cube::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid rgba(217, 123, 61, 0.8);
    background: linear-gradient(135deg, rgba(247, 243, 238, 0.9), rgba(217, 123, 61, 0.22));
    box-shadow: inset 0 0 24px rgba(217, 123, 61, 0.12), 0 0 32px rgba(45, 90, 39, 0.15);
}

.shape.cube::before {
    transform: translateZ(26px);
}

.shape.cube::after {
    transform: rotateY(90deg) translateZ(26px);
}

.shape.sphere {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(247, 243, 238, 0.95), rgba(217, 123, 61, 0.75));
    box-shadow: 0 16px 38px rgba(217, 123, 61, 0.24), inset -8px -8px 18px rgba(45, 90, 39, 0.18);
    animation: floatSphereEnhanced 5.8s ease-in-out infinite;
}

#sphere1 {
    left: -12%;
    top: 32%;
    animation-delay: 0s;
}

#sphere2 {
    right: -12%;
    top: 35%;
    animation-delay: 1.2s;
}

@keyframes rotateCubeEnhanced {
    from {
        transform: rotateX(25deg) rotateY(0deg) rotateZ(12deg);
    }
    to {
        transform: rotateX(25deg) rotateY(360deg) rotateZ(12deg);
    }
}

@keyframes floatSphereEnhanced {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-32px) scale(1.02);
    }
}

.section {
    padding: var(--spacing-xl) var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-media {
    display: flex;
    justify-content: flex-start;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-6px);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05) rotate(-1deg);
    filter: brightness(1.02);
    box-shadow: 0 24px 60px rgba(217, 123, 61, 0.2), 0 0 35px rgba(45, 90, 39, 0.18);
}

.about-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-shapes .shape {
    opacity: 0.9;
}

.about-copy {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: var(--spacing-lg);
    line-height: 1.05;
}

.section-text {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.9;
    color: var(--color-secondary);
    max-width: 820px;
    margin-bottom: var(--spacing-lg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.work-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    background: rgba(14, 20, 16, 0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform-style: preserve-3d;
}

.work-item:hover {
    border-color: rgba(217, 123, 61, 0.55);
    box-shadow: 0 32px 80px rgba(45, 90, 39, 0.25);
}

.work-item:hover .work-image {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.05);
}

.work-item:hover .work-title {
    transform: translateY(0);
    opacity: 1;
}

.work-image,
.collage-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
}

.work-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(180deg, rgba(3, 6, 4, 0.9), rgba(45, 90, 39, 0.55));
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0;
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.35s ease;
}

.featured-item {
    grid-column: 1 / span 2;
    min-height: 540px;
}

.collage-item {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.gallery-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    width: 100%;
    padding: var(--spacing-md);
    box-sizing: border-box;
}

.collage-card {
    border-radius: 20px;
    box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.18);
}

.collage-card.large {
    grid-column: 1 / -1;
    min-height: 220px;
}

.work-item:nth-child(1) { animation: fadeInUp 0.8s ease 0.1s both; }
.work-item:nth-child(2) { animation: fadeInUp 0.8s ease 0.16s both; }
.work-item:nth-child(3) { animation: fadeInUp 0.8s ease 0.22s both; }
.work-item:nth-child(4) { animation: fadeInUp 0.8s ease 0.28s both; }
.work-item:nth-child(5) { animation: fadeInUp 0.8s ease 0.34s both; }

.section-shapes {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 160px;
    height: 160px;
    opacity: 0.55;
}

.shape.small {
    width: 56px;
    height: 56px;
    animation: rotateShapeEnhanced 12s infinite linear;
}

.shape.tiny {
    width: 28px;
    height: 28px;
}

.shape.pyramid {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(135deg, rgba(217, 123, 61, 0.95), rgba(247, 243, 238, 0.85));
    border-radius: 4px;
}

@keyframes rotateShapeEnhanced {
    from {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

.contact {
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
}

.contact-content {
    margin-top: var(--spacing-lg);
}

.contact-text {
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.85;
}

.contact-link {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(217, 123, 61, 0.08);
    border-radius: 14px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 123, 61, 0.28), rgba(45, 90, 39, 0.2));
    z-index: -1;
    transition: left 0.35s ease;
}

.contact-link:hover::before {
    left: 0;
}

.contact-link:hover {
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(217, 123, 61, 0.18);
    letter-spacing: 0.16em;
}

.footer {
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-secondary);
    font-size: 14px;
    letter-spacing: 0.12em;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: calc(80px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    }
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-menu {
        gap: var(--spacing-md);
        font-size: 11px;
    }
    .hero-title {
        font-size: clamp(56px, 14vw, 96px);
    }
    .hero {
        background-attachment: scroll;
    }
    .shapes-container {
        display: none;
    }
    .featured-item {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .hero {
        padding-top: calc(90px + var(--spacing-lg));
    }
    .hero-title {
        font-size: clamp(48px, 16vw, 80px);
        letter-spacing: 0.16em;
    }
    .section-title {
        font-size: clamp(38px, 10vw, 58px);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-media {
        justify-content: center;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-item {
        aspect-ratio: auto;
    }
    .gallery-collage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .collage-card.large {
        min-height: 180px;
    }
    .contact-link {
        font-size: 18px;
    }
}
