@charset "UTF-8";
/* ==========================================================================
   ECHO://OS MASTER STYLESHEET - MOBILE APP ARCHITECTURE (ENHANCED COLOR)
   ========================================================================== */

:root {
    /* MODERN APP PALETTE (SLATE DARK) */
    --app-primary: #3b82f6;       /* Clean Blue */
    --app-primary-glow: rgba(59, 130, 246, 0.1);
    
    --app-secondary: #6366f1;     /* Indigo */
    --app-secondary-glow: rgba(99, 102, 241, 0.1);
    
    --app-accent: #10b981;        /* Emerald Green */
    --app-accent-glow: rgba(16, 185, 129, 0.1);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-gold: #f59e0b;         /* Amber */

    /* DEPTH PALETTE */
    --bg-deep: #020617;           /* Slate 950 */
    --bg-app: #0f172a;            /* Slate 900 */
    --bg-surface: #1e293b;        /* Slate 800 */
    --bg-surface-alt: #334155;    /* Slate 700 */
    
    --border-main: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);

    /* SIZING */
    --app-width: 100%;
    --header-height: 65px;
    --nav-height: 75px;
    --base-scale: clamp(10px, 0.7vw + 7px, 13px);
}

/* 1. RESET & GLOBAL APP STYLES */
*{
    margin:0;
    padding:0;
    box-sizing:border-box; 
    -webkit-tap-highlight-color: transparent;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Accessibility: Visible Focus States */
:focus-visible {
    outline: 2px solid var(--app-primary);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--app-primary);
    color: #fff;
    padding: 10px 20px;
    z-index: 10000009;
    font-weight: bold;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

a { text-decoration: none; }

html {
    height: 100%;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.9rem;
}

/* THE APP CANVAS */
.app-container {
    flex: 1;
    width: 100%;
    background: var(--bg-app);
    display: flex;
    flex-direction: row; /* Sidebar + Main Content */
    overflow: hidden;
    position: relative;
}

/* SIDEBAR (IDE ACTIVITY BAR) */
.app-nav {
    width: 70px;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 10000006;
    flex-shrink: 0;
}

.nav-logo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--app-primary);
    flex-shrink: 0;
    padding: 0 10px;
    white-space: nowrap;
}

.nav-scroll-group {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-scroll-group::-webkit-scrollbar {
    width: 4px;
}

.nav-scroll-group::-webkit-scrollbar-thumb {
    background: var(--border-main);
    border-radius: 2px;
}

.nav-footer {
    width: 100%;
    border-top: 1px solid var(--border-main);
    flex-shrink: 0;
}

.nav-item {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-item i { font-size: 1.2rem; }
.nav-item span { display: none; } /* Icons only */

.nav-item:hover {
    color: var(--app-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--app-primary);
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--app-primary);
}

/* CONTENT AREA */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-app);
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: var(--border-main); border-radius: 3px; }

