@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #080D17;
    --color-bg-alt: #111A2C;
    --color-accent: #3498DB;
    --color-accent-hover: #2980B9;
    --color-text: #F1F5F9;
    --color-text-muted: #94A3B8;
    --color-border: #1E293B;
    
    --font-primary: 'Outfit', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.highlight {
    color: var(--color-accent);
}

/* Layout */
.container {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4.5rem 0;
}

/* Header & Nav */
header {
    background-color: rgba(8, 13, 23, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff !important;
}

.logo span {
    color: var(--color-accent);
}

.logo img {
    height: 85px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    color: var(--color-text-muted);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(52,152,219,0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(52,152,219,0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Features / Services Preview */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.feature-card p {
    flex-grow: 1;
}

/* Services Page */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg));
    border-bottom: 1px solid var(--color-border);
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-visual {
    flex: 1;
    background: var(--color-bg-alt);
    height: 300px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.service-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.contact-form {
    background-color: var(--color-bg-alt);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    font-weight: 500;
}
.form-status.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Footer */
footer {
    background-color: var(--color-bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    .nav-links.active {
        left: 0;
    }
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .service-detail, .service-detail:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animated Visual Blocks --- */
.service-visual {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-alt);
}

/* 1. Data Analytics Animation */
/* --- Advanced Analytics Dashboard --- */
.analytics-dashboard {
    background: #0f1319;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.a-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}
.a-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.a-status {
    font-size: 11px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.1);
    padding: 4px 8px;
    border-radius: 12px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16,185,129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129, 0); }
}

.a-hero-metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}
.a-hero-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.a-hero-value {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.a-unit {
    font-size: 16px;
    color: #00A3E0;
}
.a-trend {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.a-charts-row {
    display: flex;
    gap: 15px;
    flex: 1;
}
.a-box {
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.a-box-title {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.a-bar-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}
.a-bar {
    flex: 1;
    background: #00A3E0;
    border-radius: 2px 2px 0 0;
    transition: height 1s ease-in-out;
}
.a-spark-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.a-sparkline {
    width: 100%;
    height: 40px;
    overflow: visible;
}
.a-spark-path {
    fill: none;
    stroke: #00A3E0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.a-spark-dot {
    fill: #00A3E0;
    filter: drop-shadow(0 0 4px #00A3E0);
}
.a-accuracy-val {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: right;
}

/* 2. Custom Coding Animation (Terminal) */
.anim-code-window {
    width: 80%;
    height: 70%;
    background: #000;
    border-radius: 6px;
    border: 1px solid #333;
    position: absolute;
    top: 15%;
    left: 10%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.anim-code-header {
    height: 25px;
    background: #222;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}
.anim-code-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.anim-code-header .dot:nth-child(1) { background: #ff5f56; }
.anim-code-header .dot:nth-child(2) { background: #ffbd2e; }
.anim-code-header .dot:nth-child(3) { background: #27c93f; }

.anim-code-body {
    padding: 15px;
    color: #27c93f;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.anim-code-line {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid transparent;
    flex-shrink: 0;
}
.anim-code-line.l1 { width: 0; animation: typing 2s steps(30, end) forwards; }
.anim-code-line.l2 { width: 0; animation: typing 2s steps(30, end) 2s forwards; }
.anim-code-line.l3 { width: 0; animation: typing 2s steps(30, end) 4s forwards; }

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* 3. Bespoke Platforms (Mock Dashboard) */
.mock-dash-window {
    width: 90%;
    height: 80%;
    background: #0f1319;
    border-radius: 8px;
    position: absolute;
    top: 10%;
    left: 5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Outfit', sans-serif;
}

.mock-dash-header {
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    flex-shrink: 0;
}

.mock-dash-logo {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.mock-dash-date {
    font-size: 11px;
    color: #64748b;
}

.mock-dash-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 15px;
}

.mock-dash-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: mockScroll 12s ease-in-out infinite alternate;
}

.mock-row-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 4px;
    margin-bottom: -5px;
    text-align: left;
}

.mock-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mock-kpi-card {
    background: linear-gradient(135deg, rgba(20,26,35,0.9), rgba(28,37,50,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 12px;
    text-align: left;
}

.kpi-title {
    font-size: 10px;
    color: #a8dadc;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-bar-bg {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.kpi-bar-fg {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
}

.mock-pipeline-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-pipeline-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pl-name {
    font-size: 12px;
    color: #e1e8ed;
}

.pl-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pl-status.ok {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.pl-status.warn {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.mock-activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-activity {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-left: 2px solid var(--color-accent);
    border-radius: 0 4px 4px 0;
    text-align: left;
}

@keyframes smoothPan {
    0%, 10% { transform: translateY(0); }
    90%, 100% { transform: translateY(-160px); }
}

/* --- Native Mock Views --- */
.mock-view {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}
.mock-view.active {
    opacity: 1;
    visibility: visible;
}

.mock-dash-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: smoothPan 12s ease-in-out infinite alternate;
}

/* Office Screen Specifics */
.mock-office-card {
    background: rgba(16,185,129,0.05);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.office-stat-title {
    font-size: 11px;
    color: #10B981;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}
.office-stat-val {
    font-size: 32px;
    color: #fff;
    font-weight: 800;
}
.mock-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.leader-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.leader-rank {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    width: 20px;
}
.leader-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    width: 60px;
}
.leader-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.leader-bar div {
    height: 100%;
    border-radius: 4px;
}
.leader-score {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    width: 25px;
    text-align: right;
}

/* Scheduling Specifics */
.mock-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 8px;
}
.sched-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.sched-track {
    flex: 1;
    height: 24px;
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.sched-job {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 3px;
    border-left: 3px solid;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 5px;
    overflow: hidden;
    white-space: nowrap;
}

/* --- Mobile Specific Fixes for Visuals --- */
@media (max-width: 768px) {
    .service-visual {
        width: 100% !important;
        height: 450px !important;
        min-height: 450px !important;
    }
    .analytics-dashboard, .mock-dash-window {
        min-height: 400px;
    }
    .a-hero-value {
        font-size: 32px;
    }
    .a-charts-row {
        flex-direction: column;
    }
    .a-box {
        flex: none !important;
    }
    .a-spark-container {
        height: 60px;
    }
    .mock-dash-header .mock-dash-logo {
        font-size: 14px;
    }
    .office-stat-val {
        font-size: 24px;
    }
    .app-row-name, .app-row-meta {
        font-size: 11px;
    }
}
