/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
    /* Color Palette based on Deep Tech & Digital Marketing */
    --bg-dark: #05050A;
    --bg-card: #0D0E15;
    --bg-card-hover: #151620;
    --bg-light: #F8F9FA;

    --primary: #00D4FF;
    /* Vibrant Neon Cyan */
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary: #7B2CBF;
    /* Deep Purple */
    --secondary-glow: rgba(123, 44, 191, 0.4);
    --accent: #FF0055;
    /* Action Pink */

    --text-main: #FFFFFF;
    --text-muted: #A0A5B5;
    --text-dark: #05050A;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Syne', var(--font-primary);

    --header-height: 90px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --border-radius: 12px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   STRICT HEADER (Used universally)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    height: 80px;
    background: rgba(5, 5, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 55px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.header-cta {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.header-cta:hover::before {
    opacity: 1;
}

.header-cta:hover {
    box-shadow: 0 6px 20px var(--secondary-glow);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (3D Interactive)
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 3D Floating Dashboard Card */
.hero-visual {
    transform-style: preserve-3d;
    position: relative;
}

.dashboard-card-3d {
    background: rgba(13, 14, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: rotateX(15deg) rotateY(-15deg);
    transition: transform 0.1s linear;
    will-change: transform;
}

.dashboard-card-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.5;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dash-metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-growth {
    color: #00FF88;
    font-size: 0.9rem;
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 200px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--secondary), var(--primary));
    border-radius: 6px 6px 0 0;
    animation: barGrow 2s ease-out forwards;
    opacity: 0;
    transform-origin: bottom;
}

/* ==========================================================================
   SERVICES SECTION (Flip Cards)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--bg-dark);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   INTERACTIVE CAMPAIGN REPORT SECTION
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
}

.report-interface {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.report-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-btn.active,
.control-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.report-display {
    background: #000;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.report-data-view {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.report-data-view.active {
    display: block;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: #111;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.stat-box.secondary {
    border-color: var(--secondary);
}

.stat-box.accent {
    border-color: var(--accent);
}

/* Circle Progress CSS */
.progress-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--percentage) * 1%), #222 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.progress-inner {
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

/* ==========================================================================
   INDUSTRY SPECIFIC (Parallax Scroll)
   ========================================================================== */
.industry-section {
    padding: 8rem 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%2305050A"/><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-attachment: fixed;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ind-card {
    height: 300px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    group: hover;
}

.ind-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #000);
    z-index: 1;
}

.ind-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(123, 44, 191, 0.4);
    /* Secondary overlay */
    z-index: 0;
    transition: var(--transition-slow);
}

.ind-card:hover::after {
    background: rgba(0, 212, 255, 0.4);
}

.ind-content {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transition: var(--transition-slow);
}

.ind-card:hover .ind-content {
    bottom: 0;
}

.ind-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ind-content p {
    color: #ccc;
    opacity: 0;
    transition: var(--transition-slow);
}

.ind-card:hover .ind-content p {
    opacity: 1;
}

/* ==========================================================================
   TESTIMONIALS (Slider Alternative)
   ========================================================================== */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-card);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    background: var(--bg-dark);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border-top: 5px solid var(--secondary);
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;
}

/* ==========================================================================
   CONTACT FORM / QUOTE REQUEST
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-dark), #0A0A15);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(20px);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--secondary-glow);
}

/* ==========================================================================
   STRICT FOOTER (Used universally)
   ========================================================================== */
.site-footer {
    background: #020205;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about .logo-container img {
    height: 55px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px 0 0 5px;
    color: #fff;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 0 5px 5px 0;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   LEGAL PAGES STYLING
   ========================================================================== */
.legal-page {
    padding: 150px 0 100px;
    background: var(--bg-dark);
}

.legal-content {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

@keyframes barGrow {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (Responsiveness)
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 4rem;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .report-interface {
        grid-template-columns: 1fr;
    }

    .control-btn {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .data-stats {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}