/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #07090e;
    --card-bg: rgba(13, 19, 32, 0.65);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(0, 242, 254, 0.25);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.4);
    --emerald: #05ffc5;
    --emerald-glow: rgba(5, 255, 197, 0.4);
    --red: #f43f5e;
    
    --font-primary: 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Glow Spots */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 40vh;
    right: -10vw;
    background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
}

.bg-glow-3 {
    bottom: -10vw;
    left: 20vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Typography & Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

h1, h2, h3 {
    font-family: var(--font-accent);
    font-weight: 700;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    color: #030712;
    box-shadow: 0 4px 15px -3px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px var(--cyan-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-family: var(--font-accent);
    margin-bottom: 1.25rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-btn {
    padding: 0.5rem 1.25rem;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Hero Widget (Dashboard Mockup) */
.hero-widget {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.8rem;
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.status-indicator-dot.pulse {
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.widget-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
}

.widget-chart-container {
    position: relative;
    height: 180px;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.widget-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s forwards ease-in-out;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.marker-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cyan);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--cyan);
    cursor: pointer;
}

.marker-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: var(--font-accent);
    white-space: nowrap;
    opacity: 0.8;
}

.widget-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-weight: 700;
}

.text-emerald {
    color: var(--emerald);
}

.text-cyan {
    color: var(--cyan);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-secondary);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tech Stack Section */
.tech-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-accent);
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-badge:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--cyan);
    transform: scale(1.05);
}

/* Calculator Section */
.calc-section {
    padding: 100px 0;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calc-info {
    max-width: 500px;
}

.text-left {
    text-align: left;
}

.calc-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calc-guide {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.guide-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(5, 255, 197, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(5, 255, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-accent);
}

.calc-card {
    padding: 2.5rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-value {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cyan);
}

/* Custom Range Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #1e293b;
    outline: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    cursor: pointer;
    border: 2px solid var(--bg-dark);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    cursor: pointer;
    border: 2px solid var(--bg-dark);
    transition: var(--transition);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.calc-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.result-label {
    color: var(--text-secondary);
}

.result-val {
    font-weight: 600;
}

/* Footer styling */
.footer {
    background: #04060a;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 80px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 450px;
    font-size: 0.9rem;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-title {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copy-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.decor-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-actions {
        display: flex;
        justify-content: center;
    }
    
    .calc-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .calc-info {
        text-align: center;
        margin: 0 auto;
    }
    
    .text-left {
        text-align: center;
    }
    
    .calc-guide {
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none; /* In a real app we'd have a mobile menu, but for single-page decoy this is standard to hide */
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .widget-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* =========================================================================
   Case Studies Section
   ========================================================================= */
.cases-section {
    padding: 80px 0;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.case-card {
    padding: 2.5rem;
}

.case-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(5, 255, 197, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(5, 255, 197, 0.2);
    font-family: var(--font-accent);
    margin-bottom: 1rem;
}

.case-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.case-body {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.case-metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.case-metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.metric-num {
    display: block;
    font-family: var(--font-accent);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 15px var(--cyan-glow);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.case-text strong {
    color: var(--text-primary);
}

/* =========================================================================
   Workload Methodology Timeline
   ========================================================================= */
.process-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.005);
    border-top: 1px solid rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--emerald) 50%, transparent 100%);
    opacity: 0.15;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
}

.timeline-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-num {
    border-color: var(--cyan);
    color: var(--emerald);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    flex-grow: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--card-border-hover);
    transform: translateX(5px);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================================================
   Responsive Adaptations
   ========================================================================= */
@media (max-width: 768px) {
    .case-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-metric-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-num {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
    }
    
    .timeline-item {
        gap: 1rem;
    }
}
