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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: 
        radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e0 50%, #a0aec0 75%, #718096 100%);
    background-size: 100% 100%, 100% 100%, 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(118, 75, 162, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 35%);
    pointer-events: none;
    z-index: -2;
    animation: float 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.04) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
    animation: float 30s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    33% { 
        transform: translateY(-15px) rotate(120deg) scale(1.05); 
    }
    66% { 
        transform: translateY(10px) rotate(240deg) scale(0.95); 
    }
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%),
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    min-height: 100vh;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #667eea 75%, 
        #764ba2 100%);
    background-size: 300% 100%;
    animation: gradientShift 4s ease-in-out infinite;
    border-radius: 32px 32px 0 0;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(102, 126, 234, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(118, 75, 162, 0.03) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 32px;
}

/* Header styles */
.hero {
    text-align: center;
    margin-bottom: 2.8rem;
    padding-bottom: 2.1rem;
    border-bottom: 2px solid #f7fafc;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.title {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-badge:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-icon {
    width: 16px;
    height: 16px;
    color: #667eea;
}

.contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section styles */
section {
    margin-bottom: 4rem;
    animation: slideInLeft 0.6s ease-out;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Experience styles */
.experience-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.8rem;
    border-radius: 16px;
    margin-bottom: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 0 4px 4px 0;
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

.experience-title-section {
    flex: 1;
    min-width: 200px;
}

.experience-meta {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.job-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.company {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}


.dates {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}


.experience-item ul {
    margin: 0;
    padding-left: 1.2rem;
}

.experience-item li {
    color: #4a5568;
    margin-bottom: 0.6rem;
    line-height: 1.6;
    position: relative;
    font-size: 0.9rem;
}

.experience-item li::marker {
    color: #667eea;
    font-size: 1rem;
}

.experience-item li:last-child {
    margin-bottom: 0;
}

/* Skills styles */
.skills {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    margin: 3rem -2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.skills-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.skill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.skill.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.skill.secondary {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.skill.tertiary {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.skill:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.skill:hover::before {
    left: 100%;
}

/* Projects styles */
.project-item {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 5px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 0 3px 3px 0;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid #f7fafc;
    color: #718096;
    font-size: 0.95rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 24px;
        max-width: calc(100% - 2rem);
    }
    
    .container::before {
        height: 4px;
        border-radius: 24px 24px 0 0;
    }
    
    .container::after {
        border-radius: 24px;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .location-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .location-icon {
        width: 14px;
        height: 14px;
    }
    
    .contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact-icon {
        width: 16px;
        height: 16px;
    }
    
    .skills {
        padding: 3rem 1.5rem;
        margin: 2rem -1.5rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .experience-item,
    .project-item {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .experience-meta {
        align-items: flex-start;
        width: 100%;
        gap: 0.8rem;
        margin-top: 0;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .company {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: calc(100% - 1rem);
    }
    
    .container::before {
        height: 3px;
        border-radius: 20px 20px 0 0;
    }
    
    .container::after {
        border-radius: 20px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .location-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .location-icon {
        width: 12px;
        height: 12px;
    }
    
    .contact-icon {
        width: 14px;
        height: 14px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .experience-item,
    .project-item {
        padding: 1.2rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .company {
        font-size: 0.9rem;
    }
    
    .dates {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .location {
        font-size: 0.8rem;
    }
    
    .skills {
        padding: 2.5rem 1rem;
        margin: 1.5rem -1rem;
    }
    
    .skills-container {
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
    
    .skill {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}
