/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #0B132B;
    /* Dark Blue for contrast */
    --secondary-color: #1C2541;
    --accent-color: #00FFD1;
    /* Neon Cyan */
    --accent-hover: #00cca7;
    --text-light: #F0F4EF;
    --text-dark: #333333;
    --bg-light: #F8F9FA;
    --bg-dark: #0B132B;
    --card-bg: #ffffff;
    --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);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-dark: 0 15px 40px rgba(0, 255, 209, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 255, 209, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 209, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ==========================================================================
   HEADER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-header {
    background-color: var(--bg-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (INDEX ONLY)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 600px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 60vh;
    z-index: 2;
    perspective: 1000px;
}

.hero-3d-element {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 209, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.hero-3d-content {
    transform: translateZ(50px);
    text-align: center;
    color: var(--accent-color);
}

/* ==========================================================================
   ABOUT / PHILOSOPHY SECTION
   ========================================================================== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

/* ==========================================================================
   SERVICES SECTION (3D FLIP CARDS)
   ========================================================================== */
.services-section {
    padding: 6rem 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.service-card {
    background: transparent;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-light);
}

.service-card-front {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-top: 4px solid var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    fill: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card-back {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: rotateY(180deg);
    border-top: 4px solid var(--accent-color);
}

/* ==========================================================================
   INDUSTRIES SECTION (HOVER INTERACTIONS)
   ========================================================================== */
.industries-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.industries-section .section-title {
    color: var(--text-light);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.industry-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.industry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.9), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-fast);
}

.industry-item:hover::before {
    opacity: 1;
}

.industry-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.industry-item:hover .industry-content {
    transform: translateY(0);
}

.industry-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.industry-content p {
    opacity: 0;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.industry-item:hover .industry-content p {
    opacity: 1;
}

/* ==========================================================================
   INTERACTIVE CAMPAIGN REPORTS SECTION
   ========================================================================== */
.reports-section {
    padding: 6rem 0;
    background: #ffffff;
}

.chart-container {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 1rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    gap: 2rem;
    padding-top: 2rem;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.bar {
    width: 100%;
    background: var(--primary-color);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
    height: 0;
    /* Animated via JS */
    cursor: pointer;
}

.bar:hover {
    background: var(--accent-color);
}

.bar-tooltip {
    position: absolute;
    top: -40px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
}

.bar:hover .bar-tooltip {
    opacity: 1;
    top: -50px;
}

.bar-label {
    margin-top: 1rem;
    font-weight: 600;
    color: #555;
}

/* ==========================================================================
   WHY CHOOSE US & TESTIMONIALS
   ========================================================================== */
.why-us-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.testimonials-section {
    padding: 6rem 0;
    background: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.testimonials-section .section-title {
    color: var(--text-light);
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    scroll-snap-align: center;
    box-shadow: var(--shadow-dark);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================================================
   CONTACT / QUOTE FORM SECTION
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
    background: #ffffff;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.contact-info {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    flex: 1.5;
    padding: 4rem 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-dark);
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-bottom-color: var(--accent-color);
}

.form-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

.form-control:focus~.form-label,
.form-control:valid~.form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* ==========================================================================
   FOOTER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 1rem;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-img {
    margin-bottom: 1rem;
}

.footer-desc {
    color: #aaa;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC
   ========================================================================== */
.legal-page-header {
    background: var(--primary-color);
    padding: 150px 0 50px;
    text-align: center;
    color: var(--text-light);
}

.legal-content {
    background: #fff;
    padding: 4rem 0;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 2rem;
    list-style-type: disc;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotateX(5deg) rotateY(5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(-5deg);
    }

    100% {
        transform: translateY(0) rotateX(5deg) rotateY(5deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-slow);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .bar-chart {
        gap: 1rem;
    }

    .bar-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 2rem 1.5rem;
    }
}