/* BREADCRUMB (CLEAN STYLE) */
.breadcrumb-nav {
    padding: 10px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-main);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10000008;
}
.breadcrumb-back {
    color: var(--app-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.breadcrumb-back:hover {
    background: rgba(255, 255, 255, 0.05);
}
.breadcrumb-content { display: flex; gap: 10px; flex: 1; justify-content: center; align-items: center; }
.breadcrumb-item { color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.breadcrumb-item a { color: inherit; text-decoration: none; }
.breadcrumb-item.active { color: var(--text-primary); }

/* MAIN AREA WRAPPER */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* APP FOOTER (BOTTOM BAR) */
.app-footer {
    height: 50px;
    display: flex;
    flex-direction: column; /* Stack title and preview */
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: linear-gradient(to top, var(--bg-surface), var(--bg-app));
    border-top: 1px solid var(--border-main);
    z-index: 10000001;
    margin-top: auto; /* Push to bottom of app-main */
    position: relative;
    overflow: hidden;
}

.app-title {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--app-primary);
    text-shadow: 0 0 10px var(--app-primary-glow);
    transition: all 0.3s ease;
}

.footer-status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: rgba(0, 255, 157, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 0.5rem;
    color: var(--app-primary);
    font-family: monospace;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.2s ease;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
}

.footer-status-bar.active {
    opacity: 1;
    transform: translateY(0);
}

.status-prefix {
    color: var(--text-gold);
    margin-right: 8px;
    font-weight: bold;
}

.status-url {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

/* 2. COMPONENTS (APP UI) */
.terminal-card, .project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}

.terminal-card:hover, .project-card:hover {
    background: var(--bg-surface-alt);
    border-color: var(--app-primary);
}

.card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}
.card-title { 
    color: var(--text-gold); 
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

h2 {
    font-size: 1rem;
    color: var(--app-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.matrix-btn, .terminal-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid var(--app-primary);
    background: var(--app-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.matrix-btn:hover, .terminal-btn:hover {
    background: var(--app-primary);
    filter: brightness(1.1);
}

/* EFFECTS REMOVED */
.scanner, .crt { display: none; }

/* PRICING */
.pricing-card {
    border: 2px solid var(--text-gold);
}

/* FORMS */
.terminal-input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.terminal-input:focus {
    border-color: var(--app-primary);
    outline: none;
    background: rgba(255,255,255,0.05);
}

/* FILE TREE */
.file-tree {
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.8rem;
}
.tree-root {
    color: var(--text-gold);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CYBER HR REMOVED */
.cyber-hr {
    border: none;
    height: 1px;
    background: var(--border-main);
    margin: 40px 0;
}

.hero-hud {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.text-neon {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}
.tree-branch {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-left: 10px;
}
.tree-node {
    padding: 4px 0 4px 15px;
    position: relative;
}
.tree-node::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.tree-branch.last {
    border-left: none;
}
.tree-branch.last::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* EXPLORER INTERFACE */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
}

.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 5px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.explorer-item:active {
    background: rgba(0, 255, 157, 0.05);
    border-color: var(--border-main);
    transform: scale(0.95);
}

.explorer-icon {
    font-size: 1.8rem;
    color: var(--text-gold);
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.2));
}

.explorer-icon.file {
    color: var(--app-accent);
}

.explorer-label {
    font-size: 0.55rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-all;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* 4. SYSTEM STATUS BAR (FOOTER FEEDBACK) */
.footer-status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(0, 255, 157, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 0.55rem;
    color: var(--app-primary);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--app-primary);
    z-index: 10000008;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-status-bar.active {
    opacity: 1;
    transform: translateY(0);
}

.status-prefix {
    color: var(--text-gold);
    margin-right: 10px;
    font-weight: 900;
}

.status-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. ACCESSIBILITY MODES */
body.acc-high-contrast {
    --app-primary: #00ff00;
    --app-accent: #00ffff;
    --text-gold: #ffff00;
    --bg-app: #000;
    --bg-surface: #000;
    --border-main: #fff;
    --border-bright: #fff;
}
body.acc-high-contrast .terminal-card { border-width: 2px; }

body.acc-large-text { font-size: 1.1rem; }
body.acc-large-text .app-title { font-size: 1rem; }
body.acc-large-text h2 { font-size: 1rem; }
body.acc-large-text .nav-logo { font-size: 1.2rem; }

body.acc-reduce-motion * {
    animation: none !important;
    transition: none !important;
}

body.acc-dyslexia {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
    line-height: 1.6 !important;
}
body.acc-dyslexia * {
    font-family: inherit !important;
}

body.acc-light-mode {
    --bg-deep: #ffffff;
    --bg-app: #f0f0f0;
    --bg-surface: #ffffff;
    --bg-surface-alt: #e0e0e0;
    color: #111;
    --app-primary: #008855;
    --app-primary-glow: rgba(0, 136, 85, 0.2);
    --app-secondary: #cc0022;
    --app-secondary-glow: rgba(204, 0, 34, 0.2);
    --app-accent: #0088cc;
    --app-accent-glow: rgba(0, 136, 204, 0.2);
    --text-gold: #aa7700;
    --border-main: rgba(0, 0, 0, 0.2);
    --border-bright: rgba(0, 0, 0, 0.4);
}
body.acc-light-mode .hero-hud,
body.acc-light-mode .terminal-card,
body.acc-light-mode .project-card,
body.acc-light-mode .acc-modal {
    background: #fff;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
}
body.acc-light-mode .explorer-label {
    color: #333;
}
body.acc-light-mode .terminal-input {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}
body.acc-light-mode .breadcrumb-item { color: #555; }
body.acc-light-mode .breadcrumb-item.active { color: var(--app-accent); text-shadow: none; }
body.acc-light-mode .breadcrumb-back { color: var(--app-primary); }

/* ACCESSIBILITY MODAL */
.acc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 350px;
    background: var(--bg-surface);
    border: 2px solid var(--app-primary);
    border-radius: 16px;
    z-index: 10000010;
    padding: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,1), 0 0 20px var(--app-primary-glow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.acc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000009;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.acc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.acc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-main);
    cursor: pointer;
}

.acc-option:last-child { border-bottom: none; }

.acc-toggle {
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
}

.acc-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.acc-option.active .acc-toggle { background: var(--app-primary); }
.acc-option.active .acc-toggle::after { transform: translateX(20px); }

.profile-logo {
    border: 2px solid var(--app-accent);
    box-shadow: 0 0 20px var(--app-accent-glow);
    margin: 0 auto;
}

/* SERVICES GRID */
.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.service-card p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #b0b0b0;
    text-align: center;
}

.terminal-list {
    list-style: none;
    text-align: center;
    margin: 10px 0;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.terminal-list li {
    padding-left: 0;
    position: relative;
}

.terminal-list li::before {
    content: "";
    display: none;
}

/* PROJECTS */
.project-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    margin-bottom: 20px;
}
#projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media screen and (max-width: 1200px) {
    #projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    #projects-grid {
        grid-template-columns: 1fr;
    }
}
.project-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: 0.6;
    border-bottom: 1px solid var(--border-main);
}
.project-content {
    padding: 15px;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.tag {
    font-size: 0.55rem;
    padding: 2px 8px;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--border-main);
    color: var(--app-primary);
    border-radius: 4px;
}

