* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e91e63;
    --secondary: #9c27b0;
    --accent: #ff6090;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* UPDATED: Profile image styles to support actual photos */
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; /* Contains the image within the circle */
    font-size: 4rem;
    color: var(--primary);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle properly */
    display: block;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.contact-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.contact-links a:hover {
    transform: translateY(-3px);
}

nav {
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
    animation: fadeIn 1s ease;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient);
}

.summary {
    background: linear-gradient(135deg, #ffeef5 0%, #f3e5f5 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.education-card h3 {
    color: var(--secondary);
}

.education-university {
    color: #666;
    margin: 0.5rem 0;
}

.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

.experience-date {
    color: var(--primary);
    font-weight: 500;
}

.experience-company {
    color: #666;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.experience-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.skill-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    text-align: left;
}

.skill-list li {
    padding: 0.3rem 0;
    color: #555;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: linear-gradient(135deg, #fff 0%, #ffeef5 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
}

.cert-item:hover {
    transform: scale(1.05);
}

.cert-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cert-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.cert-description {
    color: #666;
    font-size: 0.9rem;
}

.cert-year {
    color: var(--primary);
    margin-top: 0.5rem;
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.award-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.award-item:hover {
    transform: rotate(-2deg) scale(1.05);
}

.award-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.award-title {
    font-weight: 600;
    color: var(--secondary);
}

.award-org {
    color: #666;
    margin-top: 0.5rem;
}

.award-year {
    color: var(--primary);
}

.languages {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.language-badge {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    transition: transform 0.3s;
}

.language-badge:hover {
    transform: translateY(-5px);
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-tagline {
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .container { padding: 2rem 1rem; }
    nav ul { gap: 1rem; }
    .skills-grid { grid-template-columns: 1fr; }
}