@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --bg-base: #050505;
    --bg-surface: #0f0f0f;
    --bg-elevated: #1a1a1a;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8c2c;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-strong: rgba(212, 175, 55, 0.4);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

/* Prevents scrolling when mobile menu is open */

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
}

.serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: var(--gold-light);
}

p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    outline: none;
}

.btn-gold {
    background: var(--gold-primary);
    color: #000;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-slow);
    z-index: -1;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

/* ==== STRICT HEADER ==== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
}

.logo-container img {
    height: 65px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1002;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 20px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--gold-primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--gold-primary);
}

/* ==== HERO SECTION ==== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 85%;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.abstract-shape {
    width: 300px;
    height: 400px;
    border: 1px solid var(--gold-primary);
    position: absolute;
    transition: transform 0.1s ease-out;
}

.shape-1 {
    transform: rotate(15deg) translateZ(-50px);
    border-color: var(--border-strong);
}

.shape-2 {
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    backdrop-filter: blur(5px);
    transform: rotate(-10deg) translateZ(50px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
}

.shape-2 h3 {
    font-size: 3rem;
    color: var(--gold-primary);
}

/* ==== MARQUEE ==== */
.client-ticker {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 0;
    overflow: hidden;
    background: var(--bg-surface);
}

.ticker-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--border-strong);
}

/* ==== ABOUT/PHILOSOPHY ==== */
.philosophy {
    padding: 10rem 0;
    text-align: center;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.philosophy h2 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

/* ==== ASYMMETRICAL SERVICES ==== */
.services {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.services-header h2 {
    font-size: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-box {
    background: var(--bg-base);
    padding: 4rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-box:hover {
    border-color: var(--gold-primary);
    transform: translateY(-10px);
}

.service-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent);
}

.box-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 2rem;
    font-family: 'Playfair Display';
    font-style: italic;
}

/* ==== LIVE DASHBOARD UI ==== */
.dashboard {
    padding: 8rem 0;
}

.dash-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dash-visual {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    height: 350px;
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
    position: relative;
}

.dash-row {
    width: 100%;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.dash-fill {
    height: 100%;
    background: var(--gold-primary);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==== ROI CALCULATOR ==== */
.calculator {
    padding: 8rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-strong);
    padding: 4rem;
    position: relative;
}

.calc-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
}

.calc-group {
    margin-bottom: 3rem;
}

.calc-group label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--bg-elevated);
    border-radius: 2px;
}

.calc-select {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.calc-result {
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 3rem;
}

.calc-result h4 {
    font-size: 4.5rem;
    color: var(--gold-primary);
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
}

/* ==== TESTIMONIALS ==== */
.testimonials {
    padding: 8rem 0;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testi-card {
    padding: 3rem;
    border-left: 2px solid var(--gold-primary);
    background: linear-gradient(90deg, var(--bg-surface), transparent);
}

.testi-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.testi-author h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
}

/* ==== MASSIVE CTA ==== */
.cta {
    padding: 12rem 0;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border-subtle);
}

.cta h2 {
    font-size: 6rem;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

/* ==== STRICT FOOTER ==== */
.site-footer {
    background: var(--bg-surface);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-strong);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 65px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==== LEGAL & CONTACT PAGES ==== */
.page-hero {
    padding: 12rem 0 6rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.page-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.legal-content {
    max-width: 800px;
    margin: 6rem auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--gold-primary);
    font-family: 'Playfair Display', serif;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
}

.contact-form {
    padding: 4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-field:focus {
    border-bottom-color: var(--gold-primary);
}

textarea.input-field {
    resize: vertical;
    margin-bottom: 2rem;
}

.contact-info {
    padding: 4rem;
    border: 1px solid var(--border-strong);
    background: var(--bg-base);
    position: relative;
}

.info-block {
    margin-bottom: 3rem;
}

.info-block h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.info-block p {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* ==== LIVE CHAT ==== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
    border: none;
    color: black;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: var(--gold-light);
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.chat-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--bg-elevated);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.chat-close {
    cursor: pointer;
    color: var(--gold-primary);
}

.chat-body {
    padding: 1.5rem;
    height: 250px;
    overflow-y: auto;
    background: var(--bg-base);
}

.msg {
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 2px solid var(--gold-primary);
    font-size: 0.9rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding-right: 1rem;
}

.chat-input button {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   RESPONSIVENESS & FLAWLESS MOBILE MENU
   ========================================= */
@media(max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .box-large {
        grid-template-columns: 1fr;
    }

    .dash-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    /* Hide CTA button on mobile header */

    /* Full-Screen Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1001;
        /* Behind hamburger, above everything else */
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 2rem;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        color: var(--gold-primary);
    }

    .nav-links a::after {
        display: none;
    }

    /* Remove underline effect on mobile */

    /* Typography Adjustments */
    .hero-content h1,
    .cta h2 {
        font-size: 3.5rem;
    }

    .services-header h2 {
        font-size: 2.5rem;
    }

    .calc-result h4 {
        font-size: 3rem;
    }

    .page-hero h1 {
        font-size: 3rem;
    }

    /* Layout Adjustments */
    .services,
    .dashboard,
    .calculator,
    .testimonials,
    .cta {
        padding: 5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-box {
        padding: 2rem;
    }
}