/* Design System: Corporate Dark Mode / Forensics */
:root {
    --bg-obsidian: #0A0E13;
    --bg-slate-darker: #121820;
    --bg-slate-dark: #1A222C;

    --text-pure: #ffffff;
    --text-slate-light: #E2E8F0;
    --text-slate-muted: #94A3B8;

    --accent-cyan: #00F2FE;
    --accent-cyan-dark: #0099cc;
    --accent-gold: #D4AF37;
    --accent-red: #EF4444;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-pure);
    line-height: 1.2;
}

.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

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

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-white {
    color: var(--text-pure);
}

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

.text-gold {
    color: var(--accent-gold);
}

.text-red {
    color: var(--accent-red);
}

.text-slate-muted {
    color: var(--text-slate-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 4rem;
    }
}

.massive-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.text-glow-accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Background Utilities */
.bg-obsidian {
    background-color: var(--bg-obsidian);
}

.bg-cyan {
    background-color: var(--accent-cyan);
}

.bg-slate-darker {
    background-color: var(--bg-slate-darker);
}

.bg-black {
    background-color: #000;
}

.bg-slate-800 {
    background-color: #1e293b;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--bg-slate-darker) 0%, #0d1a26 100%);
    border-top: 1px solid rgba(0, 242, 254, 0.1);
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--bg-obsidian), #000000);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section {
    padding: 6rem 0;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-20 {
    margin-top: 5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pl-4 {
    padding-left: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.p-8 {
    padding: 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.grid {
    display: grid;
}

@media (min-width: 768px) {
    .md-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.-z-10 {
    z-index: -10;
}

.clear-both {
    clear: both;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.shrink-0 {
    flex-shrink: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-full {
    width: 100%;
}

.h-32 {
    height: 8rem;
}

/* Borders & Rounded */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-style: solid;
}

.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
}

.border-l-4 {
    border-left-width: 4px;
    border-style: solid;
}

.border-slate-800 {
    border-color: #1e293b;
}

.border-slate-700 {
    border-color: #334155;
}

.border-gold {
    border-color: var(--accent-gold);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(10, 14, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(10, 14, 19, 0.95);
    border-bottom-color: rgba(0, 242, 254, 0.2);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-earth {
    color: var(--text-pure);
}

.logo-forensic {
    color: var(--accent-red);
    font-weight: 400;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-slate-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-cyan-dark);
    color: var(--text-pure);
    border-color: var(--accent-cyan-dark);
    box-shadow: 0 4px 14px rgba(0, 153, 204, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-pure);
}

.btn-secondary.border-gold {
    border-color: var(--accent-gold);
}

.btn-secondary.hover-gold:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--text-pure);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.shadow-glow {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
}

.shadow-glow:hover {
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: radial-gradient(circle at center, #121E2A 0%, var(--bg-obsidian) 70%);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-slate-muted);
    font-weight: 400;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.badge-tech {
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Problem Section */
.stat-big {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-pure);
}

.danger-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.danger-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--accent-red);
    border-radius: 0 4px 4px 0;
}

.danger-list i {
    color: var(--accent-red);
    font-size: 1.25rem;
}

/* About Section */
.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.huge-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Services section */
.service-card {
    background: transparent;
    perspective: 1000px;
    height: 100%;
    min-height: 420px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    background: var(--bg-obsidian);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.service-card-front {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.transform {
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
}

.service-card-back {
    transform: rotateY(180deg);
    justify-content: center;
    overflow-y: auto;
}

/* Scrollbar adjustment for card back */
.service-card-back::-webkit-scrollbar {
    width: 4px;
}

.service-card-back::-webkit-scrollbar-track {
    background: transparent;
}

.service-card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrap {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--text-pure);
    line-height: 1.3;
}

.service-card ul {
    list-style: none;
    color: var(--text-slate-light);
}

.service-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Methodology */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan) 0%, var(--accent-gold) 100%);
}

.timeline li {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-obsidian);
    border: 2px solid var(--accent-cyan);
    z-index: 2;
}

.timeline li:last-child .timeline-dot {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.timeline h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Custody */
.panel-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-slate-light);
}

.check-list i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

.diff-list {
    list-style: none;
}

.diff-list li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-list li:last-child {
    border-bottom: none;
}

/* Carousel Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee Animation for Alliances */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    animation: marquee 25s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Observers applied by JS */
.observe-fade-up,
.observe-fade-left,
.observe-fade-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-fade-up {
    transform: translateY(40px);
}

.observe-fade-left {
    transform: translateX(40px);
}

.observe-fade-right {
    transform: translateX(-40px);
}

.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .section {
        padding: 4rem 0;
    }

    .lg-mt-12 {
        margin-top: 3rem;
    }
}