
body {
    margin: 0;
    padding: 1rem;
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    color: #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: green;
    padding: 10px 20px;
    color: #fff;
    position: relative;
    z-index: 1000; /* Ensure nav is on top of other content */
}

.logo-container {
    flex: 0 1 auto;
    width: 70px;
    height: auto;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #00bcd4;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background: #00bcd4;
    color: #fff;
}

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

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.hero {
    background: url('ben.jpg') center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 2s ease-out, scaleUp 15s infinite ease-in-out;
}

.hero-content {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    animation: fadeInUp 5s ease-out;
}

.cta-button {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.5s ease;
}

.cta-button:hover {
    background: #0056b3;
}

.feature-highlight {
    background: #fff;
    padding: 10px 60px;
    text-align: center;
}

.features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Make features wrap on smaller screens */
}

.feature {
    flex: 1;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px; /* Limit the width of features */
    margin: 10px; /* Add margin to make space around features */
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.main-content {
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.profile-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.portfolio-item {
    margin-bottom: 20px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer {
    background: green;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #0288d1;
}

/* Dropdown Menu Styling */
.nav-links {
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #00bcd4;
}

.nav-links {
    position: relative;
}

.nav-links {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background: #00bcd4;
    color: #fff;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 200px;
        position: absolute;
        top: 60px;
        right: 0;
        background: green;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transform: translateY(-20px);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #0056b3;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: #00bcd4;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 10px;
    }
}

/* Contact Form Styling */
.contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background: #00bcd4;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #0288d1;
}
