@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #EE82EE;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #EE82EE;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45vh;
    padding: 165px 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(238, 130, 238, 0.1));
}

.hero-text {
    width: 50%;
    color: #4B0082;
    padding: 25px;
    border-radius: 10px;
    background: rgba(106, 13, 173, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-text h1 {
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #4B0082;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 550px;
    color: #444;
    line-height: 1.6;
}

.btn {
    background: linear-gradient(135deg, #4B0082, #8B008B);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #6A0DAD, #EE82EE);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.5);
}

.hero-image {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-right: 30px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.4s;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 100px 20px;
    }

    .hero-text, .hero-image {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        padding-right: 0;
    }

    .hero-image img {
        width: 80%;
        max-width: 400px;
    }
}