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

:root {
    --bg-primary: #FAFBFC;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-hover: #5568d3;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(102, 126, 234, 0.15);
    --section-spacing: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header Section */
.header {
    padding: 4rem 0 5rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: var(--section-spacing);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.header-content {
    text-align: center;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-blue);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.contact-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-link:hover svg {
    transform: scale(1.1);
}

/* Download Button with Enhanced Glassmorphism */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: var(--bg-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
}

.download-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.download-btn svg {
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Main Content */
.main-content {
    animation: fadeIn 0.6s ease-in;
}

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

.section {
    margin-bottom: var(--section-spacing);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

/* Professional Summary */
.summary-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
    padding: 1.75rem;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow-md);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.skill-list {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Certifications */
.certifications {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Job Experience */
.job {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border-left: 5px solid var(--accent-blue);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.job::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 5px;
    height: 100%;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.job:hover::before {
    opacity: 1;
}

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

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-blue);
}

.job-meta {
    text-align: right;
}

.location,
.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievements li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Education */
.education {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-purple);
}

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

.education .date {
    color: var(--text-secondary);
}

/* Open Source */
.open-source {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.open-source a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.open-source a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .job-header {
        flex-direction: column;
    }

    .job-meta {
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    :root {
        --section-spacing: 2.5rem;
    }
}

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

    .download-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
