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

:root {
    --primary-color: #670B87;
    --secondary-color: #BB04F7;
    --dark-color: #0c2594;
    --light-color: #f0f0f0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--light-color);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: rgba(12, 37, 148, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header h1 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.section {
    padding: 10rem 4rem 4rem;
    text-align: center;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #b886ff, #5fe4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(184, 134, 255, 0.5);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
    padding: 10rem 4rem;
}

.hero-content {
    text-align: left;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    color: var(--light-color);
    background: linear-gradient(90deg, #b886ff, #5fe4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(187, 4, 247, 0.4);
}

.hero-image img {
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(187, 4, 247, 0.5);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: rotate(5deg) scale(1.05);
}


.about-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background 0.3s;
    max-width: 800px;
    margin: 2rem auto;
}

.about-card p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background 0.3s;
    min-width: 150px;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.skill-card span {
    display: block;
    font-weight: 500;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.project-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-info a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

footer {
    background: var(--primary-color);
    padding: 1.5rem;
    text-align: center;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    header h1 {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 4rem;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }

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

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

    .section {
        padding: 4rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about-card, .project-card, .skills-grid {
        padding: 1rem;
        margin: 1rem auto;
    }

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