/* Terminal Portfolio Theme - Muted Colors & Transparency */

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

:root {
    /* Terminal Color Palette - Muted & Transparent - Dark Theme */
    --bg-primary: rgba(18, 18, 18, 0.95);
    --bg-secondary: rgba(30, 30, 30, 0.9);
    --bg-tertiary: rgba(40, 40, 40, 0.8);
    --text-primary: rgba(200, 200, 200, 0.9);
    --text-secondary: rgba(150, 150, 150, 0.8);
    --text-muted: rgba(120, 120, 120, 0.7);
    --accent-green: rgba(46, 160, 67, 0.8);
    --accent-blue: rgba(58, 150, 221, 0.8);
    --accent-yellow: rgba(255, 193, 7, 0.7);
    --accent-red: rgba(220, 53, 69, 0.7);
    --border-color: rgba(68, 68, 68, 0.6);
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: rgba(248, 248, 250, 0.95);
    --bg-secondary: rgba(240, 240, 242, 0.9);
    --bg-tertiary: rgba(230, 230, 235, 0.8);
    --text-primary: rgba(40, 45, 50, 0.9);
    --text-secondary: rgba(75, 85, 95, 0.8);
    --text-muted: rgba(110, 120, 130, 0.7);
    --accent-green: rgba(84, 19, 19, 0.8);
    --accent-blue: rgba(13, 110, 253, 0.8);
    --accent-yellow: rgba(33, 124, 47, 0.9);
    --accent-red: rgba(220, 53, 69, 0.8);
    --border-color: rgba(108, 117, 125, 0.3);
    --shadow: rgba(0, 0, 0, 0.15);
}

/* Light theme background gradient */
[data-theme="light"] body {
    background: linear-gradient(135deg, 
        rgba(245, 245, 250, 0.95), 
        rgba(235, 235, 245, 0.9), 
        rgba(225, 225, 240, 0.85));
}

