/* ==========================================================================
   Zolak Group — Custom Stylesheet
   Extracted from the original Landingpage ZK-final.html <style> block.
   Everything here drives layout, animation states, and component visuals
   that Tailwind classes alone can't express cleanly.
   ========================================================================== */

:root {
    --bg-base:     #030303;
    --bg-surface:  #0A0A0A;
    --bg-elevated: #111111;
    --text-main:   #FFFFFF;
    --text-muted:  #666666;
    /* Color corporativo ZOLAK — amarillo puro de los PNG originales (ZolakGroup Marca/) */
    --accent:      #FFFF00;
    --accent-rgb:  255, 255, 0;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

html, body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    transition: background 0.3s;
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid var(--text-main);
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}
.cursor-outline.hover {
    width: 80px; height: 80px;
    background: var(--text-main);
    mix-blend-mode: difference;
}
/* When hovering over an accent-colored button, swap to dark cursor */
.cursor-outline.hover.cursor-black {
    background: rgba(3, 3, 3, 0.08);
    border-color: #030303;
    mix-blend-mode: normal;
}
.cursor-dot.cursor-black {
    background: #030303;
}
@media (max-width: 1024px) {
    html, body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
}

/* ---------- Grain Texture Overlay ---------- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

/* ---------- Font Helpers ---------- */
.font-display { font-family: 'Sora', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ---------- Accent / Surface Tokens ---------- */
.text-accent   { color: var(--accent); }
.bg-accent     { background-color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.border-subtle { border-color: var(--border-color); }
.bg-surface    { background-color: var(--bg-surface); }
.bg-elevated   { background-color: var(--bg-elevated); }

/* ---------- Hero Canvas (particles) ---------- */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* ---------- Preloader Overlay ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #030303;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ---------- Scramble Text Helper ---------- */
.scramble-text { display: inline-block; }

/* ---------- Spotlight Grid (Expertise cards) ---------- */
.spotlight-grid { position: relative; }

.spotlight-card {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y);
    left: var(--mouse-x);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }

/* ---------- RGB Glitch on Hover (Solutions headings) ---------- */
.rgb-hover {
    position: relative;
    transition: text-shadow 0.1s;
}
.rgb-hover:hover {
    text-shadow: 2px 0 #ff0000, -2px 0 #00ffff;
    animation: rgb-shake 0.2s infinite;
}
@keyframes rgb-shake {
    0%   { transform: translate(0); }
    25%  { transform: translate(-1px, 1px); }
    50%  { transform: translate(1px, -1px); }
    75%  { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, 1px); }
}

/* ---------- Magnetic Button ---------- */
.btn-magnetic {
    transition: transform 0.2s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(var(--accent-rgb), 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: -1;
}
.btn-magnetic:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---------- Horizontal Scroll Panels (Solutions) ---------- */
.solution-panel {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 6rem;
    position: relative;
    flex-shrink: 0;
}

/* On tablet/mobile, stack the panels vertically (one after another) */
@media (max-width: 1024px) {
    #solutions-track {
        flex-direction: column;
    }
    .solution-panel {
        min-width: 0;
        width: 100%;
        height: auto;
        min-height: 80vh;
        padding: 4rem 1.5rem;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }
    .solution-panel:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .solution-panel {
        padding: 3rem 1.25rem;
        min-height: 70vh;
    }
}

/* ---------- Hidden Scrollbar ---------- */
::-webkit-scrollbar { width: 0px; }

/* ---------- Path Draw Animation ---------- */
.path-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .path-draw { stroke-dashoffset: 0 !important; }
}

/* ---------- Mobile Performance: hide heavy canvas on tiny screens ---------- */
@media (max-width: 480px) {
    #hero-canvas,
    #cta-canvas {
        display: none;
    }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
    /* Hero stats card: tighter padding so the 3D look survives on phones */
    #hero-card {
        padding: 1rem !important;
        font-size: 0.7rem;
    }
    /* The big "01, 02, 03..." counter numbers in solution panels */
    .solution-panel .font-display.text-6xl,
    .solution-panel .font-display.xl\:text-9xl {
        font-size: 3.5rem !important;
    }
    /* Headings in solution panels: smaller on phones */
    .solution-panel h3 {
        font-size: 2rem !important;
        line-height: 1.1;
    }
    /* Disable 3D tilt on hero card (looks broken on small screens) */
    #hero-card {
        transform: none !important;
    }
}

/* ---------- Form status visuals ---------- */
.form-status-success { color: var(--accent); }
.form-status-error   { color: #ff6b6b; }
