/* Custom CSS override to resize the navbar logo and apply branding styles */
.navbar-brand {
    font-family: 'Roboto Mono', monospace !important;
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: 1.75rem !important;
    border: 1.5px solid currentColor !important;
    border-radius: 4px !important;
    padding: 0.1em 0.45em !important;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-brand:hover {
    background-color: var(--primary-color) !important;
    color: var(--background-color) !important;
}

.navbar-brand img {
    width: auto !important;
    height: 32px !important;
    max-height: 32px;
}

/* Increase navbar menu font size */
.navbar-nav .nav-link {
    font-size: 1.2rem !important;
    font-family: 'Roboto Mono', monospace !important;
}

/* Whitespace reduction */
#hero {
    min-height: auto !important;
    padding: 4rem 0 2rem !important;
}

.hero-bottom-svg {
    display: none !important;
}

#projects {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
}

#about {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.ecce-section {
    padding: 2rem 0 0.5rem;
}

/* Consistent section headings across all homepage sections */
.ecce-section h3,
#projects h3 {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.ecce-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
}

.ecce-card h4,
.ecce-card h5 {
    margin-bottom: 0.75rem;
}

.ecce-meta {
    color: var(--text-secondary-color-dark);
    font-size: 0.95rem;
}

.ecce-progress {
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.ecce-progress-bar {
    display: block;
    height: 100%;
    width: var(--ecce-progress-value, 0%);
    background: var(--primary-color-dark);
}

.ecce-link-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.ecce-link-list li + li {
    margin-top: 0.75rem;
}

/* Hero sizing and readability */
#hero h1 {
    font-size: clamp(28px, 4vw, 48px) !important;
    font-weight: 700 !important;
}

#hero h2 {
    font-size: clamp(20px, 2.5vw, 32px) !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
    line-height: 1.3 !important;
}

/* Industrial typography for hero headers */
#hero h1, #hero h2, #hero h3 {
    font-family: 'Roboto Mono', monospace !important;
}

/* GitHub Terminal Widget */
.github-terminal {
    background-color: #0d1117; /* GitHub dark bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 0;
}

.terminal-header {
    background-color: #161b22;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.terminal-button {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.close { background-color: #ff5f56; }
.terminal-button.minimize { background-color: #ffbd2e; }
.terminal-button.maximize { background-color: #27c93f; }

.terminal-title {
    color: #8b949e;
    font-size: 0.85rem;
    margin-left: 10px;
}

.terminal-body {
    padding: 16px;
    color: #c9d1d9;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 4px;
    word-break: break-all;
}

.terminal-line .prompt {
    color: var(--primary-color-dark, #00FF41);
    margin-right: 8px;
    font-weight: bold;
}

.term-date { color: #8b949e; }
.term-repo { color: #58a6ff; font-weight: bold; }
.term-hash { color: #f0883e; }
.term-msg { color: #c9d1d9; }

.error-text { color: #ff5f56; }

.cursor {
    display: inline-block;
    width: 8px;
    animation: blink 1s step-end infinite;
}

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

/* About page */
#about-page {
    min-height: 60vh;
}

.about-layout {
    align-items: flex-start;
    padding-top: 1rem;
}

.about-illustration {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

#about-page .about-title {
    font-family: 'Roboto Mono', monospace !important;
    font-weight: 700 !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    color: var(--primary-color-dark, #00FF41) !important;
    letter-spacing: -0.02em;
}

.about-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.75;
    border-left: 3px solid var(--primary-color-dark, #00FF41);
    padding-left: 1rem;
}

#about-page .about-content h3 {
    color: var(--primary-color-dark, #00FF41) !important;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-family: 'Roboto Mono', monospace !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.about-content ol,
.about-content ul {
    padding-left: 1.5rem;
    line-height: 1.8;
}

.about-content li + li {
    margin-top: 0.5rem;
}

.about-content p {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
