/* ============================================
 *  SHIFTCLICKS — UNIVERSAL STYLESHEET
 *  style.css
 *  ============================================ */

:root {
    --p-blue: #2563eb;
    --p-glow: #0ea5e9;
    --p-bg: #0f121a;
    --p-text: #f8fafc;
    --p-muted: #64748b;
    --p-accent: #10b981;
    --grid-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ENHANCED ANIMATIONS FOR PREMIUM FEEL */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes fadeOutUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-30px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(30px); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--p-bg);
    color: var(--p-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ANIMATED BACKGROUND GRID */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
    opacity: 0.8;
}

/* NAVIGATION */
nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 18, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--p-text);
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    justify-self: start;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-self: center;
}

.nav-link {
    color: var(--p-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active { color: var(--p-text); text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.cta-nav {
    justify-self: end;
    padding: 10px 22px;
    font-size: 0.7rem;
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
    display: none;
}

/* LAYOUT */
.sc-content-limiter {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-section {
    padding: 100px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sc-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 50px;
}

/* TYPOGRAPHY */
h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

h1 span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
    text-transform: uppercase;
}

h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.sc-desc {
    color: var(--p-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

.sc-subtitle {
    color: var(--p-muted);
    font-size: 1rem;
    max-width: 580px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* COMPONENTS */
.status-badge {
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--p-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.cta-primary {
    background: var(--p-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.cta-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    animation: glow 1.5s ease-in-out;
}

.cta-primary:active {
    transform: translateY(0);
}

.sc-card-base {
    background: rgba(255, 255, 255, 0.01);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sc-card-base::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--p-blue);
    transition: height 0.3s ease;
}

.sc-card-base:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    animation: float 3s ease-in-out infinite;
}

.sc-card-base:hover::before { height: 100%; }

.data-readout {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--p-muted);
}
.data-readout span { color: var(--p-glow); font-weight: 800; }

.info-label {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--p-glow);
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center; gap: 8px;
}
.info-label::before { content: "["; color: var(--p-muted); }
.info-label::after { content: "]"; color: var(--p-muted); }

/* YIELD HUB & CHARTS */
.sc-yield-hub {
    width: 100%; border: 1px solid var(--border-color); border-radius: 12px;
    padding: 50px 40px; margin: 60px 0; background: rgba(255, 255, 255, 0.01);
}

.sc-chart-area {
    height: 400px; width: 100%; position: relative; background: #080a0f;
    border: 1px solid var(--border-color); margin-top: 90px; overflow: visible; padding-top: 60px;
}

.sc-svg { width: 100%; height: 100%; position: absolute; bottom: 0; left: 0; overflow: visible; }
.baseline-path { fill: none; stroke: var(--p-muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: 0.3; }
.path-growth {
    fill: none; stroke: var(--p-blue); stroke-width: 4; stroke-dasharray: 1200; stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2.5s ease-out;
}
.active .path-growth { stroke-dashoffset: 0; }

.peak-dot {
    position: absolute; left: 95%; bottom: 90%; width: 10px; height: 10px; background: #fff;
    transform: translate(-50%, 50%); box-shadow: 0 0 15px var(--p-blue); opacity: 0; transition: opacity 0.5s ease 2s;
}
.active .peak-dot { opacity: 1; }

.peak-label {
    position: absolute; left: 95%; bottom: 90%; background: var(--p-blue); color: #fff;
    padding: 8px 18px; font-weight: 900; font-size: 1.2rem; opacity: 0;
    transition: opacity 0.5s ease; transform: translate(-50%, -45px); text-align: center; border-radius: 4px;
}
.active .peak-label { opacity: 1; transition-delay: 2.5s; }

/* Stability Dashboard */
.stability-view {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    display: none; align-items: center; justify-content: center; background: #080a0f; transition: opacity 0.3s ease;
}

.stab-dashboard {
    display: flex; flex-direction: column; align-items: center; border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02); border-radius: 16px; padding: 25px 40px; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative; transition: all 0.3s ease; max-width: 600px; width: 95%;
}

@keyframes pulseText { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.stab-top-status {
    font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--p-muted); margin-bottom: 25px; width: 100%; text-align: center; transition: color 0.3s ease;
}

.stability-view.finished .stab-top-status { color: var(--p-accent); animation: pulseText 2s infinite ease-in-out; }

.stab-inner { display: flex; align-items: center; justify-content: center; width: 100%; }
.stab-left { position: relative; width: 160px; height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stab-svg { transform: rotate(-90deg); width: 160px; height: 160px; }
.stab-circle-bg { fill: none; stroke: var(--p-muted); stroke-width: 8; opacity: 0.1; }
.stab-circle-progress { fill: none; stroke: var(--p-blue); stroke-width: 8; stroke-dasharray: 440; stroke-dashoffset: 440; stroke-linecap: round; }
.stab-val { margin-top: 15px; font-size: 2.2rem; font-weight: 900; color: #fff; transition: color 0.3s ease; text-align: center; }
.stab-divider { width: 1px; height: 120px; background: rgba(255,255,255,0.1); margin: 0 40px; }
.stab-right { display: flex; flex-direction: column; gap: 20px; text-align: left; min-width: 180px; }
.stab-label-sm { font-family: monospace; font-size: 0.65rem; color: var(--p-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.stab-label-lg { font-size: 1.1rem; font-weight: 800; color: #fff; text-transform: uppercase; transition: color 0.3s ease; }

.stability-view.finished .stab-label-lg, .stability-view.finished .stab-val { color: var(--p-accent); }
.stability-view.finished .stab-circle-progress { stroke: var(--p-accent); }

/* Bar Chart */
.bar-view {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: none;
    align-items: flex-end; justify-content: center; gap: 60px; padding-bottom: 80px; opacity: 0;
    transition: opacity 0.3s ease; background: rgba(0, 0, 0, 0.4); border-radius: 8px;
}
.bar-col { display: flex; flex-direction: column; align-items: center; width: 120px; justify-content: flex-end; }
.bar-grey { width: 100%; height: 60px; background: var(--p-muted); opacity: 0.2; border-radius: 4px 4px 0 0; }
.bar-blue {
    width: 100%; height: 0; background: var(--p-blue); border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1); position: relative; box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
}
.bar-label { margin-top: 15px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.bar-val-top { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; font-weight: 900; color: #fff; }

/* JOBS */
.jobs-hero { padding: 120px 0 80px 0; text-align: center; }
.jobs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 60px auto 0; width: 100%; }
.jobs-stat-card { background: rgba(255, 255, 255, 0.01); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px 20px; text-align: center; }
.jobs-stat-number { font-size: 2.5rem; font-weight: 900; color: var(--p-glow); margin-bottom: 8px; }

/* CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 1000px; margin-bottom: 40px; }
.contact-role-card {
    padding: 30px; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(255,255,255,0.01);
    cursor: pointer; transition: 0.3s; text-align: left; position: relative; overflow: hidden;
}
.contact-role-card.selected { border-color: var(--p-blue); background: rgba(37,99,235,0.05); }
.contact-role-card.selected::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--p-blue); }
.role-icon { font-size: 1.5rem; margin-bottom: 12px; }
.role-title { font-size: 1rem; font-weight: 900; color: #fff; text-transform: uppercase; margin-bottom: 6px; }

.contact-form { border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; background: rgba(255,255,255,0.01); text-align: left; }
.form-section-label {
    font-family: monospace; font-size: 0.6rem; color: var(--p-glow); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px;
}
.form-section-label::before { content: "["; color: var(--p-muted); }
.form-section-label::after { content: "]"; color: var(--p-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.form-field label { font-size: 0.7rem; font-weight: 800; color: var(--p-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.form-field input, .form-field select, .form-field textarea {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 6px;
    padding: 12px 14px; color: var(--p-text); font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none; width: 100%;
}

.dynamic-section { display: none; }
.dynamic-section.visible { display: block; }

/* PRIVACY / TERMS */
.privacy-container { width: 100%; max-width: 800px; text-align: left; }
.privacy-intro { font-size: 1.1rem; line-height: 1.8; color: var(--p-text); padding: 30px; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(255,255,255,0.02); margin-bottom: 40px; }
.privacy-block { padding: 30px; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(255,255,255,0.01); margin-bottom: 20px; }
.privacy-item { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.privacy-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--p-glow); text-transform: uppercase; margin-bottom: 8px; }
.privacy-item p { color: var(--p-muted); font-size: 0.9rem; line-height: 1.7; }

/* FOOTER */
.sc-footer {
    padding-top: 40px;
    padding-bottom: 80px;
    opacity: 0.95;
    transition: opacity 0.6s ease;
}

.sc-footer.active {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sc-brand-finish {
    font-size: clamp(2rem, 10vw, 7rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    text-transform: uppercase;
    transition: all 0.6s ease;
}

.footer-copy {
    color: var(--p-muted);
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 800;
    transition: color 0.6s ease;
}

.footer-link {
    color: var(--p-glow);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* REVEAL ANIMATIONS WITH STAGGER AND ENHANCED FADE */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.stagger-1 { transition-delay: 0.1s; }
.reveal.stagger-2 { transition-delay: 0.2s; }
.reveal.stagger-3 { transition-delay: 0.3s; }
.reveal.stagger-4 { transition-delay: 0.4s; }
.reveal.stagger-5 { transition-delay: 0.5s; }

.active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* SECTION FADE EFFECTS */
.sc-section {
    position: relative;
}

.sc-section.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* PARAGRAPH AND TEXT FADE */
p, h1, h2, h3 {
    transition: opacity 0.6s ease;
}

/* SMOOTH SCROLL PARALLAX */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* HEADER FADE ON SCROLL */
h1, h2, h3 {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* PARAGRAPH FADE */
p {
    transition: opacity 0.4s ease;
}

/* CARD FADE EFFECTS */
.sc-card-base {
    transition: opacity 0.5s ease;
    will-change: opacity;
}

/* MODAL */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 18, 26, 0.95); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-content { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 12px; padding: 50px 40px; max-width: 600px; width: 90%; text-align: center; position: relative; }
.modal-close { position: absolute; top: 20px; right: 25px; color: var(--p-muted); font-size: 32px; cursor: pointer; }

/* MEDIA QUERIES */
@media (max-width: 950px) {
    .sc-row-grid, .contact-grid, .form-row, .jobs-stats { grid-template-columns: 1fr; }

    /* Navigation Mobile Optimization */
    nav {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 4%;
        gap: 10px;
        position: relative;
    }

    .logo {
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        order: 3;
        margin-top: 10px;
        position: static;
        background: transparent;
        z-index: auto;
        padding: 0;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile menu toggle button - SHOW on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        order: 2;
    }

    /* CTA Button Mobile */
    .cta-nav {
        padding: 8px 14px;
        font-size: 0.6rem;
        height: auto;
        white-space: nowrap;
        align-self: center;
    }

    /* Chart Mobile */
    .sc-chart-area { height: 350px; }
    .stab-inner { flex-direction: column; }
    .stab-divider { width: 100%; height: 1px; margin: 30px 0; }

    /* Hero Mobile */
    h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    .sc-desc {
        font-size: 0.95rem;
        max-width: 90%;
    }

    /* Card Mobile */
    .sc-card-base {
        padding: 25px 15px;
    }

    /* Dual CTA Grid Mobile */
    .dual-cta-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
}

/* Extra small devices */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    nav {
        padding: 12px 3%;
        gap: 8px;
    }

    .logo {
        font-size: 0.8rem;
    }

    .cta-nav {
        padding: 7px 12px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 6px 0;
    }

    .sc-section {
        padding: 40px 0;
    }

    .sc-card-base {
        padding: 20px 12px;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 16px;
    }

    h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    }

    h3 {
        font-size: 1rem;
    }

    .sc-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .cta-primary {
        padding: 12px 24px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Form Mobile */
    .form-row {
        gap: 12px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px;
        padding: 10px 12px;
    }

    /* Jobs Stats Mobile */
    .jobs-stat-card {
        padding: 16px 12px;
    }

    .jobs-stat-number {
        font-size: 1.8rem;
    }
}
