/* =========================================
   1. CORE & VARIABLES
   ========================================= */
:root {
    --bg-color: #050505;
    /* Deep Charcoal */
    --text-main: #F0F0F0;
    /* Off-White */
    --text-muted: #888888;
    /* Gray */
    --accent: #FFFFFF;
    /* White Accent */
    --border: rgba(255, 255, 255, 0.1);

    --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-signature: 'Herr Von Muellerhoff', cursive;

    --container: 1200px;
    --padding-section: 120px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom Cursor enabled */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 200px;
    height: 200px;
    /* Doubled size */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Rotating Ring */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* 2. Logo Container & Mask */
.loader-mask {
    position: relative;
    width: 120px;
    height: 120px;
    /* Doubled size */
    overflow: hidden;
}

.loader-logo {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 1;
    /* More visible */
}

/* 3. Scan Line Overlay */
.loader-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, #fff 50%, transparent 60%);
    background-size: 100% 200%;
    animation: scanReveal 2s linear infinite;
    mix-blend-mode: overlay;
}

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

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

@keyframes scanReveal {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    /* Distinctive Boldness */
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.04em;
    /* Tight tracking */
}

p {
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.reveal-text,
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out);
}

.active .reveal-text,
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Custom Cursor */
/* Custom Cursor (Flashlight Halo) */
/* Custom Cursor (Flashlight Halo) */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    /* Increased opacity slightly since we removed overlay */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    /* Ensure top layer */
    /* mix-blend-mode: overlay; REMOVED to fix visibility issues */
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Halo Ring */
.cursor-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    /* Small, focused halo */
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.5;
}

/* Center Dot */
.cursor-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0 10px #fff;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons (Ghost/Minimalist) */
.btn-primary {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 18px 40px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #e0e0e0;
}

.btn-primary.large {
    padding: 24px 60px;
    font-size: 1.1rem;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Nav Links Container */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-cta:hover {
    opacity: 1;
}

/* Contact Button style in Nav */
.nav-cta.filled {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 700;
    opacity: 1;
}

.nav-cta.filled:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* =========================================
   5. SECTIONS
   ========================================= */
.section-padding {
    padding: var(--padding-section) 0;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
}

.parallax-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%) contrast(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), var(--bg-color));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.pre-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(3.5rem, 11vw, 9rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

/* PROBLEM / AUDIT */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.problem-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border initially */
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.5) 100%);
    transition: all 0.4s var(--ease-out);
}

.problem-card:hover {
    border-color: #fff;
    /* High contrast warning */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
    margin-bottom: 30px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.problem-card:hover .icon-box {
    color: #fff;
    /* Active state */
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.problem-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* SOLUTION */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 30px;
}

.solution-desc {
    margin-bottom: 40px;
    max-width: 450px;
}

.solution-checklist {
    list-style: none;
}

.solution-checklist li {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.check-icon {
    display: inline-block;
    width: 30px;
    font-size: 1rem;
    margin-right: 15px;
}

.solution-visual-col {
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

/* Tech Globe Animation */
/* 3D Globe Container (Canvas Parent) */
#globe-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Radial mask for depth */
    mask-image: radial-gradient(circle, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 100%);
}

#globe-container canvas {
    outline: none;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

@keyframes globeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}





/* FOUNDER */
.founder-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.founder-img {
    width: 100%;
    filter: grayscale(100%) contrast(1.1);
    display: block;
}

.founder-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    line-height: 1.1;
}

