/* ==========================================================================
   1. ROOT VARIABLES & THEME CONFIGURATION
   ========================================================================== */
:root {
    /* Brand Palette - Theme: "Solar Teal" (no violet/indigo, still futuristic) */
    --color-primary: #14b8a6;
    /* Teal 500 */
    --color-primary-light: #5eead4;
    /* Teal 200 */
    --color-secondary: #f59e0b;
    /* Amber 500 */
    --color-accent: #22d3ee;
    /* Cyan 400 */
    --color-danger: #fb7185;
    /* Rose 400 */
    --color-success: #22c55e;
    /* Green 500 */

    /* Backgrounds & Surfaces */
    --bg-body: #040a12;
    /* Deep navy-black */
    --bg-surface: #071827;
    /* Dark teal-navy */
    --bg-surface-light: #0b2236;
    /* Surface */
    --bg-glass: rgba(7, 24, 39, 0.62);
    --bg-glass-border: rgba(255, 255, 255, 0.10);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --text-primary: #f8fafc;
    --text-secondary: #a3b2c7;
    --text-tertiary: #7c8aa2;

    /* Dimensions */
    --header-height: 90px;
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --glow-primary: 0 0 22px rgba(20, 184, 166, 0.30);
    --glow-accent: 0 0 22px rgba(245, 158, 11, 0.28);
    --shadow-card: 0 12px 32px -12px rgba(0, 0, 0, 0.55);

    /* Animation Timing */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   2. RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--bg-surface-light), var(--color-primary));
    border-radius: 6px;
    border: 3px solid var(--bg-body);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-spacing {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    z-index: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--glow-primary);
    border: 1px solid transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    z-index: -1;
    transition: opacity 0.4s;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    height: 70px;
    border-bottom: 1px solid var(--bg-glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 45px;
    width: auto;
    filter: brightness(1) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: white;
}

.nav-item:hover::after {
    width: 100%;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Grid Background Effect */
.bg-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 25px;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 580px;
    opacity: 0;
    animation: fadeUp 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 1s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 3D Dashboard Mockup in CSS */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.dashboard-card {
    position: absolute;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--bg-glass-border);
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.card-main {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    transform: rotateY(-10deg) rotateX(5deg);
    z-index: 2;
}

.card-stat {
    width: 200px;
    height: 120px;
    bottom: 40px;
    left: -40px;
    padding: 20px;
    z-index: 3;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(50px);
    animation: float 6s ease-in-out infinite reverse;
}

.card-graph {
    width: 220px;
    height: 140px;
    top: 40px;
    right: -20px;
    padding: 20px;
    z-index: 1;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-40px);
    background: var(--bg-surface-light);
}

/* Mock Graphics inside cards */
.mock-line {
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    margin-bottom: 15px;
    width: 100%;
}

.mock-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    margin-top: 20px;
}

.mock-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-accent));
    border-radius: 4px;
    opacity: 0.8;
}

/* ==========================================================================
   5. SERVICES (Grid & Hover Effects)
   ========================================================================== */
.services-section {
    position: relative;
    z-index: 2;
}

.section-head {
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-surface-light);
    border: 1px solid var(--bg-glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #232d42;
    box-shadow: var(--shadow-card);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.s-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary-light);
    margin-bottom: 24px;
    transition: 0.3s;
}

.service-card:hover .s-icon {
    background: var(--color-primary);
    color: white;
}

.feature-list {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ==========================================================================
   6. INTERACTIVE CALCULATOR
   ========================================================================== */
.calc-section {
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-body));
}

.calc-container {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    box-shadow: var(--shadow-card);
}

.calc-sliders .slider-group {
    margin-bottom: 35px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.slider-val {
    color: var(--color-accent);
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: var(--bg-surface-light);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border: 3px solid var(--bg-body);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-display {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    border: 1px solid var(--bg-glass-border);
}

.res-item {
    margin-bottom: 30px;
}

.res-item:last-child {
    margin-bottom: 0;
}

.res-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.res-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* ==========================================================================
   7. CAMPAIGN REPORT / TABS
   ========================================================================== */
.report-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.report-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    font-size: 1.1rem;
}

.tab-btn.active {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}

.report-card {
    background: var(--bg-surface-light);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
}

/* CSS-Only Donut Chart */
.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) 0% 65%,
            var(--color-accent) 65% 85%,
            var(--bg-surface) 85% 100%);
    position: relative;
    margin: 0 auto;
}

.donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* ==========================================================================
   8. TESTIMONIALS & INDUSTRIES
   ========================================================================== */
.industry-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.industry-scroll::-webkit-scrollbar {
    display: none;
}

.ind-card {
    min-width: 250px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: 0.3s;
}

.ind-card:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

/* Testimonials Masonry-ish */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.test-card {
    background: var(--bg-surface-light);
    padding: 30px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    position: relative;
}

.test-quote {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ==========================================================================
   9. CONTACT PAGE
   ========================================================================== */
.contact-hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    background: var(--bg-surface);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 100px;
}

.contact-details {
    background: var(--bg-glass);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-glass-border);
}

.c-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.c-icon {
    width: 45px;
    height: 45px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form-panel {
    background: var(--bg-surface-light);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-glass-border);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.field-group {
    margin-bottom: 25px;
}

.field-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--bg-glass-border);
    padding: 15px;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.form-textarea {
    height: 160px;
    resize: none;
}

/* ==========================================================================
   10. LEGAL PAGES
   ========================================================================== */
.legal-container {
    padding: 150px 0 100px;
}

.legal-doc {
    background: var(--bg-surface-light);
    padding: 60px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
}

.legal-doc h2 {
    color: var(--color-primary-light);
    margin-top: 40px;
    font-size: 1.5rem;
}

.legal-doc ul {
    padding-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
    color: var(--text-secondary);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-glass-border);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 20px;
    max-width: 300px;
    color: var(--text-secondary);
}

.f-link {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: 0.2s;
}

.f-link:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.newsletter-box {
    display: flex;
    margin-top: 20px;
}

.newsletter-box input {
    background: var(--bg-body);
    border: 1px solid var(--bg-glass-border);
    padding: 10px 15px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: white;
    border-right: none;
    width: 100%;
}

.newsletter-box button {
    background: var(--color-primary);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: white;
    cursor: pointer;
}

/* ==========================================================================
   12. ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(5deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .test-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid var(--bg-glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}