:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-border: #262626;
    --color-text: #ffffff;
    --color-muted: #737373;
    --color-accent: #c9a962;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.text-accent {
    color: var(--color-accent);
}

.bg-surface {
    background-color: var(--color-surface);
}

.border-subtle {
    border-color: var(--color-border);
}

.text-muted {
    color: var(--color-muted);
}

/* Geometric Background */
.geometric-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
}

.geometric-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 169, 98, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 98, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
}

.geometric-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border: 1px solid rgba(201, 169, 98, 0.15);
    background: rgba(201, 169, 98, 0.02);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -100px;
    transform: rotate(45deg);
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -50px;
    transform: rotate(30deg);
    animation: float 18s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 30%;
    transform: rotate(60deg);
    animation: float 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 98, 0.1);
    animation: pulse 8s ease-in-out infinite;
}

.line-reveal {
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-reveal.active {
    width: 100%;
}

.image-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal.active {
    clip-path: inset(0 0 0 0);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    transition: transform 0.7s ease;
}

.interior-card:hover .interior-overlay {
    opacity: 1;
}

.interior-card:hover img {
    transform: scale(1.05);
}

.interior-card img {
    transition: transform 0.7s ease;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: white;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Hero Typography */
.hero-slogan {
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.hero-slogan-line {
    display: block;
    overflow: hidden;
}

.hero-slogan-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slogan-word:nth-child(1) { animation-delay: 0.2s; }
.hero-slogan-word:nth-child(2) { animation-delay: 0.4s; }
.hero-slogan-word:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, -20px) rotate(50deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Masonry for Events */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Horizontal Scroll for Facades */
.horizontal-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2rem;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-item {
    scroll-snap-align: start;
    flex: 0 0 85vw;
    max-width: 600px;
}

@media (min-width: 768px) {
    .horizontal-item {
        flex: 0 0 45vw;
    }
}

/* Project Grid Animations */
.project-grid-item {
    opacity: 0;
    transform: translateY(50px);
}

.project-grid-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-title,
.interior-card:hover .interior-title {
    transform: translateX(10px);
}

.project-title,
.interior-title {
    transition: transform 0.3s ease;
}