/* ==========================================================================
   CSS RESET & ETHEREAL NEUMORPHISM VARIABLES
   ========================================================================== */
:root {
    /* Neumorphic Color Palette */
    --bg-color: #e0e5ec;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --white: #ffffff;

    /* Shadows for Neumorphism */
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(163, 177, 198, 0.6);

    --neu-out: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    --neu-out-hover: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);
    --neu-in: inset 6px 6px 10px var(--shadow-dark), inset -6px -6px 10px var(--shadow-light);
    --neu-in-deep: inset 10px 10px 20px var(--shadow-dark), inset -10px -10px 20px var(--shadow-light);

    /* Prism Gradients (Holographic / Data representation) */
    --prism-1: #845ec2;
    --prism-2: #d65db1;
    --prism-3: #ff9671;
    --prism-4: #ffc75f;
    --gradient-prism: linear-gradient(135deg, var(--prism-1), var(--prism-2), var(--prism-3), var(--prism-4));
    --gradient-text: linear-gradient(135deg, var(--prism-1), var(--prism-3));

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    /* Elegant Premium Vibe */
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1400px;
    --header-height: 100px;
    --section-spacing: 7rem;

    /* Transitions */
    --trans-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --trans-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--prism-2);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #c1c9d2;
    border-radius: 10px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--prism-2);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.text-prism {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-xl {
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -1px;
}

.title-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.title-md {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

/* ==========================================================================
   UTILITIES & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Neumorphic specific utilities */
.neu-card {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--neu-out);
    padding: 3rem;
    transition: var(--trans-fast);
}

.neu-card:hover {
    box-shadow: var(--neu-out-hover);
}

.neu-inset {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--neu-in);
    padding: 2rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--trans-fast);
    outline: none;
}

.btn-neu {
    background-color: var(--bg-color);
    color: var(--text-main);
    box-shadow: var(--neu-out);
}

.btn-neu:hover {
    box-shadow: var(--neu-in);
    color: var(--prism-1);
}

.btn-prism {
    background: var(--gradient-prism);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(214, 93, 177, 0.4);
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

.btn-prism:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(214, 93, 177, 0.6);
}

/* ==========================================================================
   HEADER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(224, 229, 236, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--trans-fast);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 80px;
    box-shadow: 0 10px 30px rgba(163, 177, 198, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
    transition: var(--trans-fast);
}

.site-header.scrolled .logo img {
    height: 35px;
}

.main-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-prism);
    transform: translateX(-50%);
    transition: var(--trans-fast);
}

.nav-link:hover {
    color: var(--prism-1);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    left: 13px;
    transition: var(--trans-fast);
}

.mobile-toggle span:nth-child(1) {
    top: 16px;
}

.mobile-toggle span:nth-child(2) {
    top: 24px;
}

.mobile-toggle span:nth-child(3) {
    top: 32px;
}

/* ==========================================================================
   HERO SECTION (NEUMORPHIC 3D MESH)
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--prism-2);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* 3D Visual Art */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prism-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-prism);
    background-size: 300% 300%;
    animation: orbFloat 8s ease-in-out infinite, gradientShift 8s ease infinite;
    box-shadow: 0 30px 60px rgba(132, 94, 194, 0.4);
    z-index: 1;
}

