.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    /* Responsive text size */
    font-weight: 700px;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image-container {
    max-width: 400px;
    /* Restrict image container width */
    flex: 1;
    /* Ensure it scales with the layout */
    text-align: center;
    /* Center-align image */
}

.hero-image {
    width: 100%;
    /* Make the image responsive */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Add shadow for style */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    object-fit: cover;
}

.hero-image:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}




@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        /* Stack text and image vertically */
        text-align: center;
        /* Center-align content */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        margin-top: 3rem;
        max-width: 100%;
        /* Allow text to stretch fully on small screens */
    }

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

    .hero-image-container {
        max-width: 270px;
        /* Reduce image size on small screens */
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .hero-content {
        max-width:450px;
        margin: 2.3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        text-align: start;
        font-size: 1rem;
    }

    .hero-image-container {
        max-width: 250px;
        /* Reduce image size on small screens */
    }

}

@media (max-width: 400px) {
    .hero p {
        font-size: 1rem;
    }
}