/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #000000;
    color: #00ff00;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Matrix-style scrolling background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 79px, #001100 81px),
        linear-gradient(#001100 1px, transparent 1px);
    background-size: 80px 20px;
    opacity: 0.05;
    z-index: -1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #003300;
    padding: 1rem 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* Main content */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transition: all 0.3s ease;
    object-fit: cover;
}

.profile-image:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

.profile-text {
    text-align: left;
}

.hero-social {
    margin-top: 1.5rem;
    justify-content: center;
}

.hero-social .social-link {
    margin: 0 0.125rem;
    padding: 0.5rem;
}

.hero-social .social-link:hover {
    color: #ffffff;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.3);
    }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    opacity: 0.8;
}

/* Highlights section */
.highlights {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

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

.highlight-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

.highlight-item::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-weight: bold;
}

.highlight-item:hover {
    opacity: 1;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Thoughts section */
.thoughts {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 3rem;
    color: #00ff00;
    border-bottom: 2px solid #003300;
    padding-bottom: 1rem;
}

.thought-group {
    margin-bottom: 3rem;
}

.thought-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #00cc00;
    opacity: 0.9;
}

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

.thought-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

.thought-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-weight: bold;
}

.thought-list li:hover {
    opacity: 1;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background-color: #001100;
    border-top: 1px solid #003300;
    padding: 2rem 1rem;
    margin-top: auto;
}

.social-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #00ff00;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: #ffffff;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .nav {
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .main {
        padding: 1rem;
    }
    
    .hero {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .profile-text {
        text-align: center;
    }
    
    .hero-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .highlights {
        margin-bottom: 2rem;
    }
    
    .highlight-item {
        padding-left: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .thought-group {
        margin-bottom: 2rem;
    }
    
    .thought-list {
        padding-left: 0.5rem;
    }
    
    .thought-list li {
        padding-left: 1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Performance optimizations */
.nav-link,
.social-link,
.thought-list li {
    will-change: transform, opacity;
}

/* About page styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.story {
    margin-bottom: 2rem;
}

.story-section {
    margin-bottom: 3rem;
}

.story-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #00cc00;
    opacity: 0.9;
}

.story-paragraph {
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
    opacity: 0.9;
}

.story-paragraph code {
    background-color: #001100;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: inherit;
    color: #00ff00;
    border: 1px solid #003300;
}

.current-focus {
    background-color: #001100;
    border: 1px solid #003300;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

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

.focus-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

.focus-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-weight: bold;
}

/* Projects page styles */
.projects-content {
    max-width: 900px;
    margin: 0 auto;
}

.projects-intro {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #001100;
    border: 1px solid #003300;
    border-radius: 8px;
}

.intro-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

.projects-list {
    margin-bottom: 3rem;
}

.project-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #00cc00;
    opacity: 0.9;
}

.project-items {
    list-style: none;
    padding-left: 1rem;
}

.project-item {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background-color: rgba(0, 17, 0, 0.3);
    border-left: 3px solid #003300;
    border-radius: 0 4px 4px 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-item:hover {
    opacity: 1;
    border-left-color: #00ff00;
    background-color: rgba(0, 17, 0, 0.5);
}

.project-item strong {
    color: #00ff00;
    font-weight: 500;
}

.projects-note {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #003300;
}

.note-text {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    opacity: 0.7;
    font-style: italic;
}

/* Mobile optimizations for new pages */
@media (max-width: 768px) {
    .story-section {
        margin-bottom: 2rem;
    }
    
    .current-focus {
        padding: 1.5rem;
    }
    
    .projects-intro {
        padding: 1.5rem;
    }
    
    .project-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .project-category {
        margin-bottom: 2rem;
    }
}

/* Contact page styles */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #001100;
    border: 1px solid #003300;
    border-radius: 8px;
}

.contact-form-container {
    margin-bottom: 3rem;
}

.contact-form {
    background-color: rgba(0, 17, 0, 0.3);
    border: 1px solid #003300;
    border-radius: 8px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ff00;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #000000;
    border: 2px solid #003300;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-textarea::placeholder {
    color: #006600;
    opacity: 0.7;
}

.form-submit {
    background-color: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 0.75rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #00ff00;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.contact-alternatives {
    background-color: #001100;
    border: 1px solid #003300;
    border-radius: 8px;
    padding: 2rem;
}

.contact-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #00cc00;
    opacity: 0.9;
}

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

.contact-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

.contact-item::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-weight: bold;
}

.contact-item:hover {
    opacity: 1;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile optimizations for contact page */
@media (max-width: 768px) {
    .contact-intro,
    .contact-form,
    .contact-alternatives {
        padding: 1.5rem;
    }
    
    .form-submit {
        width: 100%;
        padding: 1rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .title {
        animation: none;
    }
    
    .nav-link,
    .social-link,
    .thought-list li,
    .project-item,
    .profile-image,
    .highlight-item,
    .form-input,
    .form-textarea,
    .form-submit,
    .contact-item,
    .contact-link {
        transition: none;
    }
}
