/* =========================================
   MUVEN Styles - v_multi_lang_021
   ========================================= */

:root {
    --bg-color: #030008;
    --text-main: #e0e7ff;
    /* Very light blue-purple */
    --accent: #8b5cf6;
    --card-bg: rgba(139, 92, 246, 0.05);
    --border-subtle: rgba(139, 92, 246, 0.15);

    /* Fluid Typography using Clamp */
    --font-huge: clamp(4rem, 10vw, 12rem);
    --font-h1: clamp(3rem, 8vw, 8rem);
    --font-h2: clamp(2.5rem, 5vw, 5rem);
    --font-h3: clamp(1.5rem, 2vw, 2.5rem);
    --font-body: clamp(1rem, 1.2vw, 1.25rem);

    --spacing-section: clamp(6rem, 15vw, 15rem);
    --container-padding: clamp(1.5rem, 5vw, 4rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    cursor: none;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    /* Hide scrollbar for standard view, lenis handles it */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

::selection {
    background: var(--text-main);
    color: var(--bg-color);
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================================
   3D Canvas Background
   ========================================= */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through to site unless specified */
    opacity: 0;
    /* Fade in via JS */
    transition: opacity 2s ease;
}

.canvas-container.loaded {
    opacity: 0.8;
    /* Subtle opacity so text pops */
}

/* =========================================
   Interactive Liquid Canvas
   ========================================= */
.liquid-container {
    position: absolute;
    /* Changed from fixed so it scrolls away */
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    /* Extended beyond 100vh so fluid can drip into next section */
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.liquid-container.loaded {
    opacity: 1;
    /* Transparencies are handled in the GLSL shader */
}

/* Fix Spline container z-index to be behind liquid */
.canvas-container {
    z-index: -2 !important;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.9;
    text-transform: uppercase;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

p {
    font-size: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* GSAP Preparation */
.line {
    overflow: hidden;
    display: block;
}

.word {
    display: inline-block;
    transform: translateY(105%);
}

.text-reveal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Buttons */
.btn {
    cursor: none;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-large:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* =========================================
   Layout Sections
   ========================================= */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    z-index: 500;

    /* Subtle Blurred Bar matching user requirements */
    background: rgba(3, 0, 8, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.nav-active {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
}

.logo {
    z-index: 310;
    /* Keep logo above overlay */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: none;
    text-decoration: none;
    /* No opacity here - children handle their own fade to avoid stacking context breaking gradient clip */
}

.logo-icon {
    height: 18px;
    width: 35px;
    /* Scaled down 25% from 47x24 */
    background: linear-gradient(110deg, #f8fafc 10%, #a855f7 40%, #3b82f6 60%, #f8fafc 90%);
    background-size: 200% auto;
    -webkit-mask-image: url('logo/muven_logo_only.svg');
    mask-image: url('logo/muven_logo_only.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    display: inline-block;
    animation: textShine 6s linear infinite;
    opacity: 0;
    will-change: opacity, transform;
    transform: translateZ(0);
}

.logo-wordmark {
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(110deg, #f8fafc 10%, #a855f7 40%, #3b82f6 60%, #f8fafc 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    animation: textShine 6s linear infinite;
    opacity: 0;
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* Burger Menu Button */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: none;
    z-index: 311;
    opacity: 0;
    will-change: opacity, transform;
    transform: translateZ(0);
}

.burger-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(110deg, #f8fafc 10%, #a855f7 40%, #3b82f6 60%, #f8fafc 90%);
    background-size: 200% auto;
    animation: textShine 6s linear infinite;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

@keyframes textShine {
    to {
        background-position: -200% center;
    }
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(3, 0, 8, 0.98);
    backdrop-filter: blur(30px);
    z-index: 450;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 2rem 50px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow-y: auto;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vh, 4rem);
}

.overlay-link {
    font-size: var(--font-h2);
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    max-width: 90vw;
    cursor: none;
    opacity: 0;
    /* GSAP reveals this */
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.overlay-link:hover {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
}

.overlay-footer {
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
    /* GSAP reveals */
}

.overlay-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.25rem;
    cursor: none;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 10vh;
}

/* Hero Centered Layout */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.hero-main-title {
    font-size: clamp(3rem, 7vw, 7.5rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Reusable animated gradient for all global titles */
.animated-title-text {
    background: linear-gradient(110deg, #f8fafc 10%, #a855f7 40%, #3b82f6 60%, #f8fafc 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: textShine 6s linear infinite;
    display: inline-block;
}

.hero-main-title .glow-text {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0px 0px 20px rgba(139, 92, 246, 0.4));
}

@keyframes fadeInEl {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    color: #cbd5e1;
    opacity: 0;
    line-height: 1.6;
}

/* Call to Action Container */
.hero-ctas {
    margin-top: 3rem;
    opacity: 0; /* GSAP will reveal */
}

/* Golden Ratio Slanted Button (Parallelogram) */
/* The slant angle derived from the golden ratio (arctan(1/1.618)) is ~31.7deg */
.btn-slant {
    position: relative;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text-main);
    padding: 1.3rem 3.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: skewX(-31.7deg);
    border-radius: 0; /* Overrides default rounded buttons for sharp geometric corners */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Base dark background layer */
.btn-slant::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 18, 32, 0.92); /* Solid dark base matching reference */
    z-index: -2;
}

/* Sweep effect layer */
.btn-slant::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2), transparent);
    z-index: -1;
    transition: left 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-slant:hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: skewX(-31.7deg) translateY(-3px);
    color: #ffffff;
}

.btn-slant:hover::after {
    left: 150%;
}

/* Counter-skew the text so it remains readable and upright */
.slant-text {
    transform: skewX(31.7deg);
    display: inline-block;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    /* GSAP reveals */
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--border-subtle);
    position: relative;
    overflow: hidden;
    margin-right: -10px;
    /* Slight optical adjustment */
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    50% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* About Section */
.about {
    padding: var(--spacing-section) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

.about-desc p {
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    line-height: 1.4;
    color: var(--text-main);
}

.centered-large-text p {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Services Section */
.services {
    padding: var(--spacing-section) 0;
}

.services-header {
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-grid.style-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .services-grid.style-cards {
        grid-template-columns: 1fr;
    }
}

.service-card {
    cursor: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(30px);
    transition: transform 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
}

.service-icon {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon-img {
    width: 240px !important;
    height: 240px !important;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Crush darks to black and brighten slightly */
    filter: contrast(1.3) brightness(1.1);
    /* Soft mask to kill the square edge boxes */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%);
    transition: filter 0.4s ease, transform 0.4s ease;
    will-change: transform, filter;
}

.service-card:hover .service-icon {
    transform: translateY(-12px) scale(1.08);
}

.service-card:hover .service-icon-img {
    filter: contrast(1.4) brightness(1.2);
}

.service-card .service-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-card .service-description {
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}

/* Contact Section */
.contact {
    padding: var(--spacing-section) 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.huge-title {
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: 1.05;
    margin-bottom: 3rem;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 231, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.form-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Style Button within Form Footer */
.form-footer .btn-slant {
    padding: 1rem 4rem;
    cursor: pointer;
}

.form-success-message {
    text-align: center;
    padding: 4rem 2rem;
}

.form-success-message p {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #888888;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a,
.footer-links .separator {
    cursor: none;
    color: #888888;
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

/* We don't use difference blend mode here because it can clash with the spline 3D scene sometimes, keeping it clean white */

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Disable Custom Cursor on Touch Devices (iOS click fix) */
@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
    body, * {
        cursor: auto !important;
    }
    
    a, button, .btn, .logo, .burger-menu, .overlay-link, .service-card, .lang-drop-btn, .lang-btn, .footer-links a, .footer-links .separator {
        cursor: pointer !important;
    }
    
    input, textarea {
        cursor: text !important;
    }

    .cursor, .cursor-follower {
        display: none !important;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 311;
}

.lang-dropdown {
    position: relative;
    z-index: 1000;
}

.lang-drop-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 60px;
    justify-content: center;
}

.lang-drop-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lang-drop-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lang-dropdown.active .lang-drop-content {
    display: flex;
}

.lang-drop-content .lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.lang-drop-content .lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-drop-content .lang-btn.active {
    color: var(--primary-color);
    background: rgba(143, 109, 192, 0.1);
}

@media (max-width: 768px) {
    .nav-right {
        gap: 0.5rem;
    }
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(143, 109, 192, 0.2);
    color: #fff;
    border-color: var(--primary-color);
}