﻿/* ============================================================
   SITE-WIDE LAYOUT UPDATES
   Append this to your existing site.css
   ============================================================ */

/* ── Variables ── */
:root {
    --green: #06be04;
    --green-dark: #068505;
    --green-glow: rgba(6, 190, 4, 0.15);
    --green-border: rgba(6, 190, 4, 0.28);
    --bg-nav: #302f2f;
    --bg-card: #3d3d3d;
    --bg-card2: #3a3a3a;
    --bg-mid: #4e4e4e;
    --page-bg: #878787;
    --text: #f5f5f5;
    --text-muted: #c0c0c0;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    --shadow-green: 0 0 16px rgba(6, 190, 4, 0.22);
    --radius: 10px;
}

body {
    background-color: var(--bg-card) !important;
    margin-bottom: 0;
}

/* ── Shared Helpers ── */
.container-constrained {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.4rem;
    font-family: 'Courier New', Courier, monospace;
    opacity: 1;
}

.page-header {
    background-color: var(--bg-nav);
    border-bottom: 2px solid var(--green);
    padding: 2.5rem 1.5rem 2rem;
}

.page-header-inner {
    max-width: 860px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0;
    line-height: 1.1;
    color: var(--green) !important;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black !important;
    opacity: 1 !important;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

/* Suppress old navbar and old footer if still present in project */
.first-navbar {
    display: none !important;
}

/* Old footer used class "footer" — hide it */
footer.footer,
footer.text-muted {
    display: none !important;
}

.site-nav {
    background-color: var(--bg-nav) !important;
    border-bottom: 2px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.site-nav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.site-nav-brand {
    color: var(--green) !important;
    font-family: 'MyCustomFont', monospace;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Custom hamburger */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--green);
    border: 1px solid black;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
}

    .site-nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: black;
        border-radius: 2px;
    }

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

    .site-nav-links li {
        position: relative;
    }

    .site-nav-links a,
    .site-nav-links .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 14px !important;
        color: var(--green) !important;
        font-family: 'MyCustomFont', monospace;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none !important;
        text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black;
        border-radius: 4px;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        cursor: pointer;
        background: transparent;
        border: none;
    }

        .site-nav-links a:hover,
        .site-nav-links .dropdown-toggle:hover,
        .site-nav-links .dropdown-toggle:focus {
            background: rgba(6, 190, 4, 0.1) !important;
            color: var(--green-dark) !important;
            box-shadow: none !important;
        }

        /* Bootstrap dropdown caret override */
        .site-nav-links .dropdown-toggle::after {
            border-top-color: var(--green);
            vertical-align: middle;
            margin-left: 4px;
        }

/* Dropdown */
.site-dropdown {
    background-color: var(--bg-nav) !important;
    border: 1px solid var(--green-border) !important;
    border-radius: var(--radius) !important;
    padding: 0.4rem 0 !important;
    min-width: 180px;
    box-shadow: var(--shadow) !important;
}

    .site-dropdown .dropdown-item {
        color: var(--green) !important;
        font-family: 'MyCustomFont', monospace;
        font-size: 15px;
        font-weight: bold;
        text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black;
        padding: 8px 16px;
        transition: background 0.18s;
        text-decoration: none;
    }

        .site-dropdown .dropdown-item:hover,
        .site-dropdown .dropdown-item:focus {
            background-color: #222 !important;
            color: var(--green-dark) !important;
        }

