:root {
    --bg-color: #fdfdfd;
    --text-color: #111111;
    --text-muted: #555555;
    --accent-color: #a38c6b; /* Muted gold/sand */
    --border-color: #e5e5e5;
    
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-nav: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: Georgia, 'Times New Roman', serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: auto !important;
    -webkit-user-select: auto !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: auto;
    -webkit-user-select: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: inherit;
}

header:not(.scrolled) .nav-links a {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header.scrolled .nav-links a {
    color: #111111 !important;
    text-shadow: none;
}

header .nav-links a:hover {
    color: var(--accent-color) !important;
}

.nav-links a.language-switch {
    padding: 0.45rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    line-height: 1;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    height: 60vh !important;
    min-height: 60vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0 !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
    z-index: 1;
    pointer-events: none;
}

.hero.hero--soft::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.06) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    position: relative;
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 5rem);
    margin-bottom: var(--spacing-md);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.hero-content h1,
.hero-content p,
.hero .section-subtitle,
.hero h1,
.hero p {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
}

.hero-content .btn {
    position: relative;
    z-index: 2;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.hero .section-subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
}

.hero h1,
.hero .hero-title {
    font-size: clamp(2.6rem, 5vw, 5rem) !important;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero p {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero > img,
.hero > div > img,
.hero .hero-image-bg,
.hero .hero-image-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* Portfolio Grid */
.portfolio-grid {
    column-count: 2;
    column-gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .portfolio-grid {
        column-count: 1;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

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

.portfolio-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-info h3 {
    transform: translateY(0);
}

.portfolio-info p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
}

.portfolio-item:hover .portfolio-info p {
    transform: translateY(0);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.process-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.process-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.footer-col a {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--text-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-color);
    color: var(--bg-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid var(--text-color);
}

.btn:hover {
    background: transparent;
    color: var(--text-color);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .process-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero::before {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.34)),
            linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
    }
    .hero.hero--soft::before {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08)),
            linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.16));
    }
    .hero {
        height: 56vh !important;
        min-height: 56vh !important;
    }
    .hero-image-bg { width: 100%; opacity: 0.2; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add hamburger menu later */
    .portfolio-grid { grid-template-columns: 1fr; }
    .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: var(--spacing-lg) 0; }
    .hero {
        height: 50vh !important;
        min-height: 50vh !important;
    }
    .hero p {
        font-size: 1.05rem;
    }
}
