* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #0c0c0c;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.terminal-container {
    width: 100%;
    height: 100vh;
    background: #0c0c0c;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #0c0c0c;
    width: 100%;
    height: 100%;
}

.terminal-content {
    color: #00ff41;
    font-size: 14px;
    line-height: 1.6;
}

.welcome-message {
    margin-bottom: 20px;
}

.welcome-message pre {
    color: #00ff41;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.welcome-message p {
    margin: 5px 0;
}

.highlight {
    color: #00d4ff;
    font-weight: bold;
}

#output {
    margin-bottom: 10px;
}

.output-line {
    margin: 5px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

.command-line {
    margin: 10px 0;
}

.command-text {
    color: #fff;
}

.output-text {
    color: #00ff41;
    margin-left: 0;
}

.output-text.error {
    color: #ff5555;
}

.output-text.info {
    color: #50fa7b;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #00ff41;
    margin-right: 8px;
    white-space: nowrap;
    font-weight: bold;
}

.prompt-user {
    color: #50fa7b;
}

.prompt-host {
    color: #8be9fd;
}

.prompt-path {
    color: #bd93f9;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    caret-color: #00ff41;
}

.command-input::selection {
    background: #44475a;
}

/* Custom scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0c0c0c;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cursor blink effect */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff41;
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Box drawing for tables */
pre {
    color: #00ff41;
    line-height: 1.4;
}

/* Experience section styling */
.experience-content {
    max-width: 1000px;
}

/* Company card - terminal-inspired container */
.company-card {
    margin: 25px 0;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.company-card:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

/* Company header with name and location */
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.company-name {
    color: #00ff41;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.company-location {
    color: #8be9fd;
    font-size: 13px;
}

/* Role card within company */
.role-card {
    margin: 15px 0;
    padding: 15px;
    border-left: 2px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.role-card:not(.last-role) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.2);
}

/* Role header with title and period */
.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.role-title {
    color: #00d4ff;
    font-weight: bold;
    font-size: 15px;
    flex: 1;
    min-width: 200px;
}

.role-period {
    color: #bd93f9;
    font-size: 13px;
    white-space: nowrap;
}

/* Role description and bullets */
.role-description {
    margin-top: 10px;
}

.role-bullet {
    color: #50fa7b;
    margin: 8px 0;
    line-height: 1.6;
    padding-left: 5px;
}

/* Company card footer */
.company-footer {
    color: #00ff41;
    margin-top: 15px;
    padding-top: 10px;
    opacity: 0.6;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Resume viewer and download button */
.resume-viewer {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

.resume-viewer iframe {
    background: #fff;
    border-radius: 4px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

.resume-download {
    text-align: center;
}

.resume-download p {
    margin-bottom: 15px;
    color: #00ff41;
}

.download-button {
    display: inline-block;
    padding: 12px 24px;
    background: #00ff41;
    color: #0c0c0c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #00ff41;
}

.download-button:hover {
    background: #0c0c0c;
    color: #00ff41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 65, 0.3);
}

/* Text selection */
::selection {
    background: #44475a;
    color: #f8f8f2;
}

/* Links in output */
a {
    color: #8be9fd;
    text-decoration: underline;
}

a:hover {
    color: #ff79c6;
}

/* Loading animation */
.loading {
    display: inline-block;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Info cards styling (about, education, contact) */
.info-content {
    max-width: 1000px;
}

.info-card {
    margin: 25px 0;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

.info-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.info-title {
    color: #00ff41;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.info-section {
    margin: 15px 0;
}

.info-item,
.contact-item {
    margin: 10px 0;
    line-height: 1.8;
    color: #50fa7b;
}

.info-label {
    color: #00d4ff;
    font-weight: bold;
    margin-right: 8px;
}

.info-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #50fa7b;
    text-align: justify;
}

.info-links {
    margin-top: 10px;
}

.info-links div {
    margin: 8px 0;
    color: #50fa7b;
}

/* Education specific styling */
.edu-degree {
    color: #00ff41;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.edu-institution {
    color: #8be9fd;
    margin-bottom: 8px;
}

.edu-period {
    color: #bd93f9;
    margin-bottom: 8px;
}

.edu-details {
    color: #50fa7b;
}

/* Contact specific styling */
.contact-message {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    color: #8be9fd;
    text-align: center;
    font-style: italic;
}

/* Skills section styling */
.skills-content {
    max-width: 1000px;
}

.skills-card {
    margin: 25px 0;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.skills-card:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

.skills-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.skills-title {
    color: #00ff41;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.skill-group {
    margin: 20px 0;
}

.skill-category {
    color: #00d4ff;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 5px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    color: #50fa7b;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.3);
}

/* Responsive design */
/* Landscape mobile orientation */
@media (max-width: 900px) and (max-height: 500px) {
    .welcome-message pre {
        font-size: 7px;
    }

    .terminal-body {
        padding: 10px;
    }

    .terminal-content {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .terminal-body {
        padding: 15px 10px;
    }

    .terminal-content {
        font-size: 13px;
    }

    .welcome-message pre {
        font-size: 7px;
        overflow-x: auto;
    }

    .prompt {
        font-size: 12px;
    }

    .command-input {
        font-size: 13px;
    }

    .output-line {
        font-size: 12px;
    }

    /* Hide box borders on mobile for cleaner look */
    .output-line.mobile-responsive {
        white-space: pre-wrap;
    }

    /* Mobile experience cards */
    .company-card {
        padding: 15px;
        margin: 20px 0;
    }

    .company-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-name {
        font-size: 14px;
        word-break: break-word;
    }

    .company-location {
        font-size: 11px;
        margin-top: 5px;
    }

    .role-card {
        padding: 12px;
    }

    .role-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .role-title {
        font-size: 14px;
        min-width: 100%;
    }

    .role-period {
        font-size: 12px;
        margin-top: 5px;
    }

    .role-bullet {
        font-size: 12px;
        line-height: 1.5;
    }

    .company-footer {
        font-size: 10px;
        white-space: nowrap;
        overflow-x: auto;
    }

    .info-card {
        padding: 15px;
        margin: 20px 0;
    }

    .info-title {
        font-size: 16px;
    }

    .info-item,
    .contact-item {
        font-size: 13px;
    }

    .info-description {
        font-size: 13px;
        text-align: left;
    }

    .edu-degree {
        font-size: 14px;
    }

    .edu-institution,
    .edu-period,
    .edu-details {
        font-size: 13px;
    }

    .contact-message {
        font-size: 13px;
    }

    .skills-card {
        padding: 15px;
        margin: 20px 0;
    }

    .skills-title {
        font-size: 16px;
    }

    .skill-category {
        font-size: 14px;
    }

    .skill-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .skill-badges {
        gap: 8px;
    }
}

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

    .terminal-content {
        font-size: 12px;
    }

    .welcome-message pre {
        font-size: 6px;
    }

    .prompt {
        font-size: 11px;
    }

    .command-input {
        font-size: 12px;
    }

    .input-line {
        flex-wrap: nowrap;
    }

    /* Extra small mobile experience cards */
    .company-card {
        padding: 12px;
        margin: 15px 0;
    }

    .company-name {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .company-location {
        font-size: 10px;
    }

    .role-card {
        padding: 10px;
        margin: 10px 0;
    }

    .role-title {
        font-size: 13px;
    }

    .role-period {
        font-size: 11px;
    }

    .role-bullet {
        font-size: 11px;
        margin: 6px 0;
    }

    .company-footer {
        font-size: 9px;
        margin-top: 10px;
    }

    .info-card {
        padding: 12px;
        margin: 15px 0;
    }

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

    .info-item,
    .contact-item {
        font-size: 12px;
    }

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

    .edu-degree {
        font-size: 13px;
    }

    .edu-institution,
    .edu-period,
    .edu-details {
        font-size: 12px;
    }

    .contact-message {
        font-size: 12px;
    }

    .skills-card {
        padding: 12px;
        margin: 15px 0;
    }

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

    .skill-category {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .skill-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .skill-badges {
        gap: 6px;
    }
}
