/** HOME PAGE **/
#home {
    margin-left: 260px; /* desktop sidebar */
    padding-top: 20px;
    box-sizing: border-box;
}

/** Tablet & Mobile Portrait **/
@media (max-width: 992px) {
    #home {
        margin-left: 0;
        padding-top: 80px;
    }
}

/** Mobile Landscape **/
@media (max-width: 768px) and (orientation: landscape) {
    #home {
        margin-left: 0;
        padding-top: 60px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/** TERMINAL BOX **/
.bash {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 18px;
    font-family: "Courier New", monospace;
    line-height: 1.6;
    overflow-x: auto;
}

.bash-header { color: #bbb; margin-bottom: 4px; }
.bash-body { color: #bbb; white-space: pre-line; font-size: 14px; }

/** terminal colors **/
.user-name { color: #00ff00; }
.shell { color: #800080; }
.current-directory { color: #FFA500; }

#dynamic-text { color: #bbb; font-size: 14px; }

.cursor {
    width: 2px;
    height: 14px;
    background: #bbb;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/** CYBER STATS **/
.cyber-stats {
    display: flex;
    justify-content: space-evenly;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    font-family: "Courier New", monospace;
}

.stat-number {
    font-size: 26px;
    font-weight: bold;
    color: #ddd;
}

.stat-label {
    font-size: 13px;
    color: #bbb;
    margin-top: 4px;
}

.stat-number, .stat-label {
    display: block;
}

/** TOOLS SLIDER **/
.tools-section { padding: 8px 0; }

.tools-section h6 {
    color: #ddd;
    font-family: "Courier New", monospace;
    font-size: 20px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.tools-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 5px 0;
    padding: 5px 0;
}

.slider-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.tools-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding-right: 14px;
}

.tool-card {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    white-space: nowrap;
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: bold;
    transition: .18s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    background: #222;
    box-shadow: 0 10px 20px rgba(255,255,255,0.07);
}

.tool-card img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    padding-left: 1px;
    padding-right: 5px;
}

/** gradient overlay **/
.tools-slider::before,
.tools-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 230px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.tools-slider::before {
    left: 0;
    background: linear-gradient(to right,
        rgba(0,0,0,1),
        rgba(0,0,0,0)
    );
}

.tools-slider::after {
    right: 0;
    background: linear-gradient(to left,
        rgba(0,0,0,1),
        rgba(0,0,0,0)
    );
}

/** RESPONSIVE: Mobile Portrait **/
@media (max-width: 576px) {
    #home {
        padding-top: 80px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .bash { padding: 15px; font-size: 13px; }

    .cyber-stats { flex-direction: column; gap: 15px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 12px; }

    .tools-section h6 { font-size: 18px; }

    .tool-card { padding: 7px 10px; font-size: 12px; }

    .tools-slider::before,
    .tools-slider::after { width: 70px; }
}

/** RESPONSIVE: Mobile Landscape **/
@media (max-width: 768px) and (orientation: landscape) {
    #home {
        margin-left: 0;
        padding-top: calc(60px + env(safe-area-inset-top));
        padding-left: 10px;
        padding-right: 10px;
    }

    .bash { padding: 12px; font-size: 13px; }

    .cyber-stats { flex-direction: column; gap: 12px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 11px; }

    .tools-section h6 { font-size: 16px; }
    .tool-card { padding: 6px 10px; font-size: 11px; }

    .tools-slider::before,
    .tools-slider::after { width: 90px; }
}

/** RESPONSIVE: Tablet **/
@media (max-width: 992px) {
    .tools-slider::before,
    .tools-slider::after { width: 120px; }
    .tool-card { padding: 8px 12px; }
    .cyber-stats { flex-wrap: wrap; }
}

/** Desktop Wide **/
@media (min-width: 1200px) {
    #home { padding-right: 40px; }
}
