/* Root Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #000000;
    --accent-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.25);
    --node-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

body:has(.page-view) {
    overflow-y: auto;
}

/* Page View for Individual Pages */
.page-view {
    position: fixed;
    inset: 0;
    background: #ffffff;
    overflow-y: auto;
    z-index: 100;
    animation: pageZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    z-index: -1;
}

/* Node View - Main 3D Navigation */
.node-view {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.node-view::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.node-view.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.node-view.zoom-out {
    animation: zoomOut 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.node-container {
    position: relative;
    width: min(90vw, 90vh, 900px);
    height: min(90vw, 90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Node */
.center-node {
    position: absolute;
    width: min(40%, 400px);
    height: min(40%, 400px);
    max-width: 350px;
    max-height: 350px;
    background: radial-gradient(ellipse at 30% 30%, #1a1a1a 0%, #000000 50%, #000000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset -5px -5px 20px rgba(255, 255, 255, 0.05),
        inset 5px 5px 20px rgba(0, 0, 0, 0.5);
    transform: translateZ(50px);
    z-index: 5;
}

.center-node .node-inner {
    text-align: center;
    padding: 20px;
}

.center-node h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.center-node p {
    color: #cccccc;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Orbital Nodes */
.orbital-node {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%);
    border: 3px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset -2px -2px 8px rgba(0, 0, 0, 0.1),
        inset 2px 2px 8px rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
    left: 50%;
    top: 50%;
    margin-left: -60px;
    margin-top: -60px;
    z-index: 20;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.orbital-node {
    offset-path: ellipse(clamp(180px, 20vw, 250px) clamp(280px, 35vh, 350px) at center);
    offset-rotate: 0deg;
    animation: orbit 25s linear infinite;
    animation-delay: var(--delay, 0s);
}

/* Show preview when at top */
.orbital-node .node-preview {
    animation: autoShowPreview 25s linear infinite;
    animation-delay: var(--delay, 0s);
    transition: opacity 0.2s ease;
}

@keyframes autoShowPreview {
    0%, 69%, 81%, 100% { 
        opacity: 0;
    }
    70%, 80% { 
        opacity: 1;
    }
}

/* Stop ALL auto-preview animations when ANY node is hovered */
.node-container:has(.orbital-node:hover) .orbital-node .node-preview {
    animation-play-state: paused !important;
}

/* Hide non-hovered auto-previews */
.node-container:has(.orbital-node:hover) .orbital-node:not(:hover) .node-preview {
    opacity: 0 !important;
    transition: opacity 0.15s ease !important;
}

@keyframes orbit {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

.orbital-node:hover {
    animation-play-state: paused !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset -3px -3px 12px rgba(0, 0, 0, 0.15),
        inset 3px 3px 12px rgba(255, 255, 255, 0.9);
    border-color: #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
    z-index: 50;
    width: 150px;
    height: 150px;
    margin-left: -75px;
    margin-top: -75px;
    pointer-events: auto;
    transform: translateZ(80px) scale(1.25);
}

/* Pause all animations when hovering a specific node */
.orbital-node:hover ~ .orbital-node {
    animation-play-state: paused;
}

.node-container:has(.orbital-node:hover) .orbital-node {
    animation-play-state: paused;
}

.orbital-node[href="/static/real-projects.html"]:hover,
.orbital-node[href="/static/software.html"]:hover,
.orbital-node[href="/static/resume.html"]:hover {
    width: 220px;
    height: 220px;
    margin-left: -110px;
    margin-top: -110px;
    transform: translateZ(80px) scale(1.22);
}

/* Larger nodes for important sections */
.orbital-node[href="/static/real-projects.html"],
.orbital-node[href="/static/software.html"],
.orbital-node[href="/static/resume.html"] {
    width: 180px;
    height: 180px;
    margin-left: -90px;
    margin-top: -90px;
}

.orbital-node[href="/static/real-projects.html"] .node-label,
.orbital-node[href="/static/software.html"] .node-label,
.orbital-node[href="/static/resume.html"] .node-label {
    font-size: 1.1rem;
}

.orbital-node .node-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    transition: color 0.3s ease;
    line-height: 1.2;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 -1px 1px rgba(0, 0, 0, 0.1);
}

.orbital-node:hover .node-label {
    color: var(--primary-color);
}

/* Hover Preview - Miniature Page View */
.node-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: min(450px, 45vw);
    height: min(350px, 40vh);
    max-width: calc(100vw - 100px);
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 9999;
    overflow: hidden;
}

.node-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
}

/* Ensure preview doesn't block clicks */
.orbital-node .node-preview {
    pointer-events: none !important;
}

.orbital-node:hover .node-preview {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) translateZ(10px) !important;
    z-index: 10000 !important;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.9) !important;
}

/* Window Title Bar with Buttons */
.node-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: #f0f0f0;
    border-bottom: 1px solid #d0d0d0;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.node-preview::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 
        20px 0 0 0 #ffbd2e,
        40px 0 0 0 #27c93f;
    z-index: 2;
}

/* Preview Page Styles */
.preview-page {
    width: 100%;
    height: 100%;
    padding: 50px 20px 20px 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.preview-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

/* About Page Preview */
.preview-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 50%;
    margin: 0 auto;
}

.preview-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.preview-line.short {
    width: 60%;
}

/* Projects Grid Preview */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.preview-card {
    height: 60px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 6px;
}

/* Contact Preview */
.preview-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.preview-contact-card {
    height: 50px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 8px;
}

/* Resume Preview */
.preview-resume {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-section {
    height: 50px;
    background: #f5f5f5;
    border-left: 3px solid #000000;
    padding-left: 8px;
}

.preview-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preview-tag {
    width: 50px;
    height: 20px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 10px;
}

/* Converter Form Preview */
.preview-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.preview-input {
    height: 35px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 6px;
}

.preview-button {
    height: 40px;
    background: #000000;
    border-radius: 6px;
}

/* Section Views */
.section-view {
    position: fixed;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    z-index: 100;
}

.section-view.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
    animation: zoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.section-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    z-index: -1;
}

.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    background: #000000;
    border: 3px solid #000000;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 101;
}

