/* Terminal-inspired Portfolio Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pure black terminal color scheme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent-blue: #58a6ff;
    --accent-green: #7ee787;
    --border-color: #333333;
    --hover-bg: #1a1a1a;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --text-primary: #24292f;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --accent-blue: #0969da;
    --accent-green: #1a7f37;
    --border-color: #d0d7de;
    --hover-bg: #f3f4f6;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Terminal Header */
.terminal-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.terminal-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tab-item {
    color: var(--text-secondary);
    font-weight: 500;
}

.tab-divider {
    color: var(--text-muted);
}

.terminal-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 12px;
}

.info-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: var(--accent-green);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

/* Main content */
main {
    padding: 2rem;
}

/* Profile section */
.profile-section {
    margin-bottom: 3rem;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 1rem;
}

.cv-button:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Section styling */
.section-comment {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem 0;
}

/* About section */
.about-section {
    margin-bottom: 2rem;
}

.about-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    max-width: 800px;
}

/* Professional Milestones */
.milestones-section {
    margin-bottom: 2rem;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.milestone-item {
    display: flex;
    gap: 2rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.milestone-item:last-child {
    border-bottom: none;
}

.milestone-year {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}

.milestone-text {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.milestone-text a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.milestone-text a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Tech Stack section */
.skills-section {
    margin-bottom: 2rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tech-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
}

.tech-category-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: lowercase;
}

.tech-subcategory-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: lowercase;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 13px;
    color: var(--text-primary);
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.tech-item:hover {
    color: var(--accent-green);
}

.tech-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Invert logos with black text in dark theme */
.tech-item img[src*="splunk1"],
.tech-item img[src*="NIST_logo"],
.tech-item img[src*="owasp"] {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .tech-item img[src*="splunk1"],
[data-theme="light"] .tech-item img[src*="NIST_logo"],
[data-theme="light"] .tech-item img[src*="owasp"] {
    filter: none;
}

/* Certifications section */
.certifications-section {
    margin-bottom: 2rem;
}

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

.cert-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.cert-card:hover {
    border-color: var(--accent-blue);
    background-color: var(--hover-bg);
}

.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cert-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Splunk.svg already has white text, no filter needed */

.cert-content {
    flex: 1;
}

.cert-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.cert-issuer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.cert-year {
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 500;
}

.cert-status {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
}

/* Page Header (for projects/about pages) */
.page-header {
    text-align: center;
    margin: 2rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Projects section */
.projects-section {
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.project-card:hover {
    border-color: var(--accent-blue);
    background-color: var(--hover-bg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.tech-tag {
    font-size: 11px;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-weight: 500;
}

.project-description {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link-item:hover {
    color: var(--accent-green);
}

.project-status {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Journey Timeline */
.journey-section {
    margin-bottom: 2rem;
}

.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journey-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.journey-item:last-child {
    border-bottom: none;
}

.journey-year {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}

.journey-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.journey-description {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Values Grid */
.values-section {
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
}

.value-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-transform: lowercase;
}

.value-description {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Availability Section */
.availability-section {
    margin-bottom: 2rem;
}

.availability-content {
    max-width: 700px;
}

/* Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.social-icon:hover {
    color: var(--accent-blue);
    background-color: var(--hover-bg);
}

/* Theme toggle icons */
.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    main {
        padding: 1rem;
    }

    .terminal-header {
        padding: 10px 15px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }

    .terminal-info {
        gap: 0.8rem;
        order: 1;
    }

    .header-right {
        order: 2;
    }

    /* Replace text with icons on mobile */
    .info-link {
        font-size: 0;
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .info-link::before {
        content: "";
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(0) invert(1);
    }

    /* Email icon (mail) */
    .info-link[href^="mailto"]::before {
        background-image: url("/img/icons/mail.svg");
    }

    /* GitHub icon */
    .info-link[href*="github.com"]::before {
        background-image: url("/img/icons/github.svg");
    }

    /* WhatsApp icon */
    .info-link[href*="wa.me"]::before {
        background-image: url("/img/icons/whatsapp.svg");
    }

    /* Light theme adjustments for icons */
    [data-theme="light"] .info-link::before {
        filter: brightness(0) invert(0);
    }


    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-avatar {
        width: 130px;
        height: 130px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .milestone-item {
        gap: 1.5rem;
        padding: 0.4rem 0;
    }

    .milestone-year {
        min-width: 45px;
        font-size: 11px;
    }

    .milestone-text {
        font-size: 12px;
    }

    .tech-stack {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-category {
        padding: 1rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-tech {
        margin-left: 0;
    }

    .journey-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 0.8rem 0;
    }

    .journey-year {
        font-size: 11px;
    }

    .journey-title {
        font-size: 14px;
    }

    .journey-description {
        font-size: 12px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-item {
        padding: 1rem;
    }

    .separator {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 12px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-title {
        font-size: 1rem;
    }
}