/* ==========================================================================
   LUXURY ENTERPRISE DIGITAL MARKETING THEME - GLOBAL CSS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --bg-base: #050505;
    --bg-surface: #0e0e0e;
    --bg-elevated: #171717;
    --gold-primary: #d4af37;
    --gold-light: #f9e596;
    --gold-dark: #aa7700;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --border-subtle: rgba(212, 175, 55, 0.15);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Metrics */
    --section-pad: 120px 5%;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

/* Golden Gradient Text */
.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Luxury Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Section Headers */
.section-tag {
    font-family: var(--font-display);
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

/* ==========================================================================
   1. GLOBAL HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 80px;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--border-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-container img {
    height: 35px;
    filter: brightness(1.5) sepia(1) hue-rotate(5deg) saturate(2);
}

/* Golden tint to white logo */
.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1505 0%, var(--bg-base) 60%);
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #a0a0a0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   3. CLIENT MARQUEE
   ========================================================================== */
.marquee-sec {
    background: var(--bg-surface);
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
    gap: 4rem;
}

.marquee h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   4. SERVICES (3D VANILLA JS TILT CARDS)
   ========================================================================== */
#services {
    padding: var(--section-pad);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    position: relative;
    transition: border-color 0.4s;
    transform-style: preserve-3d;
}

.service-card:hover {
    border-color: var(--gold-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold-primary);
    transition: 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.icon-wrap {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.service-card h3 {
    font-size: 1.5rem;
    transform: translateZ(20px);
}

.service-card p {
    font-size: 0.95rem;
    transform: translateZ(10px);
}

/* ==========================================================================
   5. CALCULATOR (LUXURY RANGE SLIDERS)
   ========================================================================== */
#calculator {
    padding: var(--section-pad);
    background: var(--bg-surface);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calc-box {
    background: var(--bg-elevated);
    padding: 3rem;
    border: 1px solid var(--border-subtle);
}

.slider-wrap {
    margin-bottom: 2.5rem;
}

.slider-wrap label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: #fff;
}

.slider-wrap label span {
    color: var(--gold-primary);
    font-weight: bold;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: #222;
    height: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold-primary);
    cursor: pointer;
    transform: rotate(45deg);
    /* Diamond shape */
}

.calc-result {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.calc-result h4 {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.calc-value {
    font-size: 4.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   6. INDUSTRY EXPERTISE (ACCORDION)
   ========================================================================== */
#industries {
    padding: var(--section-pad);
}

.accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-header {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
}

.acc-header:hover {
    color: var(--gold-primary);
}

.acc-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: 0.3s;
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    color: var(--text-muted);
}

.acc-content p {
    padding-bottom: 2rem;
    max-width: 800px;
}

.acc-item.active .acc-icon {
    transform: rotate(45deg);
    color: var(--gold-primary);
}

.acc-item.active .acc-content {
    max-height: 200px;
}

/* ==========================================================================
   7. LIVE CAMPAIGN REPORTS (SVG ANIMATION)
   ========================================================================== */
#reports {
    padding: var(--section-pad);
    background: var(--bg-surface);
}

.report-dashboard {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    padding: 4rem;
    position: relative;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    border-bottom: 1px solid #333;
    border-left: 1px solid #333;
    margin-top: 2rem;
}

.svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 4;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.chart-point {
    fill: var(--bg-base);
    stroke: var(--gold-light);
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.5s 2s;
}

/* ==========================================================================
   8. TESTIMONIALS (MASONRY GRID)
   ========================================================================== */
#testimonials {
    padding: var(--section-pad);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.test-card {
    background: var(--bg-surface);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.test-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
    border-color: var(--border-subtle);
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold-primary);
    line-height: 0.5;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.test-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 2rem;
}

.test-author {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ==========================================================================
   9. CONTACT CTA
   ========================================================================== */
#contact {
    padding: var(--section-pad);
    background: var(--bg-surface);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    margin-top: 3rem;
}

.info-list li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.info-list i {
    color: var(--gold-primary);
    font-style: normal;
}

.form-group {
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--gold-primary);
}

textarea.form-input {
    resize: none;
    height: 100px;
}

/* ==========================================================================
   10. LIVE CHAT WIDGET
   ========================================================================== */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.chat-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.4s;
}

.chat-box.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-head {
    background: #000;
    padding: 15px;
    border-bottom: 1px solid var(--gold-primary);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.chat-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #333;
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: #fff;
    outline: none;
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================================================
   11. GLOBAL FOOTER (IDENTICAL SITE-WIDE)
   ========================================================================== */
footer {
    background: #020202;
    padding: 100px 5% 30px;
    border-top: 1px solid #111;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.foot-brand img {
    height: 40px;
    filter: brightness(1.5) sepia(1) hue-rotate(5deg) saturate(2);
    margin-bottom: 1.5rem;
}

.foot-title {
    font-family: var(--font-display);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.foot-links {
    list-style: none;
}

.foot-links li {
    margin-bottom: 10px;
}

.foot-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.foot-links a:hover {
    color: var(--gold-primary);
}

.foot-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid #111;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* ==========================================================================
   LEGAL/INTERNAL PAGES CSS
   ========================================================================== */
.internal-header {
    padding: 200px 5% 100px;
    text-align: center;
    background: radial-gradient(circle at top, var(--bg-elevated), var(--bg-base));
    border-bottom: 1px solid var(--border-subtle);
}

.internal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 5%;
}

.internal-content h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.internal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.internal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-muted);
}

.internal-content li {
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVENESS
   ========================================================================== */
@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(0px) translateZ(-200px);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {

    .calc-container,
    .contact-split {
        grid-template-columns: 1fr;
    }

    .test-grid {
        grid-template-columns: 1fr 1fr;
    }

    .test-card.featured {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .test-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}