/* Mobile nav */
@media (max-width: 768px) {
    .site-nav-toggle {
        display: flex;
    }

    #siteNavCollapse {
        background: var(--bg-nav);
        border-bottom: 1px solid var(--green-border);
        padding: 0.5rem 1rem 1rem;
    }

    .site-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

        .site-nav-links a,
        .site-nav-links .dropdown-toggle {
            padding: 10px 8px !important;
            border-bottom: 1px solid rgba(6,190,4,0.1);
        }

    .site-dropdown {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--green-border) !important;
        border-radius: 0 !important;
        padding-left: 1rem !important;
        background: transparent !important;
        width: 100%;
    }
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--bg-nav);
    border-top: 2px solid var(--green);
    padding: 1.2rem 1.5rem;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-brand {
    font-family: 'MyCustomFont', monospace;
    font-size: 20px;
    color: var(--green);
    font-weight: bold;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.footer-copy {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

    .footer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: var(--green);
        border: 1px solid var(--green-border);
        border-radius: 6px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .footer-links a:hover {
            color: black;
            background: var(--green);
            border-color: var(--green);
            box-shadow: var(--shadow-green);
        }

@media (max-width: 576px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}


/* ============================================================
   ABOUT ME PAGE
   ============================================================ */

.about-page {
    min-height: 80vh;
    background-color: var(--bg-card);
}

.about-content {
    padding: 3rem 1.5rem;
}

/* Profile Block */
.profile-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    background: var(--bg-card2);
    border: 1px solid #4e4e4e;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.profile-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green);
    box-shadow: 0 0 18px rgba(6, 190, 4, 0.3);
    position: relative;
    z-index: 1;
}

.profile-photo-ring {
    position: absolute;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    border: 1px dashed var(--green-border);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-greeting {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--green);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    margin-bottom: 0.75rem;
}

.profile-text p {
    color: #e0e0e0;
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 0.85rem;
}

.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.profile-chip {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    border-radius: 4px;
    background: rgba(6, 190, 4, 0.1);
    color: var(--green);
    border: 1px solid var(--green-border);
}

@media (max-width: 640px) {
    .profile-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo-wrap {
        justify-content: center;
    }

    .profile-chips {
        justify-content: center;
    }
}

/* Timeline Section */
.timeline-section {
    margin-top: 1rem;
}

.timeline-header {
    margin-bottom: 2rem;
}

    .timeline-header .page-title {
        color: var(--green) !important;
        text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black !important;
    }

/* New Timeline */
.new-timeline {
    position: relative;
}

.tl-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}

.tl-item--last .tl-dot {
    margin-bottom: 0;
}

.tl-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.tl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid black;
    box-shadow: 0 0 8px rgba(6, 190, 4, 0.5);
    flex-shrink: 0;
    z-index: 1;
}

.tl-line {
    flex: 1;
    width: 2px;
    background: var(--green);
    opacity: 0.35;
    margin-top: 6px;
    margin-bottom: 0;
    min-height: 40px;
}

.tl-body {
    padding-bottom: 2rem;
}

.tl-date {
    font-weight: bold;
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black;
    margin-bottom: 0.6rem;
    font-family: 'MyCustomFont', monospace;
}

.tl-card {
    background: var(--bg-card);
    border: 1px solid #4e4e4e;
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

    .tl-card:hover {
        box-shadow: var(--shadow-green);
        transform: translateY(-2px);
    }

.tl-card-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tl-company {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--green);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    font-family: 'MyCustomFont', monospace;
    margin: 0;
}

.tl-role {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.05);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 10px;
}

