/* =========================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Brand Colors - Based on a 'Tech/Digital' Palette to contrast white logo */
    --primary-color: #0F172A;
    /* Deep Navy */
    --secondary-color: #3B82F6;
    /* Electric Blue */
    --accent-color: #8B5CF6;
    /* Vibrant Purple */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* Neutrals */
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --text-dark: #1E293B;
    --bg-light: #FFFFFF;
    --bg-off-white: #F1F5F9;
    --bg-dark: #020617;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 12px;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-neon: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--primary-color);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    /* Adjust based on your placeholder aspect ratio */
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensures logo is white if not already */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Animated Background Elements */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 0;
    left: -50px;
    animation-delay: -5s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
}

/* Creating a CSS-only Abstract Dashboard Graphic */
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition-slow);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services {
    padding: 8rem 0;
    background-color: var(--bg-off-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tag {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--secondary-color);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    opacity: 0.8;
}

.service-list {
    margin-top: 1.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.service-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

/* =========================================
   6. INTERACTIVE CALCULATOR SECTION
   ========================================= */
.calculator-section {
    padding: 8rem 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.calc-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calc-inputs label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-gray);
}

.input-group {
    margin-bottom: 2rem;
}

.input-range-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    appearance: none;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.calc-value {
    font-family: monospace;
    font-size: 1.2rem;
    color: white;
    min-width: 60px;
    text-align: right;
}

.calc-results {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box {
    margin-bottom: 2rem;
}

.result-box h4 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.result-box .big-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--success-color);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* =========================================
   7. INDUSTRY & SAMPLE REPORT
   ========================================= */
.industries {
    padding: 8rem 0;
    background: white;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.report-preview {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-top: 4rem;
    border: 1px solid #e2e8f0;
}

.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* CSS Drawing of a chart */
.css-chart {
    height: 300px;
    border-left: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 1rem;
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--secondary-color), var(--accent-color));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s ease;
}

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.pie-chart-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) 0% 60%,
            var(--accent-color) 60% 85%,
            #e2e8f0 85% 100%);
    margin: 0 auto;
    position: relative;
}

.pie-chart-placeholder::after {
    content: 'Traffic';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials {
    padding: 8rem 0;
    background-color: var(--bg-off-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(59, 130, 246, 0.2);
    font-family: serif;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--text-gray);
    border-radius: 50%;
}

/* =========================================
   9. CONTACT PAGE STYLES
   ========================================= */
.contact-hero {
    background-color: var(--primary-color);
    color: white;
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 5rem 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-content {
    padding: 8rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content p {
    color: #475569;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-gray);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 100%;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =========================================
   12. ANIMATION KEYFRAMES & UTILS
   ========================================= */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -30px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .dashboard-mockup {
        display: none;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.nav-active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .input-range-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}