/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #0A1128;
    /* Deep Navy */
    --secondary-color: #1F2D5A;
    /* Lighter Navy */
    --accent-color: #00E5FF;
    /* Vibrant Teal */
    --accent-hover: #00B3CC;
    --text-light: #F4F4F9;
    --text-muted: #A0AABF;
    --bg-dark: #050814;
    --bg-card: #121A38;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   HEADER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    transition: var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 55px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-color);
    color: var(--bg-dark) !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    font-weight: bold !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.nav-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    margin: 6px 0;
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION & 3D ANIMATION
   ========================================================================== */
.hero-section {
    padding: 180px 20px 100px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
}

/* 3D Isometric Cube Element */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.cube-wrapper {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin3D 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(10, 17, 40, 0.8);
    border: 2px solid var(--accent-color);
    box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-align: center;
    backdrop-filter: blur(5px);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* ==========================================================================
   SECTIONS GLOBAL
   ========================================================================== */
.section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.section-title span {
    color: var(--accent-color);
}

.section-desc {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
    transform: scale(0.5);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.service-link {
    color: var(--accent-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
    position: relative;
}

/* ==========================================================================
   INTERACTIVE CALCULATOR
   ========================================================================== */
.calc-container {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.calc-inputs {
    flex: 1;
    min-width: 300px;
}

.calc-outputs {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-light);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--secondary-color);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-color);
}

.val-display {
    float: right;
    color: var(--accent-color);
    font-weight: bold;
}

.result-box {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.result-box h4 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.result-box .result-val {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

/* ==========================================================================
   MOCK CAMPAIGN REPORTS (TABS)
   ========================================================================== */
.reports-container {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.reports-tabs {
    display: flex;
    background: var(--primary-color);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(0, 229, 255, 0.05);
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    padding: 50px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.chart-mockup {
    width: 100%;
    height: 250px;
    background: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255, 255, 255, 0.05) 50px);
    position: relative;
    margin-top: 30px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 20px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--secondary-color), var(--accent-color));
    border-radius: 5px 5px 0 0;
    animation: barGrow 1s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.report-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-item p {
    color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(0, 229, 255, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

.client-name {
    font-weight: bold;
    color: #fff;
}

.client-role {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ==========================================================================
   FOOTER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-info svg {
    fill: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* ==========================================================================
   LIVE CHAT & LEGAL PAGE STYLES & FORMS
   ========================================================================== */
.live-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.4);
    z-index: 999;
    transition: var(--transition-fast);
}

.live-chat-btn:hover {
    transform: scale(1.1);
}

.live-chat-btn svg {
    width: 30px;
    fill: var(--bg-dark);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-fast);
}

.chat-window.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: var(--primary-color);
    padding: 15px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--secondary-color);
}

.close-chat {
    cursor: pointer;
    color: var(--accent-color);
}

.chat-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 0.9rem;
}

.msg.bot {
    background: var(--secondary-color);
    align-self: flex-start;
    color: #fff;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--secondary-color);
}

.chat-input input {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

.chat-input button {
    padding: 0 20px;
    background: var(--accent-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* Forms & Legal Pages */
.legal-container,
.contact-page-container {
    max-width: 1000px;
    margin: 150px auto 100px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
}

.legal-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.legal-content h2 {
    color: var(--accent-color);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content ul {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

/* ==========================================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes barGrow {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 80px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-fast);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .calc-container,
    .reports-container {
        padding: 30px;
    }

    .reports-tabs {
        flex-direction: column;
    }
}