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

:root {
    --primary-color: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1e3a8a, #3730a3);
    --secondary-color: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-right {
    display: flex;
    flex-direction: column;
}

.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 32px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.1;
        transform: scale(1.05);
    }
}

.profile-content {
    max-width: 500px;
    margin-bottom: 48px;
}

.profile-content .name {
    text-align: center;
}

.profile-content .description {
    text-align: center;
    margin-bottom: 24px;
}

.name {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social links styling */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

/* Content Sections */
.content {
    padding-bottom: 80px;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Timeline Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.year {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 80px;
    font-weight: 500;
}

.timeline-content {
    flex: 1;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.timeline-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Education & Experience Two-Column Layout */
.edu-exp-section {
    margin-bottom: 80px;
}

.edu-exp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.education-section h2,
.experience-section h2 {
    margin-bottom: 32px;
}

/* Education Section */
.education-grid {
    display: grid;
    gap: 32px;
}

.education-item {
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.education-item p:last-child {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 32px;
}

.experience-item {
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.experience-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.experience-item p:last-child {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 32px;
}

.project-item {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.project-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.project-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.project-item p:not(.project-role) {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--background-secondary);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}





/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

        .profile-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .profile-left {
        text-align: center;
    }
    
    .profile-image-container {
        width: 160px;
        height: 160px;
        margin: 0 auto 24px;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .social-links {
        justify-content: center;
    }

    .edu-exp-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .experience-item,
    .education-item,
    .project-item {
        padding: 24px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .year {
        min-width: auto;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}