/* ============================================
   MODELS SOCIETY - MAIN STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0B0B0D;
    --bg-secondary: #141419;
    --accent: #D4A23F;
    --text-primary: #F4F4F5;
    --text-secondary: #B8B8C0;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(11, 11, 13, 0.8), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.body-text {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
}

.micro-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.scene-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    position: absolute;
    top: 8vh;
    left: 4vw;
    z-index: 10;
}

.vertical-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    position: absolute;
    right: 2vw;
    top: 50%;
    transform-origin: center;
    transform: translateY(-50%) rotate(180deg);
    z-index: 10;
    opacity: 0.9;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.vertical-right {
    right: auto;
    left: 2vw;
    transform: translateY(-50%) rotate(0deg);
}

.coordinates {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 162, 63, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(244, 244, 245, 0.25);
}

.btn-secondary:hover {
    background: rgba(244, 244, 245, 0.05);
    border-color: rgba(244, 244, 245, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.gold-rule {
    width: 64px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.75rem;
}

.white-rule {
    width: 220px;
    height: 1px;
    background: rgba(244, 244, 245, 0.25);
    margin-top: 2rem;
}

/* ============================================
   SECTIONS - BASE
   ============================================ */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.section-hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: contrast(1.05) saturate(0.95);
}

.hero-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 52vw;
    height: 100vh;
    background: rgba(20, 20, 25, 0.92);
    clip-path: polygon(0 0, 85% 0, 70% 100%, 0 100%);
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 0 8vw;
    max-width: 500px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text-primary);
    margin: 2rem 0 1.5rem;
}

.hero-headline .line {
    display: block;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 380px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   SECTION 2 & 4 & 6 & 8: SPLIT SECTIONS
   ============================================ */
.section-split {
    display: flex;
    height: 100vh;
}

.split-image {
    position: relative;
    width: 55vw;
    height: 100%;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}

.split-panel {
    width: 45vw;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    padding: 0 5vw;
    border-left: 1px solid rgba(244, 244, 245, 0.06);
}

.split-content {
    max-width: 400px;
}

.split-content .section-title {
    margin-bottom: 1.5rem;
}

.split-content .body-text {
    margin-bottom: 2rem;
}

/* Reverse split (text left, image right) */
.section-split-reverse {
    flex-direction: row-reverse;
}

.section-split-reverse .split-panel {
    border-left: none;
    border-right: 1px solid rgba(244, 244, 245, 0.06);
}

/* ============================================
   SECTION 3 & 5 & 7: FULL BLEED SECTIONS
   ============================================ */
.section-full {
    height: 100vh;
    position: relative;
}

.full-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.full-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}

/* Bottom Panel */
.bottom-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 22vh;
    background: rgba(20, 20, 25, 0.9);
    z-index: 2;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(244, 244, 245, 0.06);
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 6vw;
    gap: 3rem;
}

.bottom-content .section-title {
    flex-shrink: 0;
}

.bottom-content .body-text {
    max-width: 400px;
}

.bottom-content .btn {
    flex-shrink: 0;
}

.bottom-content .coordinates {
    position: absolute;
    right: 6vw;
    bottom: 3vh;
}

/* Bottom Right Panel */
.bottom-right {
    left: auto;
    right: 0;
    width: 55vw;
}

.bottom-content-right {
    padding: 0 5vw;
}

.bottom-content-right .section-title {
    margin-bottom: 0.75rem;
}

.bottom-content-right .body-text {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* Top Panel */
.top-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 46vw;
    height: 34vh;
    background: rgba(20, 20, 25, 0.9);
    z-index: 2;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(244, 244, 245, 0.06);
    border-right: 1px solid rgba(244, 244, 245, 0.06);
}

.top-content {
    padding: 0 6vw;
}

.top-content .section-title {
    margin-bottom: 1rem;
}

.top-content .gold-rule {
    margin-bottom: 1.5rem;
}

.top-content .body-text {
    margin-bottom: 1.5rem;
    max-width: 380px;
}

/* ============================================
   SECTION 9: CONTACT
   ============================================ */
.section-contact {
    min-height: 100vh;
    background: var(--bg-primary);
}

.contact-container {
    display: flex;
    min-height: 70vh;
}

.contact-panel {
    width: 45vw;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    padding: 8vh 6vw;
    border-right: 1px solid rgba(244, 244, 245, 0.06);
}

.contact-content {
    max-width: 450px;
}

.contact-content .section-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-content .body-text {
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item .label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.contact-item a,
.contact-item span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

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

.contact-image {
    width: 55vw;
    height: 70vh;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}

/* Contact Form Section */
.contact-form-section {
    padding: 6vh 0;
    background: var(--bg-primary);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4vw;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(244, 244, 245, 0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.main-footer {
    padding: 3rem 4vw;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(244, 244, 245, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS - INITIAL STATES
   ============================================ */

/* Hero entrance animations */
.hero-panel {
    opacity: 1;
}

.hero-headline .line,
.hero-subheadline,
.hero-ctas,
.micro-label,
.gold-rule,
.white-rule {
    opacity: 1;
}

/* Split sections initial state */
.split-image,
.split-panel {
    opacity: 1;
}

.vertical-text,
.scene-label {
    opacity: 0.9;
}

/* Full sections initial state */
.full-bg img {
    opacity: 1;
}

.bottom-panel,
.top-panel {
    opacity: 1;
}

/* Contact section initial state */
.contact-panel,
.contact-image {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-panel {
        width: 65vw;
        clip-path: polygon(0 0, 90% 0, 80% 100%, 0 100%);
    }
    
    .section-split {
        flex-direction: column;
    }
    
    .split-image,
    .split-panel {
        width: 100%;
    }
    
    .split-image {
        height: 60vh;
    }
    
    .split-panel {
        height: 40vh;
        border-left: none;
        border-top: 1px solid rgba(244, 244, 245, 0.06);
    }
    
    .section-split-reverse .split-panel {
        border-right: none;
        border-top: 1px solid rgba(244, 244, 245, 0.06);
    }
    
    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        right: 4vw;
        top: auto;
        bottom: 4vh;
        font-size: clamp(2rem, 5vw, 4rem);
    }
    
    .vertical-right {
        left: 4vw;
        transform: none;
    }
    
    .bottom-panel {
        height: auto;
        min-height: 25vh;
        padding: 2rem 0;
    }
    
    .bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .bottom-content .coordinates {
        position: static;
        margin-top: 1rem;
    }
    
    .bottom-right {
        width: 80vw;
    }
    
    .top-panel {
        width: 70vw;
        height: auto;
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-panel,
    .contact-image {
        width: 100%;
    }
    
    .contact-image {
        height: 50vh;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 4vw;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .hero-panel {
        width: 85vw;
        clip-path: polygon(0 0, 95% 0, 85% 100%, 0 100%);
    }
    
    .hero-content {
        padding: 0 6vw;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .split-image {
        height: 55vh;
    }
    
    .split-panel {
        height: 45vh;
        padding: 0 6vw;
    }
    
    .bottom-panel {
        min-height: 35vh;
    }
    
    .top-panel {
        width: 90vw;
        min-height: 35vh;
    }
    
    .bottom-right {
        width: 90vw;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   SCROLL TRIGGER ANIMATION CLASSES
   ============================================ */

/* These classes will be animated by GSAP */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Hide elements initially for scroll reveal */
.reveal-element {
    opacity: 0;
    transform: translateY(20px);
}

/* Loaded state */
.page-loaded .reveal-element {
    opacity: 1;
    transform: translateY(0);
}