body {
    background-color: #f0f0f0; /* Light grey background */
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes up full viewport height */
}

header {
    background-color: rgb(76, 187, 23);
    color: #fff;
    padding: 10px 20px; /* Reduce padding for a smaller header */
    display:flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.logo h1 {
    margin: 10;
    font-size: 25px; /* Adjust logo text size */
    text-shadow: 0 0 15px white, 0 0 20px white, 0 0 20px red; /* Glow effect */
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap:wrap;
    justify-content: center; /* Wrap the navigation links on smaller screens */
}

header nav a {
    color: black;
    background-color: aliceblue;
    text-decoration: none;
    padding: 10px 20px; /* Create space around the links */
    font-size: 18px; /* Increase text size */
    border: 2px solid transparent; /* Initial border for button effect */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

header nav a:hover {
    background-color: rgb(239, 16, 60);
    color: white;
    border-color: #f0f0f0;
    transform: scale(1.1); /* Border matches background */
}

header nav a.active {
    color: red; /* Red color for the active button */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* Take up remaining space between header and footer */
    padding: 20px;
    box-sizing: border-box;
}

.card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.8); /* Transparent white background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    max-width: 800px;
    width: 100%;
    align-items: center;
}

.text-content {
    flex-grow: 1;
    padding-right: 20px; /* Space between text and image */
}

.intro-text {
    margin: 0 0 10px 0;
    font-size: 32px; /* Space below header text */
}

.text-content p {
    margin: 0 0 10px 0; /* Space between paragraphs */
    line-height: 1.5;
    font-size: 22px; /* Increased font size for paragraphs */
}

.profile-pic {
    flex-shrink: 0; /* Prevent image from shrinking */
}

.profile-pic img {
    width: 200px; /* Increased size */
    height: 200px; /* Increased size */
    border-radius: 40%; /* Circular image */
    object-fit: cover;
}

.profile-pic:hover {
    transform: scale(1.1);
    color: red;
}

.resume-button {
    display: inline-block;
    background-color: rgb(76, 187, 23); /* Green background */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    margin-top: 20px; /* Space above the button */
    transition: background-color 0.3s;
}

.resume-button:hover {
    transform: scale(1.1);
    color: black;
}

footer {
    background-color: rgb(76, 187, 23); /* Matching header color */
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.neon {
    text-shadow: 0 0 10px white, 0 0 20px white, 0 0 20px red;
}

.active {
    color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: center; /* Center align items */
    }

    .text-content {
        padding-right: 0; /* Remove right padding */
        text-align: center; /* Center align text */
        margin-bottom: 30px; /* Add space below the text */
    }

    .profile-pic img {
        width: 150px; /* Reduce image size */
        height: 150px; /* Reduce image size */
    }

    header nav ul {
        flex-direction:row;
        align-items: center;

    }

    header nav ul li {
        margin-bottom: 25px; /* Add space between items on smaller screens */
    }

    header nav a {
        padding: 6px 12px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    header nav ul li a {
        padding: 8px 10px; /* Reduce padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .intro-text {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    .text-content p {
        font-size: 18px; /* Reduce paragraph font size */
    }

    .resume-button {
        padding: 8px 16px; /* Reduce button padding */
        font-size: 16px; /* Reduce button font size */
    }
}
