/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Deep Quantum Theme */
    --color-bg-dark: #060913;
    /* Near-black blue */
    --color-bg-secondary: #0d1224;
    /* Midnight surface */
    --color-bg-accent: #151b33;
    /* Lifted indigo surface */

    --color-primary: #22d3ee;
    /* Neon Cyan */
    --color-secondary: #6366f1;
    /* Indigo */
    --color-tertiary: #22c55e;
    /* Signal Green */

    --color-text-white: #f8fafc;
    --color-text-gray: #9ca3af;
    --color-text-muted: #6b7280;

    --gradient-main: linear-gradient(135deg,
            var(--color-primary),
            var(--color-secondary));
    --gradient-warm: linear-gradient(135deg,
            var(--color-secondary),
            var(--color-tertiary));
    --gradient-glow: radial-gradient(circle at center,
            rgba(34, 211, 238, 0.18),
            transparent 70%);

    /* Typography */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-warm);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Scroll Animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Shapes Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

.site-header.scrolled {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    /* In case user doesn't load image, style alt text */
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, #16203a 0%, var(--color-bg-dark) 60%);
}

.hero-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-main);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.2;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-bg-shape-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--color-tertiary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    bottom: -50px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #b4b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .highlight {
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.3);
    z-index: -1;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero Visual Animation CSS Only */
.hero-visual {
    position: relative;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
}

.dashboard-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    width: 48%;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-white);
}

.stat-increase {
    color: #10b981;
    font-size: 0.8rem;
    margin-left: 5px;
}

.graph-mock {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    width: 100%;
    background: var(--gradient-main);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    position: relative;
    transition: height 1s ease;
}

.bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-tag {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-accent);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--gradient-main);
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link span {
    margin-left: 5px;
    transition: margin 0.3s;
}

.service-card:hover .service-link span {
    margin-left: 10px;
}

/* =========================================
   6. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    position: relative;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.calc-container {
    background: linear-gradient(145deg, #111625, #0d111c);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-text-white);
}

.range-wrap {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #2d3748;
    border-radius: 2px;
}

.calc-results {
    background: var(--gradient-main);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: float 10s infinite linear;
}

.result-box {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.result-box h4 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
}

/* =========================================
   7. CAMPAIGN REPORT / VISUAL SECTION
   ========================================= */
.report-section {
    background-color: var(--color-bg-secondary);
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.report-visual-wrapper {
    position: relative;
}

.report-main-card {
    background: #1a2238;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.report-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
}

.report-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.floating-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3;
    width: 200px;
    animation: float 4s ease-in-out infinite;
}

.floating-card h5 {
    color: #333;
    font-size: 0.9rem;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--color-tertiary) 75%, #eee 0);
    margin: 10px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::after {
    content: '75%';
    position: absolute;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=') repeat;
    text-align: center;
}

.testimonial-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 20px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.4;
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.slider-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* =========================================
   9. CONTACT PAGE
   ========================================= */
.contact-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, #111625, var(--color-bg-dark));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info-card {
    background: var(--color-bg-accent);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-right: 20px;
    flex-shrink: 0;
}

.form-box {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* =========================================
   10. LEGAL PAGES & FOOTER
   ========================================= */
.legal-content {
    padding-top: 150px;
    padding-bottom: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    color: var(--color-primary);
}

.site-footer {
    background-color: #05070c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text-gray);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    background: #020305;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* =========================================
   11. RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {

    .hero-content,
    .report-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 50px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .report-main-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-card {
        right: 0;
        bottom: -50px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #111625;
        padding: 80px 40px;
        transition: 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}