/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Dark Tech Theme */
    --primary-bg: #0b0c15;
    --secondary-bg: #151621;
    --card-bg: #1e1f2b;
    --accent-color: #6c63ff;
    --accent-hover: #5a52d5;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --gradient-1: linear-gradient(135deg, #6c63ff 0%, #ff6584 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(11, 12, 21, 0) 0%, #0b0c15 100%);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(108, 99, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    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. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 12, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    width: auto;
    /* Ensure white logo visibility if image is missing/dark */
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: block;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Background Animation Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    bg: #6c63ff;
    top: 20%;
    left: 10%;
    background: #6c63ff;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bg: #ff6584;
    bottom: 10%;
    right: 5%;
    background: #ff6584;
    animation-delay: -2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    bg: #00d4ff;
    top: 40%;
    left: 50%;
    background: #00d4ff;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    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;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 25px 0 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
}

/* Mockup Interface Animation */
.dashboard-mockup {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: hoverMockup 6s ease-in-out infinite;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.mockup-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.graph-line {
    height: 100px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(108, 99, 255, 0.2) 100%);
    position: relative;
    margin-top: 10px;
}

.graph-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.learn-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more:hover {
    gap: 10px;
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    background: var(--primary-bg);
    position: relative;
}

.calc-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

.calc-results {
    background: var(--gradient-1);
    border-radius: 15px;
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    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: rotate 20s linear infinite;
}

.result-box {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
}

/* =========================================
   7. PROCESS & REPORT
   ========================================= */
.process-section {
    background: var(--secondary-bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--accent-color);
    border: 4px solid var(--secondary-bg);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.report-demo {
    margin-top: 80px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.report-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.report-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.report-card strong {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
    display: block;
}

/* =========================================
   8. TESTIMONIALS & INDUSTRY
   ========================================= */
.testimonial-section {
    background: var(--primary-bg);
    text-align: center;
}

.testimonial-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 350px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    scroll-snap-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: #05060a;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    margin: 20px 0;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   10. PAGE SPECIFIC: LEGAL & CONTACT
   ========================================= */
.page-header {
    padding-top: 160px;
    padding-bottom: 80px;
    background: var(--secondary-bg);
    text-align: center;
}

.legal-content {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 80px;
}

.legal-content h3 {
    color: var(--accent-color);
    margin-top: 30px;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
    color: #ccc;
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--gradient-1);
    padding: 50px;
    color: white;
}

.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-form-box {
    padding: 50px;
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes hoverMockup {
    0% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-20px);
    }

    100% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text p {
        margin: 25px auto 40px;
    }

    .calc-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 30px;
    }

    .timeline-item:nth-child(even)::after {
        left: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-menu,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: white;
    }

    /* Mobile Menu Active State */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .calc-inputs {
        padding: 0;
    }

    .form-group input {
        font-size: 16px;
    }

    /* Prevent zoom on iOS */
    .contact-wrapper {
        border-radius: 10px;
    }

    .contact-info,
    .contact-form-box {
        padding: 30px 20px;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }
}