/* Social Dashboard (System UI Style) */
.social-dashboard {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.social-handle {
    font-family: 'Courier New', monospace;
    /* Tech/Code feel */
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid for system feel */
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.social-link svg {
    opacity: 0.7;
}

.social-link:hover svg {
    opacity: 1;
}

/* Footer Repeater */
.footer-social-repeater {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-social-repeater strong {
    color: #fff;
}

/* SERVICES */
.services-list {
    border-top: 1px solid var(--border);
}

.service-row {
    display: flex;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.service-index {
    font-size: 1.2rem;
    color: var(--text-muted);
    width: 60px;
    font-weight: 700;
}

.service-name {
    flex-grow: 1;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    padding-left: 20px;
}

.service-arrow {
    font-size: 2rem;
    opacity: 0.3;
    transform: rotate(-45deg);
    transition: 0.3s;
}

.service-row:hover .service-arrow {
    opacity: 1;
    transform: rotate(0);
}

/* FOOTER */
.main-footer {
    border-top: 1px solid var(--border);
}

.footer-headline {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 60px;
}

.footer-legal {
    margin-top: 100px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================
   6. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 900px) {
    :root {
        --padding-section: 80px;
    }

    .container {
        padding: 0 25px;
    }

    /* Mobile Nav */
    nav {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        background: rgba(0, 0, 0, 0.8);
        /* readable against bg */
        backdrop-filter: blur(10px);
    }

    .nav-links {
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        font-size: 0.75rem;
    }

    /* Grid Stacking */
    .problem-grid,
    .solution-grid,
    .founder-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Reorder Solution */
    .solution-text-col {
        order: 1;
    }

    .solution-visual-col {
        order: 2;
        height: 300px;
    }

    /* Services Stack */
    /* Services Stack */
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0;
    }

    .service-name {
        padding-left: 0;
        margin: 15px 0;
        font-size: 2rem;
    }

    .service-arrow {
        display: none;
    }

    /* Nav */
    nav {
        padding: 25px;
    }

    /* =================================
       MOBILE SPECIFIC OVERRIDES 
       ================================= */

    /* 1. Disable Custom Cursor (Performance + UX) */
    .cursor-dot {
        display: none !important;
    }

    /* 2. Prevent Horizontal Overflow */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 3. Typography Scaling */
    .hero-title {
        font-size: clamp(2.8rem, 12vw, 5rem);
        margin-left: 0;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    /* 4. Shape Sizing */
    .solution-visual-col,
    .circle-glitch {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .founder-quote {
        font-size: 1.5rem;
    }

    .signature {
        font-size: 2rem;
    }
}

/* =========================================
   7. CORPORATE PAGES (Services & Contact)
   ========================================= */

/* Page Headers */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

/* Services Page */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card-corp {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 40px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-corp:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-5px);
}

.service-card-corp h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-list {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.service-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '+';
    margin-right: 10px;
    color: #fff;
    font-family: monospace;
}

.service-price-tag {
    display: block;
    margin-top: 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
    letter-spacing: 0.1em;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Forms (High-End Overhaul) */
.corporate-form .form-group {
    margin-bottom: 40px;
    position: relative;
    /* For floating label */
}

/* Floating Label Logic */
.floating-label label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: var(--text-muted);
    transition: 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Minimal border */
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-stack);
    font-size: 1.1rem;
    transition: 0.3s;
    border-radius: 0;
    outline: none;
}

/* Focus & Filled States */
.floating-label input:focus~label,
.floating-label input:not(:placeholder-shown)~label,
.floating-label textarea:focus~label,
.floating-label textarea:not(:placeholder-shown)~label,
.floating-label select:focus~label,
.floating-label select:valid~label {
    top: -20px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Select specific tweaks */
.floating-label select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Animated Border Bottom */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: 0.4s;
}

.floating-label input:focus~.focus-border,
.floating-label textarea:focus~.focus-border,
.floating-label select:focus~.focus-border {
    width: 100%;
}

/* Valid/Invalid feedback */
.floating-label input:required:invalid {
    box-shadow: none;
    /* Remove Firefox red glow */
}

/* Form Status Message */
.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 20px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.05em;
}

.form-status.success {
    color: #4cd964;
    /* Success Green */
}

.form-status.error {
    color: #ff3b30;
    /* Error Red */
}

/* Contact Info Side */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 40px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.info-block {
    margin-top: 30px;
}

.info-block .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.info-block .value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.social-links-mini {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-links-mini a {
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 0.7;
}

.social-links-mini a:hover {
    opacity: 1;
}

/* Abstract Map */
.map-visual {
    width: 100%;
    height: 200px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.map-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-color) 90%);
}

.map-pin {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}