/* Modern Portfolio CSS */
:root {
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-blue: #4a90e2;
    --accent-green: #e7e5dd;
    --accent-orange: #ff8c00;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
}

/* Animated Background Styles */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.animated-background canvas {
    display: block;
    mask-image: radial-gradient(circle, transparent 15%, black 60%);
    -webkit-mask-image: radial-gradient(circle, transparent 15%, black 60%);
}

/* Main content needs relative positioning to stay above background */
.container {
    position: relative;
    z-index: 1;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist Mono', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.4rem;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

/* Container */
.container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--text-muted);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.title {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
}

/* Bio Section */
.bio-section {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.status-indicator {
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* Projects Section */
.projects-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.project-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    transform: translateX(4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.project-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.github-link {
    color: #fff;
    margin-left: 0.1px;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: var(--accent-blue);
    background: none;
}

.github-link svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.project-header h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tech-stack {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.project-item p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Skills Section */
.skills-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.skill-category {
    margin-bottom: var(--spacing-lg);
}

.skill-category h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-category li {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.skill-category li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s ease;
    display: block;
}

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

/* Decorative Image */
.decorative-image {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 35vw;
    height: 45vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.65;
    max-width: 700px;
    max-height: 800px;
    min-width: 250px;
    min-height: 350px;
}

.decorative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .sidebar {
        flex-direction: row;
        gap: var(--spacing-xl);
    }
    
    .skills-section,
    .contact-section {
        flex: 1;
    }
    
    .decorative-image {
        width: 30vw;
        height: 35vh;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
        align-items: flex-start;
        padding-top: var(--spacing-xl);
    }
    
    .container {
        max-width: 100%;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .sidebar {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .skill-category ul {
        justify-content: center;
    }
    
    .project-title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .decorative-image {
        width: 40vw;
        height: 40vh;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    
    .bio-section {
        font-size: 1.3rem;
    }
    
    .projects-section h2,
    .skills-section h2,
    .contact-section h2 {
        font-size: 1.6rem;
    }
    
    .decorative-image {
        width: 35vw;
        height: 35vh;
    }
}

/* Selection styling */
::selection {
    background: var(--accent-blue);
    color: #000000;
}

