/*
=====================================================
Project : Website Profil Haimiya Project by HaimiyaMods
File : style.css
Creator : Haimiya Project by HaimiyaMods
Copyright : © 2026 Haimiya Project | All Right Reserved
Version : 1.0.0
=====================================================
*/

/* ================= VARIABLES ================= */
:root {
    --bg-black: #0a0a0c;
    --bg-charcoal: #111114;
    --bg-card: #16161a;
    --bg-card-hover: #1b1b20;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.14);

    --text-primary: #eaeaef;
    --text-secondary: #9a9aa5;
    --text-muted: #6c6c78;

    --accent-blue: #4d9fff;
    --accent-blue-glow: rgba(77, 159, 255, 0.35);
    --accent-blue-dim: rgba(77, 159, 255, 0.12);

    --accent-green: #4ade80;
    --accent-red: #f87171;
    --accent-yellow: #facc15;

    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --radius: 6px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--accent-blue); }

/* ================= CURSOR BLINK ================= */
.cursor-blink {
    display: inline-block;
    color: var(--accent-blue);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ================= HEADER / NAVBAR ================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition), border-color var(--transition);
}

.nav-prompt {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.prompt-user { color: var(--text-primary); }
.prompt-at { color: var(--text-muted); }
.prompt-host { color: var(--accent-blue); }
.prompt-colon { color: var(--text-secondary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 16px;
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius);
    color: var(--accent-blue) !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--accent-blue-dim);
    box-shadow: 0 0 16px var(--accent-blue-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    border-radius: var(--radius);
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
}

/* ================= HERO ================= */
.hero {
    padding: 150px 0 90px;
    text-align: center;
}

.page-section {
    padding-top: 150px;
}

.ascii-wrap {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
}

.ascii-wrap::-webkit-scrollbar { height: 6px; }
.ascii-wrap::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }

.ascii-banner {
    display: block;
    width: max-content;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    font-size: clamp(0.5rem, 1.6vw, 0.78rem);
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue-glow);
    white-space: pre;
    text-align: left;
    margin: 0;
}

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-charcoal);
    border-bottom: 1px solid var(--border-subtle);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 18px 20px;
    font-size: 0.85rem;
}

.term-prompt {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.prompt-line1 { color: var(--text-muted); }
.prompt-line2 { color: var(--accent-blue); }

.term-cmd { color: var(--text-primary); }

.term-output {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-secondary);
    min-height: 20px;
}

.term-output .line-ok { color: var(--accent-green); }
.term-output .line-ok .msg { color: var(--text-secondary); }

.hero-title-wrap { margin-bottom: 36px; }

.hero-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-byline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent-blue);
    color: #05070a;
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-blue-glow);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--border-soft);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ================= SECTIONS ================= */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-cmd {
    font-size: 0.82rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.about-desc {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ================= DIRECTORY LISTING ================= */
.dir-listing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dir-perm {
    color: var(--accent-blue);
    margin-right: 14px;
}

/* ================= CARD GRID ================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-icon {
    font-size: 1.1rem;
    color: var(--accent-blue);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 18px;
    font-size: 0.75rem;
}

.card-meta dt {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.card-meta dd {
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-compact { text-align: left; }
.card-compact .card-icon { margin-bottom: 12px; display: block; font-size: 1.3rem; }

/* ================= BADGES ================= */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-online {
    color: var(--accent-green);
    background: rgba(74, 222, 128, 0.1);
}

.badge-stable {
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

.badge-active {
    color: var(--accent-yellow);
    background: rgba(250, 204, 21, 0.1);
}

/* ================= DOWNLOADS ================= */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color var(--transition);
}

.download-row:hover { border-color: var(--accent-blue); }

.dl-icon {
    font-size: 1.2rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.dl-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dl-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.dl-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================= STATUS PANEL ================= */
.status-panel {
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px 24px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.85rem;
}

.status-label { color: var(--text-secondary); }
.status-value.mono { color: var(--text-primary); }

.status-divider {
    height: 1px;
    background: var(--border-subtle);
}

/* ================= ABOUT ================= */
.about-card { max-width: 560px; }
.about-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ================= CONTACT ================= */
.contact-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

/* ================= FOOTER ================= */
.site-footer {
    padding: 60px 0 40px;
    text-align: center;
}

.ascii-footer {
    display: block;
    width: max-content;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    font-size: clamp(0.5rem, 1.5vw, 0.72rem);
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--text-muted);
    white-space: pre;
    text-align: left;
    margin: 0;
}

.footer-exit {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(10, 10, 12, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .nav-links.open {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border-subtle);
    }

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero { padding: 130px 0 70px; }
    .page-section { padding-top: 130px; }
}

@media (max-width: 520px) {
    body { font-size: 14px; }
    .terminal-body { font-size: 0.78rem; }
    .card-meta { grid-template-columns: 1fr; }
    .download-row { flex-wrap: wrap; }
}