/* Light theme terminal window background */
[data-theme="light"] .terminal-window {
    background: rgba(254, 247, 233, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button in Header */
.theme-toggle-header {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.theme-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-toggle:hover span {
    transform: rotate(15deg);
}

/* Minimalistic Theme Switcher Icon */
.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.theme-switcher-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.icon-half {
    position: absolute;
    width: 50%;
    height: 100%;
    transition: all 0.3s ease;
}

.dark-half {
    left: 0;
    background: var(--text-primary);
    border-radius: 14px 0 0 14px;
}

.light-half {
    right: 0;
    background: var(--bg-primary);
    border-radius: 0 14px 14px 0;
    border-left: 1px solid var(--border-color);
}

/* Theme States */
.theme-icon-dark .dark-half {
    opacity: 1;
}

.theme-icon-dark .light-half {
    opacity: 0.3;
}

.theme-icon-light .dark-half {
    opacity: 0.3;
}

.theme-icon-light .light-half {
    opacity: 1;
}

/* Subtle hover effect */
.theme-toggle:hover .theme-switcher-icon {
    transform: scale(1.05);
    border-color: var(--accent-blue);
}

.theme-toggle:hover .icon-half {
    opacity: 0.8 !important;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, 
        rgba(15, 15, 23, 0.95), 
        rgba(25, 25, 35, 0.9), 
        rgba(35, 35, 45, 0.85));
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Terminal Window */
.terminal-window {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.7;
}

.btn.red { background: var(--accent-red); }
.btn.yellow { background: var(--accent-yellow); }
.btn.green { background: var(--accent-green); }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.terminal-content {
    padding: 20px;
    min-height: 70vh;
}

/* Terminal Lines & Prompts */
.terminal-line,
.output-line,
.section-header {
    margin-bottom: 15px;
}

.prompt {
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 10px;
}

.typing-text {
    color: var(--text-primary);
    position: relative;
}

.loading {
    color: var(--accent-yellow);
    animation: blink 1.5s infinite;
}

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

/* Navigation */
.terminal-nav {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-commands {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.nav-cmd {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    font-size: inherit;
}

.nav-cmd:hover {
    background: var(--bg-tertiary);
    color: var(--accent-green);
    transform: translateY(-1px);
}

.nav-cmd:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-cmd:hover:before {
    width: 100%;
}

/* Sections */
.terminal-section {
    margin: 40px 0;
    padding: 20px 0;
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.command {
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 10px;
}

.section-content {
    padding-left: 20px;
    margin-left: 15px;
}

/* ASCII Art */
.ascii-art {
    color: var(--accent-green);
    font-size: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    opacity: 0.8;
}

/* About Section */
.about-text {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* Experience Section */
.experience-item {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.experience-item:hover {
    background: rgba(40, 44, 52, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Light theme hover effects */
[data-theme="light"] .experience-item:hover {
    background: rgba(230, 230, 235, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 13px;
}

.file-permissions {
    color: var(--accent-blue);
}

.file-date {
    color: var(--accent-yellow);
    min-width: 100px;
}

.file-name {
    color: var(--text-primary);
    font-weight: bold;
}

.exp-details {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-left: 20px;
}

.exp-details strong {
    color: var(--text-primary);
}

/* Enhanced Experience Styles */
.company-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.company-name {
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.job-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.achievements {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 0;
}

/* Education Section */
.education-item {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.education-item:hover {
    background: rgba(40, 44, 52, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Light theme hover effects */
[data-theme="light"] .education-item:hover {
    background: rgba(230, 230, 235, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 13px;
}

.edu-details {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-left: 20px;
}

.degree-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.university-name {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.degree-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.academic-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gpa {
    color: var(--accent-yellow);
    font-weight: bold;
    background: rgba(229, 192, 123, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    font-size: 0.9rem;
}

.coursework {
    color: var(--text-secondary);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Projects Section */
.project-item {
    margin-bottom: 20px;
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

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

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:hover {
    color: inherit;
}

.file-icon {
    font-size: 16px;
}

.project-name {
    font-weight: bold;
}

.project-desc {
    color: var(--text-muted);
    margin-left: 25px;
    font-style: italic;
}

.project-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.project-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-green);
}

/* Light theme project card hover */
[data-theme="light"] .project-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.project-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.tag {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid var(--border-color);
}

/* View All Projects Button */
.view-all-projects {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.1), rgba(152, 195, 121, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.view-all-btn:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.2), rgba(152, 195, 121, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.view-all-btn .output {
    color: var(--accent-green);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.view-all-btn:hover .output {
    transform: translateX(1px);
}

/* Blog Section */
.blog-item {
    margin-bottom: 20px;
}

.blog-link {
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

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

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-link:hover {
    color: inherit;
}

.blog-desc {
    color: var(--text-muted);
    margin-left: 25px;
    font-style: italic;
}

.blog-preview {
    margin-top: 20px;
}

.blog-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.post-date {
    color: var(--accent-yellow);
    font-size: 12px;
    min-width: 100px;
}

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

/* Resume Section */
.resume-download {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.download-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.resume-preview {
    color: var(--text-secondary);
}

.resume-preview ul {
    margin-left: 20px;
    margin-top: 10px;
}

.resume-preview li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Contact Section */
.contact-info p {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    color: var(--text-secondary);
    min-width: 80px;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-green);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 18px;
}

/* Footer */
.terminal-prompt-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .section-content {
        padding-left: 15px;
        margin-left: 10px;
    }
    
    .nav-commands {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .project-preview {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ascii-art {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .terminal-content {
        padding: 10px;
    }
    
    .skills-list {
        justify-content: center;
    }
    
    .download-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Interactive Terminal - Integrated */
.terminal-prompt-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 12px 0;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    padding: 5px 0;
    caret-color: var(--accent-green);
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.terminal-input:focus {
    background: rgba(46, 160, 67, 0.05);
    border-radius: 2px;
    padding: 5px 8px;
}

.terminal-output {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin: 10px 0 30px 0;
    display: none;
}

.terminal-output.visible {
    display: block;
}

.output-line {
    margin-bottom: 8px;
    font-family: monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-line.command {
    color: var(--text-primary);
}

.output-line.response {
    color: var(--text-secondary);
    margin-left: 20px;
}

.output-line.error {
    color: var(--accent-red);
    margin-left: 20px;
}

.output-line.success {
    color: var(--accent-green);
    margin-left: 20px;
}

.command-history {
    color: var(--text-muted);
    font-style: italic;
}

/* Terminal scrollbar styling */
.terminal-output::-webkit-scrollbar {
    width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

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

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

.cursor {
    color: var(--accent-green);
    animation: cursor-blink 1.2s infinite;
    font-weight: bold;
}

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

/* Section Configuration Utilities */
.section-hidden {
    display: none !important;
}

.nav-cmd.hidden {
    display: none !important;
}