:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #cccccc;
    --color-text-muted: #999999;
    --color-white: #ffffff;
    --color-accent: #ff6b6b;
    --color-accent-hover: #ff5252;
    
    --font-family-base: 'Inter', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.8rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    --transition-speed: 0.2s;
}

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

body { 
    font-family: var(--font-family-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar { 
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-bg-secondary);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    color: var(--color-white) !important;
    font-weight: var(--font-weight-semibold);
    font-size: 1.2rem;
}

.nav-link { 
    color: var(--color-text-primary) !important;
    margin-left: var(--spacing-xl);
    transition: color var(--transition-speed);
}

.nav-link:hover { 
    color: var(--color-accent) !important;
}

header {
    padding: 100px 0 80px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

header p {
    color: var(--color-text-secondary);
    margin-bottom: 0.3rem;
}

header p:last-of-type {
    margin-bottom: 0;
}

section {
    padding: 60px 0;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

section p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.project {
    margin-bottom: var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.project-content {
    flex: 1;
}

.project-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.project-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.active {
    background-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.project-status.academic {
    background-color: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
}

.project p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.tech-stack {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-speed);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.skill-tag:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.education-item {
    margin-bottom: var(--spacing-xl);
}

.education-item h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.3rem;
}

.education-school {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.2rem;
}

.education-date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.contact-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-speed);
}

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

.experience-item {
    margin-bottom: var(--spacing-xl);
}

.experience-content h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.experience-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.experience-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.highlight-item:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.experience-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    padding: 0;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: color var(--transition-speed);
    font-size: 1rem;
    font-family: inherit;
}

.experience-btn:hover {
    color: var(--color-accent-hover);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--color-bg-secondary);
    margin: 3% auto;
    padding: var(--spacing-2xl);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    color: var(--color-text-muted);
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 1.8rem;
    font-weight: normal;
    cursor: pointer;
    transition: color var(--transition-speed);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-content h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #2a2a2a;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

.modal-body p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-body strong {
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
    display: inline-block;
    margin-right: var(--spacing-xs);
}

.modal-body ul {
    color: var(--color-text-secondary);
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
    line-height: 1.6;
}

.modal-body li::before {
    content: "→";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-muted);
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .nav-link {
        margin-left: 0;
    }
    
    .project {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}
