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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Logo with Transitions */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5cf6;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    color: #ec4899;
    transform: scale(1.05) translateY(-2px);
    text-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.logo:hover::before {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide checkbox */
#menu-checkbox {
    display: none;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: #8b5cf6;
    padding-left: 2.5rem;
}

/* Checkbox checked state */
#menu-checkbox:checked ~ .nav-container .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Hamburger animation when checked */
#menu-checkbox:checked ~ .nav-container .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-checkbox:checked ~ .nav-container .menu-toggle span:nth-child(2) {
    opacity: 0;
}

#menu-checkbox:checked ~ .nav-container .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 0.5s forwards;
}

@keyframes heroFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: titleSlideIn 1s ease-out 0.8s both;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: subtitleFade 1s ease-out 1.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: buttonPop 1s ease-out 1.6s both;
    position: relative;
    overflow: hidden;
}

@keyframes buttonPop {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

/* Section Styles */
.section {
    padding: 80px 0;
    transition: all 0.3s ease;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8b5cf6;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    animation: lineExpand 1s ease-out 0.5s forwards;
}

@keyframes lineExpand {
    to { width: 50px; }
}

/* Enhanced About Section */
.about {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #ecfeff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Enhanced Profile Image with Multiple Effects */
.profile-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.2),
        0 0 0 0 rgba(139, 92, 246, 0.3);
    animation: profileFloat 4s ease-in-out infinite;
}

@keyframes profileFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        box-shadow: 
            0 20px 40px rgba(139, 92, 246, 0.2),
            0 0 0 0 rgba(139, 92, 246, 0.3);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        box-shadow: 
            0 30px 60px rgba(139, 92, 246, 0.3),
            0 0 0 10px rgba(139, 92, 246, 0.1);
    }
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #06b6d4, #ec4899);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: gradientRotate 3s linear infinite;
    transition: opacity 0.6s ease;
}

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

.profile-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 30px 60px rgba(139, 92, 246, 0.4),
        0 0 0 15px rgba(139, 92, 246, 0.1),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1) contrast(1.1);
}

.profile-img:hover::before {
    opacity: 1;
}

/* Add a subtle glow effect */
.profile-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

.profile-img:hover::after {
    opacity: 0.5;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 1s ease-out 0.3s forwards;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-text p:hover {
    color: #8b5cf6;
    transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.skill-category h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.skill-category:hover h3 {
    color: #ec4899;
    transform: translateY(-2px);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #f9fafb 0%, #fdf2f8 50%, #f3e8ff 100%);
}

.education-timeline {
    position: relative;
    margin: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ec4899, #8b5cf6);
    transform: translateX(-50%);
}

.education-item {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }

.education-item:nth-child(odd) .education-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.education-item:nth-child(even) .education-content {
    margin-left: 50%;
    padding-left: 2rem;
}

.education-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.education-date {
    color: #ec4899;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.education-content:hover .education-date {
    color: #8b5cf6;
    transform: translateY(-2px);
}

.education-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.education-content:hover .education-title {
    color: #8b5cf6;
}

.education-institution {
    color: #666;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.education-content:hover .education-institution {
    color: #ec4899;
}

.download-cv {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

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

.download-cv:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.download-cv:hover::before {
    left: 100%;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.interest-card:nth-child(1) { animation-delay: 0.1s; }
.interest-card:nth-child(2) { animation-delay: 0.2s; }
.interest-card:nth-child(3) { animation-delay: 0.3s; }
.interest-card:nth-child(4) { animation-delay: 0.4s; }

.interest-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.interest-card:hover .interest-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 10px rgba(139, 92, 246, 0.3));
}

.interest-card h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.interest-card:hover h3 {
    color: #ec4899;
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #ecfeff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    filter: brightness(1.1);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    color: #ec4899;
    transform: translateY(-2px);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: #7c3aed;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-tag:hover {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    transform: translateY(-2px) scale(1.05);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    margin-top: 2rem;
    transition: all 0.4s ease;
}

.contact-form:hover {
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.form-group:hover label {
    color: #8b5cf6;
    transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.whatsapp-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

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

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.footer:hover {
    background: linear-gradient(135deg, #374151 0%, #5b21b6 100%);
}

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

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Add subtle hover effects to all sections */
.section:hover {
    background-color: rgba(139, 92, 246, 0.01);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-img {
        max-width: 250px;
        height: 250px;
    }

    .education-timeline::before {
        left: 20px;
    }

    .education-item:nth-child(odd) .education-content,
    .education-item:nth-child(even) .education-content {
        margin: 0;
        margin-left: 40px;
        padding: 1.5rem;
        text-align: left;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Mobile-specific animations */
    .hero h1 {
        animation-duration: 1.5s;
    }
    
    .profile-img {
        animation-duration: 6s;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .profile-img {
        max-width: 200px;
        height: 200px;
    }

    .logo {
        font-size: 1.3rem;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #be185d, #7c3aed);
}

/* Preloader animation (optional) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}