.tl-duties {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tl-duty-block {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tl-duty-label {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(6, 190, 4, 0.1);
    border: 1px solid var(--green-border);
    border-radius: 4px;
    padding: 1px 8px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.tl-duty-block p {
    color: #e0e0e0;
    font-size: 13.5px;
    line-height: 1.75;
    margin: 0;
}

    .tl-duty-block p strong {
        color: var(--text);
    }

@media (max-width: 576px) {
    .tl-item {
        grid-template-columns: 20px 1fr;
        gap: 0.75rem;
    }

    .tl-line {
        display: none;
    }

    .tl-card {
        padding: 1rem;
    }
}


/* ============================================================
   MY SKILLS PAGE
   ============================================================ */

.skills-page-v2 {
    min-height: 80vh;
    background-color: var(--bg-card);
}

.skills-summary-v2 {
    background: var(--bg-card2);
    border: 1px solid #4e4e4e;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0 2rem;
    box-shadow: var(--shadow);
}

    .skills-summary-v2 p {
        color: #e8e8e8;
        font-size: 14.5px;
        line-height: 1.85;
        margin: 0;
    }

.skills-group {
    margin-bottom: 3rem;
}

.skills-group-header {
    margin-bottom: 1.4rem;
}

.skills-group-title {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--green) !important;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.skill-card-v2 {
    background: var(--bg-card);
    border: 1px solid #4e4e4e;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .skill-card-v2:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-green);
    }

.skill-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.skill-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(6, 190, 4, 0.08);
    border: 1px solid var(--green-border);
    border-radius: 6px;
    flex-shrink: 0;
}

.skill-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.skill-card-title {
    font-family: 'MyCustomFont', monospace;
    color: var(--green);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.skill-card-text {
    color: #e8e8e8;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   PROJECT LIST PAGE (Projects + Code Samples)
   ============================================================ */

.plist-page {
    min-height: 80vh;
    background-color: var(--bg-card);
}

.plist-content {
    padding: 2.5rem 1.5rem 4rem;
}

.plist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.plist-card {
    background: var(--bg-card2);
    border: 1px solid #4e4e4e;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .plist-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-green);
    }

.plist-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.plist-card-icon {
    font-size: 1.4rem;
    color: var(--green);
    text-shadow: 0 0 8px rgba(6,190,4,0.4);
    flex-shrink: 0;
    min-width: 28px;
}

.plist-card-title {
    font-family: 'MyCustomFont', monospace;
    color: var(--green);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.plist-card-desc {
    color: #e0e0e0;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.plist-snippet {
    background: #1e1e1e;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    font-size: 12px;
    color: #c8e6c9;
    overflow-x: auto;
    max-height: 140px;
    overflow-y: hidden;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    margin: 0;
}

    .plist-snippet code {
        font-family: inherit;
        background: none;
        color: inherit;
        padding: 0;
    }

.plist-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.plist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'MyCustomFont', monospace;
    text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black;
}

    .plist-btn:hover {
        background: var(--green);
        color: black;
        text-shadow: none;
        box-shadow: var(--shadow-green);
    }

/* ============================================================
   PROJECT / CODE SAMPLE DETAIL PAGE
   ============================================================ */

.pdetail-page {
    min-height: 80vh;
    background-color: var(--bg-card);
}

.pdetail-meta {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.pdetail-content {
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.pdetail-image-wrap {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #4e4e4e;
    box-shadow: var(--shadow);
}

.pdetail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.pdetail-desc-block {
    background: var(--bg-card2);
    border: 1px solid #4e4e4e;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
}

    .pdetail-desc-block p {
        color: #e0e0e0;
        font-size: 15px;
        line-height: 1.85;
        margin: 0;
    }

.pdetail-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--green), transparent);
    opacity: 0.3;
}

.pdetail-body {
    color: #e8e8e8;
    font-size: 14.5px;
    line-height: 1.9;
}

    .pdetail-body h1,
    .pdetail-body h2,
    .pdetail-body h3 {
        color: var(--green);
        font-family: 'MyCustomFont', monospace;
        text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
        margin-bottom: 0.75rem;
        margin-top: 1.5rem;
    }

    .pdetail-body hr {
        border-color: var(--green-border);
        margin: 1.5rem 0;
    }

    .pdetail-body pre {
        background: #1e1e1e;
        border: 1px solid #555;
        border-radius: 6px;
        padding: 1rem 1.25rem;
        overflow-x: auto;
        font-size: 13px;
        color: #c8e6c9;
        font-family: 'Courier New', Courier, monospace;
        line-height: 1.65;
    }

    .pdetail-body code {
        background: rgba(6,190,4,0.1);
        color: var(--green);
        padding: 1px 6px;
        border-radius: 4px;
        font-size: 13px;
        font-family: 'Courier New', monospace;
    }

    .pdetail-body pre code {
        background: none;
        color: inherit;
        padding: 0;
    }

.pdetail-code-block {
    background: #1a1a1a;
    border: 1px solid #4e4e4e;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pdetail-code-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #252525;
    border-bottom: 1px solid #3a3a3a;
}

.pdetail-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4e4e4e;
}

    .pdetail-code-dot:nth-child(1) {
        background: #ff5f57;
    }

    .pdetail-code-dot:nth-child(2) {
        background: #febc2e;
    }

    .pdetail-code-dot:nth-child(3) {
        background: #28c840;
    }

.pdetail-code-label {
    margin-left: auto;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pdetail-pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 13.5px;
    color: #c8e6c9;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.7;
    background: transparent;
    border: none;
    border-radius: 0;
}

    .pdetail-pre code {
        font-family: inherit;
        background: none;
        color: inherit;
        padding: 0;
        font-size: inherit;
    }

.pdetail-back {
    padding-top: 0.5rem;
}

.pdetail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-family: 'MyCustomFont', monospace;
    text-shadow: -0.5px -0.5px 0 black, 0.5px 0.5px 0 black;
    transition: all 0.25s ease;
}

    .pdetail-back-btn:hover {
        background: var(--green);
        color: black;
        text-shadow: none;
        box-shadow: var(--shadow-green);
    }
