/* Mainframe Terminal Aesthetic - CSS */

:root {
    --primary-green: #00FF41;
    --secondary-green: #00CC33;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --border-color: #00FF41;
    --text-color: #00FF41;
    --shadow-color: rgba(0, 255, 65, 0.1);
    --cursor-color: #00FF41;
    --accent-yellow: #FFD700;
    --accent-cyan: #00FFFF;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-color);
    font-family: 'Courier New', 'IBM Plex Mono', monospace;
    letter-spacing: 0.05em;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

.mainframe-terminal {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styling */
.terminal-header {
    border: 2px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 255, 65, 0.02) 100%);
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 0 20px var(--shadow-color),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px var(--shadow-color),
            inset 0 0 20px rgba(0, 255, 65, 0.05);
    }
    50% {
        box-shadow: 
            0 0 30px var(--shadow-color),
            inset 0 0 30px rgba(0, 255, 65, 0.1);
    }
}

.header-line {
    text-align: center;
    margin: 5px 0;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.ascii-line {
    display: inline-block;
    animation: flicker 0.15s infinite;
}

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

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.profile-pic-container {
    flex-shrink: 0;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 0 20px var(--shadow-color);
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-color);
}

.profile-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* ASCII Logo */
.ascii-logo-container {
    text-align: center;
    margin: 15px 0;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.ascii-logo {
    color: var(--accent-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: logoGlow 4s ease-in-out infinite;
    display: inline-block;
    white-space: pre;
    word-wrap: normal;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(0, 255, 65, 0.2);
    }
}

.system-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.system-info .label {
    color: var(--accent-cyan);
    margin-right: 10px;
    font-weight: bold;
}

.system-info .value {
    color: var(--accent-yellow);
    font-weight: bold;
}

/* Navigation */
.terminal-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
    font-weight: bold;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-green);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn.active {
    background-color: rgba(0, 255, 65, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2), 0 0 20px var(--shadow-color);
    color: var(--accent-yellow);
}

.prompt {
    color: var(--accent-cyan);
    margin-right: 8px;
}

/* Main Content Area */
.terminal-content {
    flex: 1;
    margin-bottom: 20px;
}

.content-section {
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.03) 0%, rgba(0, 255, 65, 0.01) 100%);
    padding: 25px;
    margin-bottom: 20px;
    display: none;
    animation: sectionFadeIn 0.5s ease;
    box-shadow: 0 0 20px var(--shadow-color);
}

.content-section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.1em;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: bold;
}

.bracket {
    color: var(--accent-yellow);
    margin: 0 5px;
}

.title-text {
    color: var(--text-color);
}

/* Content Cards */
.content-card {
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 20px;
    margin: 10px 0;
    line-height: 1.8;
}

.terminal-text {
    margin: 10px 0;
    color: var(--text-color);
    font-size: 0.95em;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    font-size: 0.9em;
}

.stat-label {
    color: var(--accent-cyan);
    font-weight: bold;
}

.stat-value {
    color: var(--accent-yellow);
    font-weight: bold;
    padding: 3px 8px;
    border: 1px solid var(--accent-yellow);
}

.stat-value.online {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-green);
    border-color: var(--primary-green);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Projects Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.project-card {
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.02);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.project-name {
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.1em;
}

.project-status {
    font-size: 0.8em;
    padding: 3px 8px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 2px;
}

.project-description {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.6;
    margin: 10px 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.project-tag {
    font-size: 0.8em;
    padding: 3px 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
    border-radius: 2px;
}

.project-link {
    display: inline-block;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.project-link:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

/* Skills Matrix */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.skill-category {
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.02);
    padding: 20px;
}

.category-name {
    color: var(--accent-cyan);
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    font-size: 1em;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-yellow);
    font-size: 0.85em;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Contact Form */
.contact-form {
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--accent-cyan);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    background: rgba(0, 255, 65, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
}

.form-submit:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: 0 0 20px var(--shadow-color);
}

.form-submit:active {
    transform: scale(0.98);
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.contact-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-link:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

/* Footer */
.terminal-footer {
    border: 2px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.02) 0%, rgba(0, 255, 65, 0.05) 100%);
    padding: 15px 20px;
    box-shadow: 0 0 20px var(--shadow-color);
    margin-top: auto;
}

.footer-line {
    text-align: center;
    margin: 5px 0;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.footer-content {
    text-align: center;
    margin: 10px 0;
    font-size: 0.85em;
    color: var(--accent-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mainframe-terminal {
        padding: 10px;
    }

    .profile-section {
        gap: 15px;
        padding: 15px 0;
    }

    .profile-pic {
        width: 85px;
        height: 85px;
    }

    .profile-info {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 100%;
    }

    .ascii-logo-container {
        margin: 12px 0;
        padding: 8px 0;
    }

    .ascii-logo {
        font-size: 0.65em;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .terminal-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-btn {
        width: 100%;
    }

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

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

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }

    .terminal-content {
        font-size: 0.9em;
    }
}

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

    .header-line, .footer-line {
        display: none;
    }

    .terminal-header {
        padding: 10px 12px;
    }

    .profile-section {
        margin: 8px 0;
        padding: 8px 0;
        gap: 10px;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }

    .profile-info {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
    }

    .system-info {
        flex-direction: column;
        gap: 4px;
        padding: 2px 0;
    }

    .ascii-logo-container {
        margin: 8px 0;
        padding: 6px 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .ascii-logo {
        font-size: 0.45em;
        letter-spacing: -2px;
        line-height: 1;
        min-width: min-content;
    }

    .section-title {
        font-size: 0.95em;
    }

    .content-section {
        padding: 15px;
    }
}
