/* ========== Font and CSS Variables ========== */
@font-face {
    font-family: 'Terminal F4';
    src: url('src/Terminal F4.ttf');
}

:root {
    --primary: #00cc00;
    --background: #0d0d0d;
    --surface: #1a1a1a;
    --text: #e6e6e6;
    --border-color: #333;
}

/* ========== Base Styles ========== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 70px;
    color: var(--text);
    background-color: var(--background);
    font-family: 'Terminal F4', 'Courier New', monospace;
    line-height: 1.6;
}

/* ========== Navigation ========== */
.navbar {
    background-color: var(--background) !important;
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: var(--text) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    animation: underline 0.3s ease;
}

/* ========== Section Styles ========== */
section {
    padding: 100px 0;
    scroll-margin-top: 100px;
}

.section-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

/* ========== Content Components ========== */
.content-box,
.tech-card,
.profile-card {
    background: var(--surface);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
    position: relative; /* Added for full-height bar */
}

.content-box::before,
.tech-card::before,
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--primary);
}

.content-box:hover,
.tech-card:hover,
.profile-card:hover {
    transform: translateY(-5px);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* ========== Profile Card Styles ========== */
.profile-image {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 204, 0, 0.2);
}

.profile-name {
    text-align: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========== Anchor and Footer Styles ========== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00ff00;
    text-decoration: underline;
}

footer {
    background-color: var(--background);
    color: var(--text);
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    text-align: center;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* ========== Tech Image ========== */
.tech-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--primary);
    padding: 1rem;
    background: var(--background);
}

/* ========== Document Image ========== */
.doc-image {
    display: block;
    margin: 0 auto 1rem;
    max-width: 120px;
    height: auto;
    background: var(--surface);
    padding: 0.5rem;
}

/* ========== Device Images ========== */
.device-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--surface);
    box-shadow: 0 4px 15px rgba(0, 204, 0, 0.2);
}

/* ========== Animations ========== */
@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* ========== Media Queries ========== */
@media (max-width: 992px) {
    section {
        padding: 90px 0;
        scroll-margin-top: 90px;
    }

    .content-box,
    .tech-card,
    .profile-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        font-size: 14px;
    }

    section {
        padding: 80px 0;
        scroll-margin-top: 80px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .content-box,
    .tech-card,
    .profile-card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .navbar-collapse {
        background-color: var(--background);
        padding: 1.5rem;
        border-top: 1px solid var(--primary);
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        margin-top: 10px;
    }

    .row > [class^="col-"] {
        margin-bottom: 1.5rem;
    }

    .tech-image {
        max-height: 250px;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }

    section {
        padding: 70px 0;
        scroll-margin-top: 70px;
    }

    .content-box,
    .tech-card,
    .profile-card {
        padding: 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .tech-image {
        max-height: 200px;
    }
}