.glass-plate {
    position: absolute;
    width: 400px;
    height: 450px;
    background: rgba(224, 229, 236, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transform: rotate(-5deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.glass-plate-data {
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    height: 60px;
    border-radius: 15px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.glass-plate-fill {
    height: 100%;
    background: var(--gradient-prism);
    width: 75%;
    border-radius: 15px;
}

/* ==========================================================================
   MARQUEE SECTION
   ========================================================================== */
.marquee-section {
    padding: 3rem 0;
    box-shadow: var(--neu-in);
    background: var(--bg-color);
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 3rem;
    display: flex;
    align-items: center;
}

.marquee-item span {
    color: var(--prism-3);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: -3rem;
    /* Overlap effect */
    position: relative;
    z-index: 5;
}

.stat-card {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--neu-out);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--prism-1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* ==========================================================================
   ABOUT AGENCY
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 30px;
    padding: 2rem;
    position: relative;
}

.about-visual-inner {
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 20px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--bg-color);
    text-shadow: 2px 2px 5px rgba(163, 177, 198, 0.5), -2px -2px 5px rgba(255, 255, 255, 1);
}

/* ==========================================================================
   SERVICES (3D NEUMORPHIC CARDS)
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: var(--neu-out);
    padding: 3rem;
    text-align: center;
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.service-card:hover {
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--prism-2);
    transform: translateZ(30px);
}

.service-card h3 {
    transform: translateZ(20px);
    font-size: 1.5rem;
}

.service-card p {
    transform: translateZ(10px);
    margin-bottom: 2rem;
}

.service-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 50px;
    font-weight: 600;
    color: var(--prism-1);
    transform: translateZ(15px);
}

/* ==========================================================================
   INTERACTIVE CAMPAIGN DASHBOARD
   ========================================================================== */
.dashboard-container {
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 40px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
}

.dash-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-color);
    border: none;
    border-radius: 20px;
    box-shadow: var(--neu-out);
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--trans-fast);
}

.dash-btn.active,
.dash-btn:hover {
    box-shadow: var(--neu-in);
    color: var(--prism-1);
}

.dash-display {
    background: var(--bg-color);
    box-shadow: var(--neu-in-deep);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.chart-title {
    font-size: 2rem;
    margin: 0;
}

.chart-metric {
    font-size: 3rem;
    font-family: var(--font-heading);
    background: var(--gradient-prism);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.svg-chart-container {
    height: 250px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 15%;
}

.bar-track {
    flex: 1;
    height: 100%;
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 5px;
}

.bar-fill {
    width: 100%;
    background: var(--gradient-prism);
    border-radius: 10px;
    height: 0%;
    /* JS Animated */
    transition: height 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   INDUSTRY FOCUS
   ========================================================================== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.industry-card {
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--trans-fast);
}

.industry-card:hover {
    box-shadow: var(--neu-in);
}

.industry-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testi-card {
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--prism-4);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
    opacity: 0.5;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testi-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--prism-1);
}

/* ==========================================================================
   CTA / PRE-FOOTER
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
}

.cta-box {
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 40px;
    padding: 6rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(214, 93, 177, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ==========================================================================
   PAGES SPECIFIC (CONTACT & LEGAL)
   ========================================================================== */
.page-hero {
    padding: 220px 0 100px;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info {
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 30px;
    padding: 3rem;
}

.contact-item {
    margin-bottom: 2.5rem;
}

.contact-item h4 {
    color: var(--prism-1);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--bg-color);
    box-shadow: var(--neu-in);
    border-radius: 30px;
    padding: 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-color);
    border: none;
    box-shadow: var(--neu-out);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--trans-fast);
}

.form-control:focus {
    outline: none;
    box-shadow: var(--neu-in);
}

/* Legal Box */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    box-shadow: var(--neu-out);
    border-radius: 30px;
    padding: 5rem;
}

.legal-container h2 {
    color: var(--prism-1);
    margin-top: 3rem;
    font-size: 1.8rem;
}

.legal-container h2:first-child {
    margin-top: 0;
}

.legal-container p {
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-container ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-container ul li {
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.legal-container ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-prism);
}

/* ==========================================================================
   FOOTER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-footer {
    padding: 6rem 0 2rem;
    background: var(--bg-color);
    box-shadow: 0 -10px 30px rgba(163, 177, 198, 0.3);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 320px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--prism-2);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(163, 177, 198, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a:hover {
    color: var(--prism-2);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .title-xl {
        font-size: 4rem;
    }

    .hero-grid,
    .about-grid,
    .dashboard-container,
    .contact-wrapper {
        gap: 3rem;
    }
}

@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .dashboard-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 450px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 3rem;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-container {
        padding: 3rem;
    }

    .dash-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dash-btn {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--trans-slow);
    }

    .main-nav.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .title-xl {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .dash-btn {
        width: 100%;
    }

    .dash-display {
        padding: 2rem;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .legal-container {
        padding: 2rem;
    }

    .cta-box {
        padding: 4rem 2rem;
    }
}