/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* "Neo-Agency" Light Palette */
    --brand-primary: #1e40af;
    /* Royal Blue */
    --brand-dark: #0f172a;
    /* Navy Black */
    --brand-light: #f8fafc;
    /* Off White */
    --brand-accent: #0ea5e9;
    /* Electric Blue */
    --brand-success: #10b981;
    /* Data Green */

    --text-head: #1e293b;
    --text-body: #475569;

    --glass-white: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(30, 64, 175, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

    --header-h: 90px;
    --container-w: 1280px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Manrope', sans-serif;
    /* Modern Corporate Font */
    background-color: var(--brand-light);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-head);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.text-accent {
    color: var(--brand-accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Utilities */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hidden {
    display: none;
}

.section-pad {
    padding: 8rem 0;
}

.bg-white {
    background: #fff;
}

.bg-light {
    background: #f1f5f9;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-solid {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.4);
}

.btn-solid:hover {
    transform: translateY(-3px);
    background: var(--brand-dark);
    box-shadow: 0 15px 30px -5px rgba(30, 64, 175, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-ghost:hover {
    background: var(--brand-primary);
    color: white;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.nav-wrapper {
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    filter: invert(1) brightness(0.2);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--text-head);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* Mobile Menu Trigger */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--brand-dark);
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    overflow: hidden;
    transition: height 0.4s var(--ease-out-expo);
    z-index: 999;
}

.mobile-overlay.open {
    height: calc(100vh - var(--header-h));
    border-bottom: 2px solid var(--brand-accent);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
    list-style: none;
}

.mobile-links a {
    font-size: 1.5rem;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
}

/* =========================================
   3. HERO SECTION (Parallax & shapes)
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 6rem;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

/* Background Shapes */
.hero-bg-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.05), rgba(14, 165, 233, 0.05));
    top: -100px;
    right: -100px;
    animation: pulseShape 10s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(30, 64, 175, 0.1);
    bottom: 50px;
    left: -50px;
    animation: rotateShape 20s infinite linear;
}

.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e0f2fe;
    color: var(--brand-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid #bae6fd;
}

/* CSS Illustrated Dashboard */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1200px;
}

.dash-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    position: absolute;
    transition: transform 0.3s;
}

.dash-main {
    width: 400px;
    height: 280px;
    top: 20%;
    left: 10%;
    z-index: 2;
    padding: 1.5rem;
    animation: floatY 6s ease-in-out infinite;
}

.dash-sub {
    width: 200px;
    height: 120px;
    bottom: 20%;
    right: 10%;
    z-index: 3;
    padding: 1rem;
    background: var(--brand-dark);
    color: white;
    animation: floatY 8s ease-in-out infinite reverse;
}

.dash-bg-el {
    width: 300px;
    height: 300px;
    background: var(--brand-accent);
    top: 10%;
    right: 0;
    border-radius: 40px;
    transform: rotate(15deg) translateZ(-50px);
    opacity: 0.1;
    z-index: 1;
}

/* CSS Charts inside Dash Main */
.css-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    margin-top: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.graph-bar {
    width: 12%;
    background: var(--brand-primary);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
}

/* =========================================
   4. SERVICES (Cards with Hover Lift)
   ========================================= */
.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.s-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.service-card:hover .s-icon {
    background: var(--brand-primary);
    color: white;
}

/* =========================================
   5. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-ui {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    margin: 1rem 0 2rem;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--brand-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
    transition: 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calc-display {
    background: var(--brand-dark);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-display::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    opacity: 0.4;
}

/* =========================================
   6. SAMPLE REPORT (Timeline Style)
   ========================================= */
.report-section {
    background: var(--brand-dark);
    color: white;
}

.report-section h2,
.report-section p {
    color: white;
}

.timeline-report {
    position: relative;
    margin-top: 4rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
}

.t-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.6s ease-out;
}

.t-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.t-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--brand-accent);
    border: 4px solid var(--brand-dark);
    border-radius: 50%;
}

.t-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.t-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-success);
    display: block;
    margin-top: 0.5rem;
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contact-visual {
    background: var(--brand-primary);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMHY0MHoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvZz48L3N2Zz4=');
}

.contact-form-area {
    padding: 4rem;
    background: white;
    display: flex;
    align-items: center;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #cbd5e1;
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.input-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.3s;
}

.input-field:focus,
.input-field:valid {
    border-color: var(--brand-primary);
}

.input-field:focus~.input-label,
.input-field:valid~.input-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 700;
}

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-logo img {
    filter: invert(1) brightness(10);
    height: 45px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-list a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
}

/* Legal Pages Styling */
.legal-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 60px;
    min-height: 80vh;
}

.legal-body h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--brand-primary);
}

.legal-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--brand-dark);
    border-left: 4px solid var(--brand-accent);
    padding-left: 1rem;
}

.legal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   9. ANIMATION KEYFRAMES & MEDIA QUERIES
   ========================================= */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
}

@keyframes pulseShape {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes rotateShape {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .calculator-ui,
    .contact-split {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    /* Simplify mobile hero */
    .hero-text {
        margin: 0 auto;
    }

    .nav-menu,
    .desktop-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}