/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0C0C0C;
    --text-primary: #CCCCCC;
    --text-secondary: #FFFFFF;
    --text-muted: #808080;
    --accent: #00FF00;
    --border-color: #404040;
    --glow-color: rgba(204, 204, 204, 0.2);
    
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   TERMINAL CONTAINER
   ============================================ */
.terminal-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.1),
        0 0 40px rgba(0, 255, 65, 0.05);
    overflow: hidden;
    animation: terminalAppear 0.5s ease;
}

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

/* ============================================
   TERMINAL HEADER
   ============================================ */
.terminal-header {
    background-color: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background-color: #ff5f56;
}

.btn-minimize {
    background-color: #ffbd2e;
}

.btn-maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   TERMINAL BODY
   ============================================ */
.terminal-body {
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.prompt {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.prompt::before {
    content: '>';
    margin-right: 8px;
    color: var(--accent);
}

.content {
    padding-left: 20px;
    color: var(--text-primary);
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-photo {
    width: 120px;
    height: 120px;
    margin: 15px 0 20px 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    box-shadow: 0 0 20px var(--glow-color);
    object-fit: cover;
}

.name {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.company {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.job-details {
    margin-top: 10px;
    padding-left: 20px;
    list-style: none;
}

.job-details li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
    position: relative;
}

.job-details li::before {
    content: '▸';
    color: var(--accent);
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.skill {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.separator {
    color: var(--accent);
    font-weight: bold;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-item {
    margin-bottom: 18px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.degree {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.institution {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   LANGUAGES SECTION
   ============================================ */
.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background-color: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--text-primary);
}

.language-item:last-child {
    margin-bottom: 0;
}

.language-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.stars {
    color: var(--accent);
    font-size: 0.9rem;
}

.stars i {
    margin-left: 2px;
}

/* ============================================
   SOCIAL LINKS SECTION
   ============================================ */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(0, 255, 65, 0.1);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* ============================================
   CV DOWNLOAD SECTION
   ============================================ */
.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 15px;
}

.cv-download:hover {
    background-color: var(--accent);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateX(5px);
}

.cv-download i:first-child {
    font-size: 1.5rem;
}

.cv-download i:last-child {
    font-size: 1.2rem;
    margin-left: auto;
}

.cv-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   CURSOR
   ============================================ */
.cursor-line {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-cursor {
    color: var(--text-secondary);
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

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

/* ============================================
   TYPING ANIMATION
   ============================================ */
.typing {
    overflow: hidden;
    border-right: 2px solid var(--text-primary);
    white-space: nowrap;
    animation: typing 2s steps(40) forwards, blink-border 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-border {
    0%, 50% {
        border-color: var(--text-primary);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: stretch;
        min-height: 100vh;
    }
    
    .terminal-container {
        max-width: 100%;
        min-height: calc(100vh - 20px);
        display: flex;
        flex-direction: column;
    }
    
    .terminal-body {
        padding: 15px;
        max-height: none;
        flex: 1;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .position {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .section {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .terminal-container {
        min-height: calc(100vh - 20px);
    }
    
    .terminal-header {
        padding: 10px 12px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .btn {
        width: 10px;
        height: 10px;
    }
    
    .terminal-body {
        padding: 12px;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .position {
        font-size: 0.9rem;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .skills-list {
        font-size: 0.85rem;
    }
}
