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

body {
    font-family: Arial, sans-serif;
    color: #fff;
    background: linear-gradient(120deg, purple 0%, #000000 50%, #860566);
    margin: 0;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}
.logo img{
    width: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ff8a00;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    gap: 20px; /* Adds spacing for wrapped elements */
}

.text {
    max-width: 50%;
    min-width: 300px;
    
}

.text h1 {
    font-size: 50px;
    font-weight: bold;
    line-height: 1.2;

    
}

.text .highlight {
    color: #ff8a00;
}

.text p {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.5;
    
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 2px solid #ff8a00;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: #ff8a00;
    color: #000;
}

/* Image Section */
.image1 img {
    padding-right: 3rem;
    width: 100%; /* Ensures image scales */
    max-width: 400px; /* Limit max size */
    height: auto;
}


/* Responsive Styles */

/* Small Screens (Tablets, Large Phones) */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        padding: 30px;
        flex-direction: column; /* Stacks content vertically */
        text-align: center; /* Centers text */
    }

    .text {
        max-width: 100%; /* Full width for smaller screens */
    }

    .text h1 {
        font-size: 40px; /* Adjusted headline size */
    }

    .text p {
        font-size: 16px;
    }

    .btn {
        font-size: 16px;
    }

    .image1 img {
        max-width: 400px; /* Smaller image for tablets */
    }
}

/* Extra Small Screens (Phones) */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack navbar items */
        align-items: flex-start;
        padding: 10px 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .hero {
        padding: 20px;
        text-align: center;
    }

    .text h1 {
        font-size: 32px; /* Smaller headline for phones */
    }

    .text p {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 20px;
    }

    .image1 img {
        max-width: 300px; /* Smaller image for phones */
    }
}