/* FORMS & CONNECT */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-size: 0.65rem;
    color: var(--text-gold);
    text-transform: uppercase;
}
.terminal-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
}
.terminal-input:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 10px var(--app-primary-glow);
}
textarea.terminal-input {
    min-height: 80px;
    resize: vertical;
}
/* LANGUAGE DROPDOWN (BREADCRUMB) */
.breadcrumb-lang {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(0, 255, 157, 0.2);
    color: var(--app-primary);
    font-size: 0.45rem;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-toggle:hover {
    border-color: var(--app-primary);
    box-shadow: 0 0 8px var(--app-primary-glow);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--app-primary);
    border-radius: 8px;
    padding: 5px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 10000007;
    min-width: 140px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.lang-dropdown.active {
    display: flex;
}

.lang-opt {
    background: none;
    border: none;
    color: #888;
    font-size: 0.5rem;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.lang-opt:hover {
    background: rgba(0, 255, 157, 0.05);
    color: var(--app-primary);
}

.lang-opt.active {
    color: var(--app-primary);
    background: rgba(0, 255, 157, 0.1);
}

/* ==========================================================================
   /* SYSTEM NOTIFICATION CAROUSEL */
   .system-notification-carousel {
       background: var(--bg-surface);
       border-bottom: 1px solid var(--border-main);
       height: 36px;
       overflow: hidden;
       display: flex;
       align-items: center;
       position: relative;
       z-index: 10000007;
   }

   .carousel-track {
       display: flex;
       flex-direction: column;
       width: 100%;
       transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
   }

   .notification-item {
       height: 36px;
       flex-shrink: 0;
       display: flex;
       align-items: center;
       padding: 0 20px;
       font-size: 0.75rem;
       font-weight: 500;
       letter-spacing: 0.2px;
       gap: 12px;
       white-space: nowrap;
   }

   .notif-type {
       color: var(--app-primary);
       font-weight: 700;
       font-size: 0.65rem;
       text-transform: uppercase;
       background: var(--app-primary-glow);
       padding: 2px 8px;
       border-radius: 4px;
       flex-shrink: 0;
   }

   .notif-message {
       color: var(--text-primary);
       flex: 1;
       overflow: hidden;
       text-overflow: ellipsis;
       white-space: nowrap;
   }

   .notif-id {
       color: var(--text-secondary);
       font-size: 0.65rem;
       font-weight: 600;
       opacity: 0.4;
   }

   /* 6. GLOBAL MOBILE-FIRST ENFORCEMENT (UNIFORM SCALING) */
   ========================================================================== */

/* 
   SYSTEM MANDATE: Everything is mobile-first. 
   Expansion breakpoints are disabled to maintain the "ECHO OS" app aesthetic 
   on all hardware platforms.
*/

.grid-2x2, 
.skills-grid, 
.social-grid, 
.explorer-grid, 
#projects-grid,
.hero-hud,
.desc-with-logo,
.breadcrumb-content {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.breadcrumb-content {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
}

@media screen and (max-width: 480px) {
    .breadcrumb-content {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    #app-version {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        padding-top: 4px !important;
        width: 100% !important;
        text-align: center !important;
    }
}

.terminal-card, .project-card, .skill-item {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure text in cards wraps */
.card-title, .status-content, p, li {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Stack hero buttons */
.hero-hud {
    gap: 15px !important;
}

.hero-hud div[style*="flex-direction: row"] {
    flex-direction: column !important;
    width: 100% !important;
}

.matrix-btn, .terminal-btn {
    width: 100% !important;
}


.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

@media screen and (max-width: 800px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 400px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-main);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.social-btn:hover {
    background: var(--app-primary);
    color: #000;
    box-shadow: 0 0 15px var(--app-primary-glow);
}

/* KAO BANNER OVERRIDE */
#kao-banner {
    z-index: 100000000 !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    min-height: auto !important;
}

.kao-banner {
    background: rgba(0, 20, 12, 0.9) !important;
    border: 1px solid var(--app-primary) !important;
    color: var(--app-primary) !important;
    text-shadow: 0 0 5px var(--app-primary-glow) !important;
    font-family: 'Share Tech Mono', 'JetBrains Mono', monospace !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 0 10px var(--app-primary-glow), 0 0 10px rgba(0, 255, 157, 0.2) !important;
    font-size: 0.5rem !important;
    padding: 2px 50px !important; /* Equal high padding to reserve safe zones on both ends */
    line-height: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    position: relative !important;
}

.kao-banner p, .kao-banner span {
    display: inline !important;
}

/* Hide the seconds countdown specifically */
.kao-banner span[id*="seconds"], 
.kao-banner span[class*="seconds"],
.kao-banner .kao-banner-seconds {
    display: none !important;
}

.kao-banner a {
    color: var(--app-accent) !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    margin: 0 5px !important;
}

.kao-banner a:hover {
    color: var(--app-primary) !important;
    text-shadow: 0 0 8px var(--app-primary-glow) !important;
}

.kao-banner-close {
    color: var(--app-secondary) !important;
    font-size: 0.7rem !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

.kao-banner-close:hover {
    opacity: 1 !important;
    text-shadow: 0 0 8px var(--app-secondary-glow) !important;
}



