:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --secondary-text: #888888;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.6s;
}

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

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Image set via CSS */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slight dim for text readability */
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Work Section */
.work-section {
    padding: 8rem 4rem;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
}

.section-header .line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-item {
    cursor: pointer;
}

.work-image-container {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-item:hover .work-image {
    transform: scale(1.05);
}

.work-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.work-info p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-info p a {
    color: var(--text-color);
    text-decoration: none;
}

.work-info p a:hover {
    text-decoration: underline;
}

/* Studio Section */
.studio-section {
    padding: 10rem 4rem;
    display: flex;
    justify-content: center;
    background-color: #0a0a0a;
    background-image: url('assets/images/studio-bg.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
}

.studio-content {
    max-width: 700px;
    text-align: left;
    margin: 0 auto;
}

.studio-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.studio-content p {
    font-size: 1.1rem;
    color: #aeaeae;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.studio-content .intro {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 6rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #050505;
    background-image: url('assets/images/texture-bg.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-links {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    /* Ensure contents are centered */
}

.wechat-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    position: absolute;
    bottom: 140%;
    /* Position above the text */
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.25);
    transform-origin: center bottom;
    width: auto;
    height: auto;
    max-width: none;
    background: white;
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    pointer-events: none;
}

.wechat-container:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(0.25);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.copyright {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section,
    .work-section,
    .studio-section,
    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}