/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Cloud Growth */
    --primary-color: #2563eb;
    /* Trust Blue */
    --secondary-color: #f1f5f9;
    /* Cloud Gray */

    --accent-color: #22c55e;
    /* Growth Green */
    --highlight-color: #f97316;
    /* CTA Orange */

    --text-light: #dddddd;
    --text-dim: #88909b;
    --text-dark: #0f172a;

    --success-color: #22c55e;
    --border-color: #e2e8f0;

    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-accent {
    color: var(--accent-color);
}

.text-highlight {
    color: var(--highlight-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-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-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes backgroundScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. HEADER styles
   ========================================= */
.main-header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    filter: invert(1);
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

.active-link {
    color: var(--text-light);
    border-bottom: 2px solid var(--highlight-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

/* Abstract Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--highlight-color);
    bottom: 100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-visual {
    position: relative;
    animation: float 5s ease-in-out infinite;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Simulated Chart CSS */
.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 10px;
    margin-top: 20px;
}

.bar-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-visual {
    width: 30px;
    background: linear-gradient(to top, var(--accent-color), var(--highlight-color));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 1s ease;
}

.bar-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--highlight-color);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-color);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    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;
}

.icon-box svg {
    width: 30px;
    height: 30px;
    fill: var(--highlight-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--highlight-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
}

/* =========================================
   6. INTERACTIVE CALCULATOR SECTION
   ========================================= */
.calculator-section {
    padding: 100px 0;
    background-color: var(--primary-color);
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.calc-inputs {
    padding: 40px;
}

.calc-results {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    opacity: 0.8;
    transition: opacity .2s;
}

.range-slider:hover {
    opacity: 1;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.calc-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--highlight-color);
    margin-top: 5px;
}

.result-box {
    margin-bottom: 30px;
    text-align: center;
}

.result-box h4 {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-box .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* =========================================
   7. INDUSTRY & SAMPLE REPORT
   ========================================= */
.industry-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.report-visual {
    background: #0f172a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h5 {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.stat-card .val {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card .trend {
    font-size: 0.8rem;
}

.trend.up {
    color: var(--success-color);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonial-section {
    padding: 100px 0;
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: 50%;
}

/* =========================================
   9. FOOTER
   ========================================= */
.main-footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dim);
}

.footer-col ul li a:hover {
    color: var(--highlight-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    text-align: center;
    color: var(--text-dim);
}

/* =========================================
   10. LEGAL & CONTACT PAGE STYLES
   ========================================= */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9));
    padding: 180px 0 80px;
    text-align: center;
}

.legal-content,
.contact-content {
    background: var(--secondary-color);
    padding: 60px;
    border-radius: 15px;
    margin-bottom: 80px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.legal-content p,
.legal-content li {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    fill: white;
}

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}