/* ========== Global Styles ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body + gradient background */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
overflow-x: hidden;
background: linear-gradient(315deg, rgb(95, 41, 91) 3%,
rgb(43, 80, 117) 38%,
rgb(40, 99, 96) 68%,
rgb(97, 33, 33) 98%);
animation: gradient 15s ease infinite;
background-size: 400% 400%;
background-attachment: fixed;
color: white;
}

/* Gradient animation */
@keyframes gradient {
0% { background-position: 0% 0%; }
50% { background-position: 100% 100%; }
100% { background-position: 0% 0%; }
}

/* Wave background */
.wave-background {
position: fixed;
inset: 0;
overflow: hidden;
z-index: -1; /* behind all content */
}

.wave {
background: rgba(255,255,255,0.25);
border-radius: 1000% 1000% 0 0;
position: fixed;
width: 200%;
height: 25em;
bottom: 0;
left: 0;
transform: translate3d(0,0,0);
opacity: 0.8;
animation: wave 10s -3s linear infinite;
z-index: -1;
}

.wave:nth-of-type(2) {
bottom: -1.25em;
animation: wave 18s linear reverse infinite;
opacity: 0.8;
}

.wave:nth-of-type(3) {
bottom: -2.5em;
animation: wave 20s -1s reverse infinite;
opacity: 0.9;
}

@keyframes wave {
2% { transform: translateX(1); }
25% { transform: translateX(-25%); }
50% { transform: translateX(-50%); }
75% { transform: translateX(-25%); }
100% { transform: translateX(1); }
}

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

.logo {
    /* font-weight: bold; */
    letter-spacing: 0.3em;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.menu-line {
    width: 30px;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.menu-trigger:hover .menu-line {
    width: 50px;
}

/* ========== Fullscreen Menu ========== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-overlay.active {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 1.5rem 0;
    overflow: hidden;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.5);
}
.p {
    margin: 10.5rem 0;
}

/* ========== Hero Section ========== */
.hero {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
}

.masked-image {
    width: 300px;
    height: 500px;
    background-image: url('');
    background-size: cover;
    background-position: center;
    clip-path: ellipse(48% 50% at 50% 50%);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    font-weight: 300;
    position: absolute;
    z-index: 2;
    mix-blend-mode: difference;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
}

.cta-btn {
    position: absolute;
    bottom: 8%;
    border: 1px solid #fff;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    background: transparent;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s;
    cursor: pointer;
}

.cta-btn:hover {
    background: rgb(255, 255, 255);
    color: black;
}

/* ========== Side Labels ========== */
.side-label {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.side-label.left {
    left: 1%;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.side-label.right {
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
}

/* ========== Footer ========== */
footer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
    padding-bottom: 3rem;
}

/* ========== Circular Scroll Indicator ========== */
.scroll-indicator {
    position: absolute;
    right: 12%;
    top: 45%;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    animation: rotate 8s linear infinite;
}

.scroll-indicator::after {
    content: "↓";
    position: absolute;
    animation: bounce 1.2s infinite alternate;
    font-size: 1.2rem;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    from { transform: translateY(-3px); }
    to { transform: translateY(3px); }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero h1 {
    font-size: 2.2rem;
    }

    .masked-image {
    width: 220px;
    height: 380px;
    }

    header {
    padding: 1.5rem 1.5rem;
    flex-direction: row;          /* KEEP left/right */
    justify-content: space-between;
    }

    .hero h1 {
    font-size: 2.2rem;
    }

    .masked-image {
    width: 220px;
    height: 380px;
    }

    .scroll-indicator {
    display: none;
    }
}

/* ========== About Section ========== */
.about {
    padding: 12rem 3rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about h1 {
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.about-text {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* ========== Team Section ========== */
.team {
    padding: 6rem 3rem 8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team h2 {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: left;
}

.member-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #222;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.team-member span {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* ========== Footer ========== */
footer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
    padding-bottom: 3rem;
}

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

    .about h1 {
    font-size: 2.5rem;
    }

    .team h2 {
    font-size: 2rem;
    }

    .member-photo {
    height: 320px;
    }
}

/* ========== Page Intro ========== */
.page-intro {
    padding: 12rem 3rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-intro h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.page-intro p {
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

/* ========== Case Studies ========== */
.projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 8rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8rem;
}

.project {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #222;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-content h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.project-meta {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.project-btn {
display: inline-block;
margin-top: 1.5rem;
padding: 0.6rem 2rem;
border: 1px solid white;
color: white;
font-size: 0.8rem;
letter-spacing: 0.1em;
text-transform: uppercase;
text-decoration: none;
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
cursor: pointer;
}

.project-btn:hover {
background: white;
color: black;
transform: translateY(-2px);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .project {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    }

    .project:nth-child(even) {
    grid-template-columns: 1fr;
    }

    .project-image {
    height: 300px;
    }

    .page-intro h1 {
    font-size: 2.5rem;
    }

    header {
    padding: 1.5rem;
    }
}

/* ========== Contact Section (Editorial Style) ========== */
.contact {
min-height: 90vh;
padding: 10rem 3rem 6rem;
max-width: 900px;
margin: 0 auto;
}

.contact h2 {
font-size: 4rem;
font-weight: 100;
margin-bottom: 1.5rem;
letter-spacing: -0.03em;
}

.contact-lead {
max-width: 520px;
font-size: 1rem;
line-height: 1.6;
color: rgba(255,255,255,0.7);
margin-bottom: 4rem;
}

.contact-form {
max-width: 600px;
}

.form-row {
display: flex;
flex-direction: column;
margin-bottom: 2.5rem;
}

.form-row label {
font-size: 0.75rem;
letter-spacing: 0.2em;
text-transform: uppercase;
margin-bottom: 0.75rem;
color: rgba(255,255,255,0.6);
}

.form-row input,
.form-row textarea {
background: transparent;
border: none;
border-bottom: 1px solid rgba(255,255,255,0.3);
padding: 0.75rem 0;
font-size: 1rem;
color: white;
outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
color: rgba(255,255,255,0.4);
}

.form-row input:focus,
.form-row textarea:focus {
border-bottom-color: white;
}

.form-actions {
display: flex;
gap: 1.5rem;
margin-top: 3rem;
}

.btn {
background: none;
border: 1px solid white;
color: white;
padding: 0.75rem 2.5rem;
font-size: 0.75rem;
letter-spacing: 0.25em;
cursor: pointer;
transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
background: white;
color: black;
}

.btn-ghost {
border-color: rgba(255,255,255,0.4);
color: rgba(255,255,255,0.7);
}

.btn-ghost:hover {
background: rgba(255,255,255,0.1);
color: white;
}

.alt-contact {
margin-top: 5rem;
font-size: 0.9rem;
color: rgba(255,255,255,0.6);
}

.alt-contact a {
color: white;
text-decoration: none;
border-bottom: 1px solid rgba(255,255,255,0.4);
}

.alt-contact a:hover {
border-bottom-color: white;
}

/* Accessibility */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}

@media (max-width: 768px) {
    header.hide {
        transform: translateY(-100%);
    }
}
