/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #050507;
    --bg-card: #121217;
    --bg-card-hover: #1a1a24;
    --text-main: #f8f9fa;
    --text-muted: #a0a0b0;
    --primary: #4361ee;
    --primary-glow: rgba(67, 97, 238, 0.4);
    --secondary: #4cc9f0;
    --secondary-glow: rgba(76, 201, 240, 0.4);
    --accent: #7209b7;
    --border-color: #2a2a35;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 90px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Typography & Utilities */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 5px 25px var(--secondary-glow);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-logo {
    height: 55px;
    filter: invert(1);
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    position: relative;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--secondary);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (3D ANIMATED)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 6s infinite alternate;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text h1 span {
    color: var(--secondary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-3d-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.chart-bar-mock {
    height: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #222;
    position: relative;
    overflow: hidden;
    transform: translateZ(30px);
}

.chart-bar-mock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: chartGrow 2s ease forwards;
}

.cbm-1::after {
    width: 85%;
}

.cbm-2::after {
    width: 65%;
    animation-delay: 0.3s;
}

.cbm-3::after {
    width: 95%;
    animation-delay: 0.6s;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary));
    transition: 0.5s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(76, 201, 240, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   INDUSTRY SPECIFIC
   ========================================================================== */
.industry-section {
    padding: 100px 0;
    position: relative;
}

.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.industry-item {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.industry-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ==========================================================================
   INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.calc-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-container {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-input-group {
    margin-bottom: 30px;
}

.calc-input-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.calc-slider {
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #333;
    outline: none;
    margin-bottom: 10px;
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-value-display {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.calc-results {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--primary-glow);
    text-align: center;
}

.result-box {
    margin-bottom: 30px;
}

.result-box h4 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.result-box .res-val {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================================================
   SAMPLE CAMPAIGN REPORTS
   ========================================================================== */
.reports-section {
    padding: 100px 0;
}

.report-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.report-stat {
    text-align: center;
}

.report-stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.report-stat p {
    color: var(--text-muted);
}

.bar-wrapper {
    margin-bottom: 20px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bar-track {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-card);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testi-card {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 3rem;
    color: var(--primary);
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
    margin-top: 10px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
}

.testi-name h4 {
    font-size: 1.1rem;
}

.testi-name p {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ==========================================================================
   LIVE CHAT MOCKUP SECTION
   ========================================================================== */
.chat-promo-section {
    padding: 100px 0;
    text-align: center;
}

.chat-mockup-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 30px;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.chat-msg {
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
    animation: slideUpFade 0.5s ease forwards;
    opacity: 0;
}

.msg-agent {
    background: #222;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.msg-user {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
    animation-delay: 0.8s;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background: var(--bg-dark);
    color: #fff;
    outline: none;
}

.chat-input-area button {
    padding: 0 25px;
    border-radius: 10px;
    background: var(--secondary);
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   CONTACT FORM / QUOTE
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-main);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* ==========================================================================
   FOOTER (STRICT CONSISTENCY)
   ========================================================================== */
.site-footer {
    background: #020203;
    padding: 80px 0 30px;
    border-top: 1px solid #1a1a24;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about .site-logo {
    margin-bottom: 20px;
    filter: invert(1);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-contact li svg {
    fill: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a24;
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.legal-page-wrapper {
    padding: 160px 0 100px;
    min-height: 80vh;
    background: var(--bg-dark);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary);
}

.legal-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ==========================================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes chartGrow {
    from {
        width: 0;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .calc-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.95);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}