/* ===========================================
   relativity.studio - Evolved-Minimal Nostalgia
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #3C2F1E;
    background-color: #F5EDD8;
    overflow-x: hidden;
    position: relative;
}

/* --- Bokeh Background Layer --- */
#bokeh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,105,20,0.15), transparent);
    animation: bokehPulse 6s ease-in-out infinite;
}

.bokeh-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.bokeh-2 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 15%;
    background: radial-gradient(circle, rgba(168,181,150,0.12), transparent);
    animation-delay: -1.5s;
}

.bokeh-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -3s;
}

.bokeh-4 {
    width: 150px;
    height: 150px;
    top: 55%;
    left: 5%;
    background: radial-gradient(circle, rgba(200,121,65,0.1), transparent);
    animation-delay: -0.8s;
}

.bokeh-5 {
    width: 250px;
    height: 250px;
    top: 60%;
    right: 8%;
    animation-delay: -2.2s;
}

.bokeh-6 {
    width: 180px;
    height: 180px;
    top: 80%;
    left: 30%;
    background: radial-gradient(circle, rgba(168,181,150,0.1), transparent);
    animation-delay: -4s;
}

.bokeh-7 {
    width: 350px;
    height: 350px;
    top: -5%;
    right: 30%;
    animation-delay: -1s;
}

.bokeh-8 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 70%;
    background: radial-gradient(circle, rgba(200,121,65,0.08), transparent);
    animation-delay: -2.8s;
}

.bokeh-9 {
    width: 220px;
    height: 220px;
    top: 75%;
    right: 40%;
    animation-delay: -3.5s;
}

.bokeh-10 {
    width: 280px;
    height: 280px;
    top: 20%;
    left: 60%;
    background: radial-gradient(circle, rgba(168,181,150,0.08), transparent);
    animation-delay: -0.5s;
}

.bokeh-11 {
    width: 160px;
    height: 160px;
    top: 45%;
    left: 25%;
    animation-delay: -4.5s;
}

.bokeh-12 {
    width: 320px;
    height: 320px;
    top: 90%;
    right: 10%;
    background: radial-gradient(circle, rgba(200,121,65,0.06), transparent);
    animation-delay: -2s;
}

@keyframes bokehPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Override transform for bokeh-3 which uses translateX */
.bokeh-3 {
    animation: bokehPulseCenter 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes bokehPulseCenter {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

/* --- Minimal Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(245,237,216,0.9), rgba(245,237,216,0));
}

.nav-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #3C2F1E;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* --- Content Wrapper --- */
#content {
    position: relative;
    z-index: 1;
}

/* --- Sections --- */
.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 10vh 1.5rem;
    position: relative;
}

/* --- Geometric Markers --- */
.geometric-marker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.geo-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #8B6914;
    opacity: 0.5;
    animation: geoAssemble 4s ease-in-out infinite;
}

.geo-circle-small {
    width: 8px;
    height: 8px;
    border-color: #A8B596;
    animation-delay: -1s;
}

.geo-circle-tiny {
    width: 6px;
    height: 6px;
    border-color: #C87941;
}

.geo-square {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1.5px solid #A8B596;
    opacity: 0.5;
    animation: geoAssemble 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes geoAssemble {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    25% {
        opacity: 0.7;
        transform: translateY(-2px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(0);
    }
    75% {
        opacity: 0.8;
        transform: translateY(2px);
    }
}

/* --- Hero Section --- */
#hero {
    padding-top: 20vh;
    padding-bottom: 15vh;
    text-align: left;
}

.display-heading {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #3C2F1E;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.accent-text {
    color: #8B6914;
}

.hero-tagline {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3C2F1E;
    opacity: 0.75;
    max-width: 520px;
}

/* --- Section Headings --- */
.section-heading {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #3C2F1E;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* --- Cards --- */
.card {
    background-color: #FFF8E8;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 20px rgba(60,47,30,0.04);
}

.card p {
    color: #3C2F1E;
    opacity: 0.85;
}

/* --- Concept Grid --- */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.concept-item {
    background-color: #FFF8E8;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(60,47,30,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(60,47,30,0.08);
}

.concept-icon {
    margin-bottom: 1rem;
}

.concept-item h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #3C2F1E;
    margin-bottom: 0.75rem;
}

.concept-item p {
    font-size: 0.92rem;
    color: #3C2F1E;
    opacity: 0.8;
    line-height: 1.7;
}

/* --- Studio Grid --- */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.studio-card {
    background-color: #FFF8E8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 20px rgba(60,47,30,0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(60,47,30,0.08);
}

.studio-card-marker {
    width: 24px;
    height: 3px;
    background-color: #C87941;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.studio-card h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #3C2F1E;
    margin-bottom: 0.75rem;
}

.studio-card p {
    font-size: 0.9rem;
    color: #3C2F1E;
    opacity: 0.8;
    line-height: 1.7;
}

/* --- Contact Section --- */
.section-contact {
    text-align: center;
}

.contact-text {
    font-size: 1.05rem;
    color: #3C2F1E;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #8B6914;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(139,105,20,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.contact-link:hover {
    border-color: #8B6914;
    opacity: 0.8;
}

/* --- Footer --- */
#site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
}

.footer-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3C2F1E;
    opacity: 0.35;
}

#site-footer .geometric-marker {
    justify-content: center;
    margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
    }

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

    #main-nav {
        gap: 1.5rem;
        padding: 1rem 1rem;
    }

    .nav-link {
        font-size: 0.65rem;
    }

    .section {
        padding: 8vh 1.25rem;
    }

    #hero {
        padding-top: 15vh;
    }
}

@media (max-width: 480px) {
    #main-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .card {
        padding: 1.5rem;
    }

    .concept-item {
        padding: 1.5rem;
    }
}
