@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #6d28d9;
    --secondary-color: #db2777;
    --accent-color: #0891b2;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --card-background: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f0e7ff, #fff0f7, #e6f9ff);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    transform-origin: 0%;
    z-index: 1000;
    animation: gradient 15s ease infinite;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(109,40,217,0.1) 0%, rgba(219,39,119,0.1) 50%, rgba(8,145,178,0.1) 100%);
    filter: blur(50px);
    z-index: -1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.hero-image img {
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 0.9rem;
    color: #4b5563;
}

.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a, .contact-buttons a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover, .contact-buttons a:hover {
    transform: translateY(-5px) scale(1.1);
}

footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image img {
        max-width: 200px;
    }

    .social-links {
        justify-content: center;
    }

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

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
