/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&display=swap');

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    /* Deep Carbon Black */
    --bg-card: #141414;
    /* Dark Card */
    --bg-card-hover: #1f1f1f;
    /* Hover Elevation */

    --primary-gradient: linear-gradient(135deg, #3CF8A1 0%, #9A4CFF 100%);
    /* Mint → Electric Violet */
    --primary-color: #3CF8A1;
    /* Neon Mint */
    --secondary-color: #9A4CFF;
    /* Electric Violet */

    --text-main: #ffffff;
    /* Pure White */
    --text-muted: #9c9c9c;
    /* Soft Grey */
    --border-dim: rgba(255, 255, 255, 0.1);
    /* Subtle Frost Border */

    /* Dimensions */
    --max-width: 1240px;
    --header-h: 90px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}


/* =========================================
   2. GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. UTILITY CLASSES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding: 120px 0;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 38px;
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =========================================
   4. HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 999;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    transition: 0.3s;
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 150px;
    overflow: hidden;
}

/* Background Abstract shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-dim);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 3D Card Effect for Hero Image Area */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
    /* JS driven */
}

.card-main {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    z-index: 2;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chart-line {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.bar {
    width: 100%;
    background: var(--bg-card-hover);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-gradient);
    transition: height 1s ease-out;
}

/* =========================================
   6. SERVICES
   ========================================= */
.services {
    background: #0f0f0f;
    position: relative;
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 calc(100% - 50px));
    padding: 150px 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--bg-dark);
    padding: 40px;
    border: 1px solid var(--border-dim);
    transition: 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-radius: 50%;
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.learn-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.learn-more i {
    transition: transform 0.3s;
}

.service-box:hover .learn-more i {
    transform: translateX(5px);
}

/* =========================================
   7. INTERACTIVE TOOL (ROI CALC)
   ========================================= */
.roi-section {
    background: url('../map-dark.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.roi-container {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-dim);
    padding: 50px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.roi-input-group {
    margin-bottom: 30px;
}

.roi-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.roi-label-row label {
    font-weight: 600;
    color: var(--text-muted);
}

.roi-label-row span {
    font-weight: 700;
    color: var(--primary-color);
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

.roi-result-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border-dim);
}

.result-val {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 15px 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   8. TESTIMONIALS (Scroll Snap)
   ========================================= */
.testimonials {
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 400px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    scroll-snap-align: start;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    color: #ddd;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: #050505;
    padding-top: 100px;
    border-top: 1px solid var(--border-dim);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    color: #555;
    border-top: 1px solid #111;
}

/* =========================================
   10. PAGE SPECIFIC: CONTACT & LEGAL
   ========================================= */
.page-header {
    padding-top: 200px;
    padding-bottom: 100px;
    text-align: center;
    background: radial-gradient(circle at top, #1a1a1a 0%, var(--bg-dark) 70%);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--border-dim);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.input-field {
    min-height: 150px;
    resize: vertical;
}

.legal-body {
    max-width: 900px;
    margin: 0 auto 100px;
}

.legal-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-body p,
.legal-body li {
    color: #ccc;
    margin-bottom: 15px;
}

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .stat-row {
        justify-content: center;
    }

    .roi-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-h));
        background: #111;
        flex-direction: column;
        padding: 40px;
        transition: 0.4s;
        border-left: 1px solid #333;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .review-card {
        min-width: 300px;
    }
}