@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #f7f6f2; /* Soft beige/off-white */
    --text-color: #2c2c2c;
    --accent-color: #6a6a6a;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Outfit', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    mix-blend-mode: difference; /* Gives a premium feel over images */
    color: var(--white); /* Start white, mix-blend handles the rest */
}

/* Fix mix-blend-mode for lighter backgrounds by applying a specific class if needed, or just keep it simple */
header.solid {
    mix-blend-mode: normal;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

nav a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Layout Utilities */
.container {
    padding: 10rem 6rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Specific Pages */

/* Hero */
.hero {
    height: 100vh;
    width: 100vw;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 8rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-info {
    opacity: 1;
}

/* Studio Section */
.studio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.studio-text h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.studio-text p {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.team-section {
    margin-top: 4rem;
}

.team-list {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.team-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}

.studio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.detail-block strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-block p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

.whatsapp-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--black);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.form-group {
    position: relative;
}

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 1rem 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--black);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background: transparent;
    border: 1px solid var(--black);
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
    transition: all 0.3s ease;
    align-self: flex-start;
}

button[type="submit"]:hover {
    background: var(--black);
    color: var(--white);
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    nav ul.active {
        display: flex;
    }
    
    header.menu-open {
        mix-blend-mode: normal !important;
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    header.menu-open nav a {
        color: var(--text-color);
    }

    .menu-toggle {
        display: block;
    }

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

    .studio-layout, .contact-layout {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 8rem 2rem 4rem;
    }

    footer {
        padding: 3rem 2rem;
    }
}
