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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0f0f23 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(100, 116, 139, 0.3);
    transform: translateY(0);
    animation: floatIn 1s ease-out, gentleFloat 6s ease-in-out infinite;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

@keyframes floatIn {
    0% { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

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

.profile-section {
    max-width: 500px;
    margin: 0 auto;
}

.avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 400% 400%;
    animation: avatarGlow 3s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 70px rgba(255, 107, 107, 0.5);
}

@keyframes avatarGlow {
    0% { 
        background-position: 0% 50%; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(59, 130, 246, 0.3);
    }
    50% { 
        background-position: 100% 50%; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(139, 92, 246, 0.4);
    }
    100% { 
        background-position: 0% 50%; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(59, 130, 246, 0.3);
    }
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease infinite;
}

@keyframes textShimmer {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(90deg); }
}

.title {
    font-size: 1.4rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.bio {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
    font-weight: 400;
}

/* Main content styles */
.main-content {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(100, 116, 139, 0.2);
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.3s both;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

@keyframes slideUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out both;
}

.section:nth-child(1) { animation-delay: 0.4s; }
.section:nth-child(2) { animation-delay: 0.6s; }
.section:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.section h2::after {
    content: '✨';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease infinite;
}

@keyframes sparkle {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { transform: translateX(-50%) scale(1.2) rotate(180deg); }
}

.section p {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
}

/* Projects styles */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: rgba(51, 65, 85, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.3), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.project-card:nth-child(even):hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

.project-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.project-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    color: #cbd5e1;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.link {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8b5cf6, #3b82f6);
    transition: left 0.3s ease;
    z-index: -1;
}

.link:hover::before {
    left: 0;
}

.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hobbies styles */
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
}

.hobby-card {
    background: rgba(51, 65, 85, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.hobby-card:hover::before {
    left: 100%;
}

.hobby-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.hobby-card:nth-child(2n):hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.hobby-card:nth-child(3n):hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

.hobby-icon {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.hobby-card:hover .hobby-icon {
    transform: scale(1.2) rotate(10deg);
}

.hobby-content {
    flex: 1;
    text-align: center;
}

.hobby-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hobby-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.hobby-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.hobby-link {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hobby-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8b5cf6, #3b82f6);
    transition: left 0.3s ease;
    z-index: -1;
}

.hobby-link:hover::before {
    left: 0;
}

.hobby-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Contact styles */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: gradientMove 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.contact-link:hover::before {
    width: 300px;
    height: 300px;
}

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

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
}

.contact-link:nth-child(1) { animation-delay: 0s; }
.contact-link:nth-child(2) { animation-delay: 1s; }
.contact-link:nth-child(3) { animation-delay: 2s; }
.contact-link:nth-child(4) { animation-delay: 3s; }

/* Footer styles */
.footer {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 1s both;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.footer p {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 2rem 1.5rem;
    }
    
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .project-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
}
