/* 
===============================================
   CUBICS ARCHITECTURE - Premium Platform
=============================================== 
*/

:root {
    /* Color Palette */
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.65);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-accent: #ffffff;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ===============================================
   HERO SECTION (Home)
=============================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Background Image Layer */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

/* Gradient Overlay Mask layer */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
}

/* ===============================================
   INTERNAL PAGE HEADER
=============================================== */
.internal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 6rem;
    z-index: 10;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}


/* ===============================================
   HEADER & NAVIGATION 
=============================================== */
.hero-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 6rem;
    z-index: 10;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-nav a:not(.btn-request) {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.hero-nav a.active-link {
    color: #fff;
    font-weight: 400;
}

.hero-nav a:not(.btn-request):hover {
    color: #fff;
}

.btn-request {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.85rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-request:hover {
    background-color: #fff;
    color: #000;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lang-btn {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; font-weight: 500; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.mobile-menu-toggle span { display: none; }
.mobile-menu-toggle::after {
    content: 'MENU';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
}
.mobile-menu-toggle.open::after {
    content: 'CLOSE';
}


/* ===============================================
   HERO MAIN CONTENT 
=============================================== */
.hero-content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 6rem;
    z-index: 10;
}

.hero-text-wrapper {
    max-width: 750px;
}

.headline {
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.subheadline {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    margin-bottom: 3.5rem;
    max-width: 580px;
}

/* ACTIONS */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.btn-primary {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-bg);
    background-color: var(--color-accent);
    padding: 1.1rem 2.8rem;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===============================================
   NEW CONTENT SECTIONS (Quiet Authority)
=============================================== */
.content-section {
    padding: 8rem 6rem;
    background-color: var(--color-bg);
}
.content-section.bordered-top { border-top: 1px solid var(--color-border); }
.content-section.alt-bg { background-color: var(--color-bg-alt); }

.section-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    color: #fff;
}

.section-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Featured Development on Home */
.featured-dev {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.feat-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}
.feat-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Developments Page Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
}
.project-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.project-card img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}
.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.project-name { font-size: 2rem; font-weight: 300; }
.project-loc { font-size: 1rem; color: var(--color-text-secondary); margin-top: 0.5rem; margin-bottom: 2rem;}

.project-bullets {
    list-style: none;
}
.project-bullets li {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}
.project-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* Contact Info */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    margin-top: 4rem;
}
.contact-column h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}
.contact-column p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Access / Contact Form styling */
.access-full-screen {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.access-form input, .access-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

.access-form input:focus, .access-form textarea:focus {
    border-bottom: 1px solid #fff;
}


/* ===============================================
   ANIMATIONS 
=============================================== */
.reveal-anim { animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-text-wrapper h1 { animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.hero-text-wrapper p.delay-1 { animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.hero-text-wrapper div.delay-2 { animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================================
   MOBILE & RESPONSIVENESS
=============================================== */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 1200px) {
    .headline { font-size: 3.8rem; }
    .page-title { font-size: 3rem; }
}

@media (max-width: 1024px) {
    .hero-header, .hero-content, .internal-header { padding: 2.5rem 4rem; }
    .content-section { padding: 6rem 4rem; }
    .headline { font-size: 3.2rem; }
    .hero-nav { gap: 2rem; }
    .project-info { grid-template-columns: 1fr; gap: 2rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    body, html { overflow-x: hidden; width: 100%; padding-bottom: 90px; }
    body.no-scroll { overflow: hidden !important; height: 100vh; }
    
    .logo img { max-width: 50vw; height: auto; }
    
    .hero-section { height: 100svh; display: flex; flex-direction: column; }
    .hero-header, .internal-header { padding: 1.5rem 2rem; }
    .hero-content { padding: 0 2rem; flex: 1; display: flex; align-items: center; justify-content: flex-start; }
    
    .header-right { gap: 1.5rem; }
    .mobile-menu-toggle { display: block; position: fixed; top: 1.5rem; right: 2rem; z-index: 100; }
    
    .hero-nav {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(10, 10, 10, 1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 90;
    }
    
    .hero-nav.mobile-open {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-nav a:not(.btn-request) {
        font-size: 1.8rem;
        font-weight: 200;
        letter-spacing: 0.05em;
        text-align: center;
        white-space: nowrap;
        display: block;
        width: 100%;
    }
    .hero-nav a[href="contact.html"] {
        opacity: 0.4;
        font-size: 1.3rem;
    }
    .hero-nav a.btn-request {
        margin-top: 2rem;
    }

    .hero-gradient { background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 70%, rgba(0,0,0,0) 100%); }
    
    .headline { 
        font-size: 2.6rem; 
        line-height: 1.15;
        /* Ensure max 2 lines visible roughly */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 95%;
        width: 100%;
    }
    
    .subheadline { font-size: 1.05rem; line-height: 1.6; max-width: 90%; }
    
    .hero-actions { display: none; }

    .content-section { padding: 4rem 2rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .section-text { font-size: 1.1rem; line-height: 1.6; }

    /* Swipe cards emulation */
    .projects-grid { 
        display: flex; 
        flex-direction: row; 
        gap: 2rem; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 2rem;
    }
    .project-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
    .project-card img { height: 35vh; border-radius: 4px; object-fit: cover; }
    .project-bullets {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Mobile Sticky CTA */
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: 1rem 2rem;
        z-index: 95;
        border-top: 1px solid var(--color-border);
        text-align: center;
    }
    
    .mobile-sticky-cta .btn-primary {
        width: 100%;
        display: block;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .headline { font-size: 2.2rem; }
    .page-title { font-size: 2.5rem; }
}

/* ===============================================
   EVALUATION OVERLAY MODAL
============================================== */
#eval-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#eval-modal.active {
    opacity: 1; visibility: visible;
}

.eval-container {
    width: 100%; max-width: 600px; padding: 2rem; position: relative;
    max-height: 100vh; overflow-y: auto; overflow-x: hidden;
}

.eval-close {
    position: absolute; top: -3rem; right: 2rem;
    color: rgba(255, 255, 255, 0.5); background: none; border: none;
    font-size: 2rem; font-weight: 200; cursor: pointer; transition: color 0.3s;
}

.eval-close:hover { color: #fff; }

.eval-step-wrap {
    display: none; opacity: 0; transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.eval-step-wrap.active {
    display: block; opacity: 1; transform: translateY(0);
}

.eval-header {
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4); margin-bottom: 2rem;
}

.eval-question {
    font-size: 1.8rem; font-weight: 300; color: #fff; margin-bottom: 3rem; line-height: 1.4;
}

.eval-options-list {
    display: flex; flex-direction: column; gap: 1rem;
}

.eval-option {
    background: none; border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8); padding: 1.5rem 2rem; text-align: left;
    font-size: 1rem; cursor: pointer; transition: border-color 0.3s, color 0.3s, background 0.3s;
    font-family: 'Inter', sans-serif;
}

.eval-option:hover, .eval-option.selected {
    border-color: rgba(255, 255, 255, 0.4); color: #fff; background: rgba(255, 255, 255, 0.02);
}

.eval-progress {
    margin-top: 3rem; display: flex; gap: 0.5rem; justify-content: flex-start;
}

.eval-dot {
    width: 6px; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transition: background 0.3s;
}

.eval-dot.active { background: #fff; }

@media (max-width: 768px) {
    .eval-close { top: 1rem; right: 1rem; }
    .eval-container { padding-top: 4rem; padding-bottom: 4rem; }
}
