:root {
    --bg-color: #0f1115;
    --text-color: #a0aec0;
    --heading-color: #f7fafc;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --border-color: rgba(255, 255, 255, 0.1);
    --block-bg: rgba(255, 255, 255, 0.02);
    --block-hover: rgba(255, 255, 255, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 40vh;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(15, 17, 21, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Typography */
h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

strong {
    color: #cbd5e1;
    font-weight: 600;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

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

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

/* Sections */
.section-block {
    margin-bottom: 4rem;
}

.bio p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Lists */
.interest-list {
    list-style-type: none;
}

.interest-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.interest-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Experience */
.experience-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: var(--block-bg);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.experience-item:hover {
    background-color: var(--block-hover);
    border-color: rgba(255, 255, 255, 0.05);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-meta {
    font-size: 0.85rem;
    color: #64748b;
    font-family: monospace;
}

.experience-details {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Grid Section */
.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.education-item {
    background-color: var(--block-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.education-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.placeholder-text {
    font-style: italic;
    color: #64748b;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Footer */
.footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .grid-section {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--heading-color);
    text-decoration: none;
}
