/* Font Imports */
@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/PixelifySans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySansBold';
    src: url('../fonts/PixelifySans-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --surface-color: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'PixelifySans', monospace;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-family: 'PixelifySans', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-family: 'PixelifySans', monospace;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards, bounce 2s infinite 2s;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 90's Retro Interface */
.retro-interface {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 700px;
    height: 60vh;
    max-height: 500px;
    transition: var(--transition);
}

.retro-interface.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

.retro-window {
    width: 100%;
    height: 100%;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.retro-titlebar {
    background: linear-gradient(90deg, #0050a0 0%, #0080ff 100%);
    color: white;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #808080;
}

.retro-title {
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-weight: normal;
    font-size: 16px;
    padding-left: 4px;
    letter-spacing: 1px;
}

.retro-buttons {
    display: flex;
    gap: 2px;
}

.retro-btn {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retro-btn:active {
    border: 1px inset #c0c0c0;
}

.retro-btn.close:hover {
    background: #ff0000;
    color: white;
}

.retro-content {
    height: calc(100% - 35px);
    background: #008080;
    position: relative;
}

.retro-desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.retro-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: start;
}

.retro-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    color: white;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.retro-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.retro-icon:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.3);
}

.icon-image {
    width: 32px;
    height: 32px;
    margin: 0 auto 4px auto;
    display: block;
}

.retro-icon span {
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Pixelated Icons - Using Unicode with pixelated styling */
.pixel-icon-person,
.pixel-icon-document,
.pixel-icon-floppy,
.pixel-icon-blog {
    font-size: 32px;
    text-align: center;
    line-height: 32px;
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: 
        contrast(1.2) 
        saturate(1.1) 
        drop-shadow(0 0 1px rgba(0,0,0,0.5))
        drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', monospace;
}

/* Individual icon styling */
.pixel-icon-person {
    color: #f4c2a1;
    text-shadow: 
        0 0 2px #2c5aa0,
        1px 1px 0 rgba(0,0,0,0.5);
}

.pixel-icon-document {
    color: #ffffff;
    text-shadow: 
        0 0 2px #c0c0c0,
        1px 1px 0 rgba(0,0,0,0.5);
}

.pixel-icon-floppy {
    color: #404040;
    text-shadow: 
        0 0 2px #606060,
        1px 1px 0 rgba(0,0,0,0.5);
}

.pixel-icon-blog {
    color: #ffeb3b;
    text-shadow: 
        0 0 2px #ff9800,
        1px 1px 0 rgba(0,0,0,0.5);
}

.retro-taskbar {
    height: 28px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px;
}

.start-btn {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 5px 8px;
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.start-btn:active {
    border: 1px inset #c0c0c0;
}

.taskbar-clock {
    background: #808080;
    border: 1px inset #c0c0c0;
    padding: 2px 6px;
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
    letter-spacing: 1px;
    color: #00ff00;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    margin-top: 0;
}

.content-section:first-of-type {
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h3 {
    font-size: 1.3 rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-family: 'PixelifySans';
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 400px;
    background: var(--surface-color);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--border-radius);
}

/* CV Section */
.cv-section {
    background: var(--surface-color);
}

.cv-section-block {
    margin-bottom: 3rem;
}

.cv-section-block h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.experience-item,
.education-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 1.5rem;
}

.experience-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-header h4 {
    font-size: 1.25rem;
    color: var(--text-color);
}

.company,
.institution {
    color: var(--primary-color);
    font-weight: 600;
}

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

.experience-details {
    list-style: none;
    padding-left: 1rem;
}

.experience-details li {
    position: relative;
    padding: 0.25rem 0;
    color: var(--text-light);
}

.experience-details li::before {
    content: '▶';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.cv-download {
    text-align: center;
    margin-top: 3rem;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    height: 200px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog Section */
.blog-section {
    background: var(--surface-color);
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    padding: 2rem;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-post-meta time {
    font-family: 'JetBrains Mono', monospace;
}

.blog-post-content {
    color: var(--text-light);
    line-height: 1.7;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content .blog-section {
    margin: 2rem 0;
}

.blog-post-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-post-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background: var(--text-color);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-text {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

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

.contact-method a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-method a:hover {
    color: white;
    text-decoration: underline;
}

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

.footer p {
    color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-header {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .retro-interface {
        width: 95%;
        height: 70vh;
        max-height: 450px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth transitions for all interactive elements */
button, a, .project-card, .retro-icon {
    transition: var(--transition);
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prevent body scrolling when retro interface is active */
body.retro-interface-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


.my-image {
    width: 300px;
    height: 400px;
    background-image: url('../images/pixelated_me.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.fitbit-app {
    width: 200px;
    height: 200px;
    background-image: url('../images/fitbit_app.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.alerts-hephaestus {
    width: 240px;
    height: 200px;
    background-image: url('../images/alerts-hephaestus.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.image-chip {
    width: 200px;
    height: 200px;
    background-image: url('../images/chip.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}