body {
    
    background-color: #f3f3f3;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    font-family: 'Brush Script MT', cursive;
    background-color: #f4f4f4;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 10%;
    width: 100%;
    top: -100px;
    animation: slideFromTop 1s forwards;
    z-index: 1000;
}

@keyframes slideFromTop {
    to {
        top: 0;
    }
}

header .name {
    padding-left: 100px;
    font-size: 1.5em;
    font-weight: bold;
}

header .name a{
    color: black;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    padding-right: 100px;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    position: relative;
    text-decoration: none;
    color: inherit; /* Inherits the color from the parent */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Distance of the underline from the text */
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: currentColor; /* Matches the text color */
    transition: width 0.3s ease; /* Animation duration and easing */
}

header nav ul li a:hover::after {
    width: 100%; /* Expands the underline to full width on hover */
}


.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f3f3f3;
    margin-top: 60px; /* Adjust based on header height */
    margin-bottom: 60px; /* Adjust based on footer height */
    opacity: 0;
    animation: fade 2s forwards;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between photo and text */
    max-width: 1000px; /* Adjust as needed */
    width: 100%;
    padding: 0 20px;
}

.hero-photo {
    width: 400px; /* Adjust photo size */
    height: 350px; /* Ensure height matches width for a perfect circle */
    border-radius: 50%; /* Makes the photo round */
    overflow: hidden; /* Ensures the image stays within the round frame */
    border: 2px solid #808080; /* Optional: Adds a white border around the photo */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}
.hero-photo:hover {
    background: black;
    box-shadow: 0 0 100px black;
}


.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the round frame */
}

.hero-text {
    max-width: 600px; /* Adjust text width */
}
@keyframes fade{
    to{
        opacity: 1;
    }
}

.hero-text h1 {
    margin: 0;
    font-size: 2.5em;
}

.hero-text p {
    font-size: 1.2em;
    margin: 10px 0;
}

.main-buttons {
    text-align: left;
    margin-top: 20px;
}

.main-buttons button {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.main-buttons .resume-btn {
    background-color: #4CAF50; /* Green */
    color: white;
}

.main-buttons .projects-btn {
    background-color: #008CBA; /* Blue */
    color: white;
}
.main-buttons .contact-btn {
    background-color: #e33c30; /* Red */
    color: white;
}

.main-buttons .resume-btn:hover {
    background-color: #45a049;
    box-shadow: 0 0 100px #45a049;
}

.main-buttons .projects-btn:hover {
    background-color: #007B9E;
    box-shadow: 0 0 100px #007B9E;
}
.main-buttons .contact-btn:hover {
    background-color: #ad251c;
    box-shadow: 0 0 100px #ad251c;
}

footer {
    background-color: #f4f4f4;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 500px;
    position: fixed;
    height: 5%;
    width: 100%;
    bottom: -100px;
    animation: slideFromBottom 1s forwards;
    z-index: 1000;
}

@keyframes slideFromBottom {
    to {
        bottom: 0;
    }
}

footer p {
    margin: 0;
}
footer p a {
    text-decoration: none;
    color: black;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    header .name{
        padding-left: 10px;
    }
    .hero-content {
        flex-direction: column; /* Stack photo and text vertically */
        align-items: center; /* Center-align items */
        gap: 20px; /* Reduce gap between photo and text */
    }

    .hero-photo {
        width: 150px; /* Smaller photo for mobile */
        height: 150px;
    }

    .hero-text {
        text-align: center; /* Center-align text on mobile */
    }

    .main-buttons {
        text-align: center; /* Center-align buttons on mobile */
    }

    .main-buttons button {
        margin: 5px; /* Adjust button spacing for mobile */
    }

    footer{
        display: block;
    }
}