/* Terminal System Overrides */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #070a13;       /* Pure console deep black backframe */
    --bg-surface: #0f1422;    /* Dark card surface */
    --primary: #10b981;       /* Classic matrix green text */
    --accent: #38bdf8;        /* System diagnostic blue links */
    --text-bright: #f8fafc;   /* White text output */
    --text-muted: #64748b;    /* Code comment grey */
    --border: #1e293b;        /* Grid wireframe lines */
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-dark);
    color: var(--text-bright);
    line-height: 1.6;
}

/* Header & Menu Bars */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 8%;
    background-color: rgba(7, 10, 19, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Blinking Cursor Indicator Effect */
.pulse {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-bright);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Utility Shell Badges & Controls */
.badge {
    display: inline-block;
    background: #064e3b;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-bright);
}

/* Shell Header Display */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 8%;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0e1a 100%);
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Terminal Module Tag Arrays */
.skills-section {
    padding: 5rem 8%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.skills-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    background: var(--bg-dark);
    color: var(--accent);
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* Project Applications Log Grid */
.projects {
    padding: 6rem 8%;
    border-bottom: 1px solid var(--border);
}

.projects h2, .contact h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 0.95rem;
}

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

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    height: 380px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Active Display Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 34, 0.92);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-category {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay h3 {
    color: var(--text-bright);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Compiler Tech Badges */
.tech-pill-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-pill {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 2px;
}

.gallery-action {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Interactivity Hover Rules */
.gallery-item:hover {
    border-color: var(--primary);
}

.gallery-item:hover img {
    opacity: 0.5;
}

/* Transmission Contact Terminal Frame */
.contact {
    padding: 6rem 8%;
}

.contact p {
    text-align: center;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 4rem auto;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* System Monitor Footer */
footer {
    background: #04060d;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* Responsive Grid Folding */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }
    .nav-links li {
        margin: 0 0.75rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}
