:root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --fg: #fafafa;
    --fg-muted: #888888;
    --accent: #c9a962;
    --border: #2a2a2a;
    --card: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Film grain overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Cinematic reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero cinematic lines */
.cinematic-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    height: 1px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-line.active {
    width: 100%;
}

/* Work card hover */
.work-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.work-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.work-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover img {
    transform: scale(1.08);
}

/* Button styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Category tabs */
.category-tab {
    position: relative;
    transition: color 0.3s ease;
}

.category-tab::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-tab:hover::after,
.category-tab.active::after {
    width: 100%;
}

.category-tab.active {
    color: var(--accent);
}

/* Language toggle */
.lang-toggle {
    position: relative;
    background: var(--border);
    border-radius: 4px;
    padding: 2px;
}

.lang-toggle button {
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.lang-toggle button.active {
    color: var(--bg);
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-toggle[data-lang="en"] .lang-slider {
    transform: translateX(100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-muted);
}

/* Focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Modal */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: translateY(40px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Floating elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .floating {
        animation: none;
    }
}

/* Award card */
.award-card {
    transition: border-color 0.3s ease, background 0.3s ease;
}

.award-card:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
}