.back-btn:hover {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.section-content {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 60px;
    animation: slideIn 0.6s ease-out;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.section-content h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #000000;
    border-bottom: 4px solid #000000;
    padding-bottom: 20px;
    font-weight: 800;
}

.section-content p {
    font-size: 1.2rem;
    color: #333333;
    line-height: 1.9;
    margin-bottom: 25px;
    font-weight: 400;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 30px auto;
    display: block;
    border: 6px solid #000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* About Highlights */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.highlight-card {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 700;
}

.highlight-card p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: #000000;
    background: #f5f5f5;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 700;
}

.project-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333333;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tags span {
    background: #000000;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.project-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 25px;
    background: #ffffff;
}

.project-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateX(5px) scale(1.05);
}

/* Contact Cards */
.contact-intro {
    margin: 30px 0;
    padding: 30px;
    background: #f5f5f5;
    border-left: 6px solid #000000;
    border-radius: 8px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.contact-card {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 20px;
    padding: 40px 50px;
    text-decoration: none;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: #000000;
    background: #f5f5f5;
}

.contact-icon {
    font-size: 3rem;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-subtitle {
    font-size: 1rem;
    color: #666666;
}

/* Resume Content */
.resume-section-content {
    margin-bottom: 30px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 12px;
}

.resume-section-content p {
    margin-bottom: 20px;
}

.resume-section-content p:last-child {
    margin-bottom: 0;
}

.resume-content h3 {
    font-size: 2.2rem;
    margin: 40px 0 20px;
    color: #000000;
    font-weight: 800;
    border-left: 6px solid #000000;
    padding-left: 20px;
}

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

.skills-list span {
    background: #000000;
    color: #ffffff;
    border: 3px solid #000000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.skills-list span:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Converter Form Styles */

/* Converter (original styles kept) */
.converter-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; }
.form-group input[type="file"], .form-group select { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px; border-radius: 8px; font-family: inherit; transition: all 0.3s ease; }
.form-group input[type="file"]:focus, .form-group select:focus { outline: none; border-color: #000000; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); }
.btn-primary { background: var(--accent-gradient); color: #ffffff; border: none; padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.btn-primary:active { transform: translateY(0); }
.result-message { margin-top: 20px; padding: 15px; border-radius: 8px; font-weight: 500; display: none; }
.result-message.success { background: #d1fae5; color: #065f46; border: 1px solid var(--primary-color); display: block; }
.result-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; display: block; }

.progress-container { margin-top: 20px; }
.progress-bar { width: 100%; height: 8px; background: #e0f2fe; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.progress-fill { height: 100%; background: var(--accent-gradient); width: 0%; transition: width 0.3s ease; animation: progressPulse 1.5s ease-in-out infinite; }
.progress-text { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; }
@keyframes progressPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@keyframes fadeIn { from { opacity:0; transform: translateY(20px);} to { opacity:1; transform:translateY(0);} }
section { animation: fadeIn 0.6s ease-out; }

.name {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section with Terminal */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.terminal {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 700px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.terminal-header {
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.prompt {
    color: var(--primary-color);
    font-weight: 600;
}

.command {
    color: var(--secondary-color);
}

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

.typing::after {
    content: '▊';
    animation: blink 1s infinite;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Fira Code', monospace;
}

.bracket {
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.skill-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* Projects Section */
.projects {
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
}

        /* Minimal Bright Theme (Enhanced) */
        --bg: #f9fafc;
        --bg-alt: #ffffff;
        --border: #e2e8f0;
        --text: #1a202c;
        --text-soft: #4a5568;
        --accent: #2563eb;
        --accent-alt: #ff9800;
        --accent-soft: #333333;
        --gradient-bg: radial-gradient(circle at 30% 20%, #ffffff 0%, #eff6ff 40%, #f0fdf4 75%);
        --code-bg: #f3f4f6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
body { font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background:var(--gradient-bg); color:var(--text); line-height:1.55; -webkit-font-smoothing:antialiased; }
    border-radius: 12px;
    padding: 30px;
.minimal-header { text-align:center; padding:56px 0 8px; position:relative; }
.minimal-header::after { content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:120px; height:4px; background:linear-gradient(90deg,var(--accent) 0%, var(--accent-alt) 100%); border-radius:4px; opacity:.85; }
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
.hero-name { font-size:clamp(2.9rem,7vw,4.4rem); font-weight:700; letter-spacing:-1px; background:linear-gradient(90deg,var(--accent) 0%,var(--accent-alt) 100%); -webkit-background-clip:text; color:transparent; filter:drop-shadow(0 3px 6px rgba(0,0,0,0.08)); }
    display: flex;
    flex-direction: column;
.minimal-tool { background:var(--bg-alt); border:1px solid var(--border); padding:38px 40px 48px; border-radius:var(--radius); box-shadow:var(--shadow); transition:box-shadow .25s ease, transform .25s ease; position:relative; overflow:hidden; }
.minimal-tool::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(37,99,235,0.07) 0%, rgba(255,152,0,0.07) 100%); opacity:0; transition:opacity .35s ease; }
.minimal-tool:hover { box-shadow:var(--shadow-hover); transform:translateY(-4px); }
.minimal-tool:hover::before { opacity:1; }

.project-card:hover {
.tool-title { font-size:2rem; margin-bottom:24px; font-weight:600; letter-spacing:-0.5px; color:var(--text); display:flex; align-items:center; gap:12px; }
.tool-title::before { content:'⚙️'; font-size:1.4rem; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
.form-group input[type="file"], .form-group select { background:var(--bg-alt); border:1px solid var(--border); color:var(--text); padding:12px 14px; border-radius:10px; font-family:inherit; transition:border-color .2s, box-shadow .2s, background .2s; }
.form-group input[type="file"]:focus, .form-group select:focus { outline:none; border-color:var(--accent); box-shadow:var(--focus-ring); background:#ffffff; }
.form-group select optgroup { color:var(--text-soft); }
}

.btn-primary { background:linear-gradient(100deg,var(--accent) 0%,var(--accent-soft) 40%,var(--accent-alt) 100%); color:#fff; border:none; padding:15px 36px; border-radius:14px; font-weight:600; font-size:1rem; cursor:pointer; letter-spacing:.4px; transition:transform .22s, box-shadow .22s, filter .22s; font-family:inherit; }
.btn-primary:hover { transform:translateY(-4px); box-shadow:0 10px 26px rgba(37,99,235,0.28); filter:brightness(1.05); }
.btn-primary:active { transform:translateY(-1px); }
    justify-content: space-between;
    align-items: center;
.result-message { margin-top:18px; padding:16px 18px; border-radius:12px; font-weight:500; display:none; font-size:.9rem; backdrop-filter:blur(2px); }
    margin-bottom: 15px;
    flex-wrap: wrap;
.result-message.success { background:#f5f5f5; color:#000000; border:1px solid #000000; display:block; }
.result-message.error { background:linear-gradient(90deg,#fef2f2,#fee2e2); color:#b91c1c; border:1px solid #ef4444; display:block; }
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}
.minimal-footer { text-align:center; font-size:0.8rem; color:var(--text-soft); padding:14px 0 0; opacity:.85; letter-spacing:.3px; }

.project-tag {
    .minimal-wrapper { padding:32px 20px 60px; gap:46px; }
    .hero-name { font-size:clamp(2.5rem,10vw,3.5rem); }
    .minimal-tool { padding:26px 26px 38px; }
    .tool-title { font-size:1.7rem; }
    .btn-primary { padding:14px 30px; }
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(0, 136, 255, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 12px;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Tools Section */
.tools-content {
    max-width: 700px;
    margin: 0 auto;
}

.tools-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tool-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tool-card > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="file"],
.form-group select {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-darker);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

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

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.result-message.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: block;
}

.result-message.error {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: 1px solid #ff5f56;
    display: block;
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.contact-btn .icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer p {
    margin: 5px 0;
}

.footer-tech {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 0;
    }

    .terminal-body {
        padding: 20px;
        font-size: 0.85rem;
    }

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

    .contact-links {
        flex-direction: column;
    }

    .tool-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .terminal-body {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

.converter-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 600px;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.form-group label { 
    color: var(--text-secondary); 
    font-weight: 600; 
    font-size: 0.95rem; 
}

.form-group input[type="file"], 
.form-group select { 
    background: var(--bg-card); 
    border: 2px solid var(--border-color); 
    color: var(--text-primary); 
    padding: 12px; 
    border-radius: 8px; 
    font-family: inherit; 
    transition: all 0.3s ease; 
}

.form-group input[type="file"]:focus, 
.form-group select:focus { 
    outline: none; 
    border-color: #000000; 
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); 
}

.btn-primary { 
    background: var(--accent-gradient); 
    color: #ffffff; 
    border: none; 
    padding: 14px 30px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: inherit; 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); 
}

.result-message { 
    margin-top: 20px; 
    padding: 15px; 
    border-radius: 8px; 
    font-weight: 500; 
    display: none; 
}

.result-message.success { 
    background: #f5f5f5; 
    color: #000000; 
    border: 2px solid #000000; 
    display: block; 
}

.result-message.error { 
    background: rgba(239, 68, 68, 0.1); 
    color: #ef4444; 
    border: 2px solid #ef4444; 
    display: block; 
}

.progress-container { 
    margin-top: 20px; 
}

.progress-bar { 
    width: 100%; 
    height: 10px; 
    background: var(--bg-card); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 2px solid var(--border-color); 
}

.progress-fill { 
    height: 100%; 
    background: var(--accent-gradient); 
    width: 0%; 
    transition: width 0.3s ease; 
    animation: progressPulse 1.5s ease-in-out infinite; 
}

.progress-text { 
    text-align: center; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    margin-top: 8px; 
}

@keyframes progressPulse { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.7; } 
}

@media (max-width: 768px) {
    .center-node {
        width: 200px;
        height: 200px;
    }
    
    .center-node h1 {
        font-size: 1.5rem;
    }
    
    .orbital-node {
        width: 100px;
        height: 100px;
        margin-left: -50px;
        margin-top: -50px;
        --orbit-radius: 200px;
    }
    
    .node-icon {
        font-size: 1.8rem;
    }
    
    .node-label {
        font-size: 0.7rem;
    }
    
    .section-content {
        padding: 20px;
        margin-top: 80px;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .back-btn {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Peter Character Animation */
/* 
   Z-Index Layering Strategy:
   - Negative z-index values (e.g., -1) are reserved for background elements like Peter.
   - All other content should use z-index: 0 or higher.
   - This ensures Peter always stays behind interactive and foreground content.
*/
.peter-character {
    position: fixed;
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 10%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.63;
    animation: peterWander 20s ease-in-out infinite;
}

@keyframes peterWander {
    0%, 100% {
        left: 10%;
        bottom: 20px;
        transform: scaleX(1) scaleY(1);
    }
    
    /* Jump 1 */
    5% {
        bottom: 20px;
        transform: scaleX(1.1) scaleY(0.8);
    }
    10% {
        bottom: 120px;
        transform: scaleX(0.9) scaleY(1.2);
    }
    15% {
        bottom: 20px;
        transform: scaleX(1.2) scaleY(0.7);
    }
    20% {
        left: 25%;
        bottom: 20px;
        transform: scaleX(1) scaleY(1);
    }
    
    /* Jump 2 */
    25% {
        bottom: 20px;
        transform: scaleX(1.1) scaleY(0.8);
    }
    30% {
        bottom: 100px;
        transform: scaleX(0.9) scaleY(1.2);
    }
    35% {
        bottom: 20px;
        transform: scaleX(1.2) scaleY(0.7);
    }
    40% {
        left: 50%;
        bottom: 20px;
        transform: scaleX(1) scaleY(1) rotateY(180deg);
    }
    
    /* Jump 3 - heading back */
    45% {
        bottom: 20px;
        transform: scaleX(1.1) scaleY(0.8) rotateY(180deg);
    }
    50% {
        bottom: 130px;
        transform: scaleX(0.9) scaleY(1.2) rotateY(180deg);
    }
    55% {
        bottom: 20px;
        transform: scaleX(1.2) scaleY(0.7) rotateY(180deg);
    }
    60% {
        left: 35%;
        bottom: 20px;
        transform: scaleX(1) scaleY(1) rotateY(180deg);
    }
    
    /* Jump 4 */
    65% {
        bottom: 20px;
        transform: scaleX(1.1) scaleY(0.8) rotateY(180deg);
    }
    70% {
        bottom: 110px;
        transform: scaleX(0.9) scaleY(1.2) rotateY(180deg);
    }
    75% {
        bottom: 20px;
        transform: scaleX(1.2) scaleY(0.7) rotateY(180deg);
    }
    80% {
        left: 15%;
        bottom: 20px;
        transform: scaleX(1) scaleY(1) rotateY(180deg);
    }
    
    /* Small idle bounce */
    85% {
        bottom: 20px;
        transform: scaleX(1) scaleY(1) rotateY(0deg);
    }
    90% {
        bottom: 40px;
        transform: scaleX(0.95) scaleY(1.05) rotateY(0deg);
    }
    95% {
        bottom: 20px;
        transform: scaleX(1.05) scaleY(0.95) rotateY(0deg);
    }
}
