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

/* Body and Typography */
/* Body and Typography */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    transition: background-color 0.5s ease;
    padding-bottom: 60px; /* Matches footer height for fixed footer */
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4a261;
    color: white;
    padding: 10px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    flex-wrap: nowrap;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #e76f51;
}

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

/* Menu Items */
.menu a {
    position: relative;
    display: inline-block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

/* Tooltip Text */
.menu a .tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: blue;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.menu a:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Banner */
.banner {
    background-position: center;
    text-align: center;
    padding: 20px 0;
    background-color: #264653;
    color: white;
    font-family: 'Georgia', serif;
}

.banner h1 {
    font-size: 30px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 7px;
}

/* Section */
.section {
    padding: 10px 5px;
    font-size: 1em;
    font-weight: normal;
}

.section h2 {
    text-align: center;
    color: #2a9d8f;
    font-size: 35px;
    margin-bottom: 30px;
    font-weight: bold;
}

h2 i {
    font-style: normal;
    margin-right: 10px;
}

/* About Section */
.about {
    padding: 80px 30px;
    background-color: white;
    text-align: center;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    margin: -50px 30px 30px 30px;
    border-radius: 10px;
}

.about img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 30px;
}

.about h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about a {
    color: #f4a261;
    text-decoration: none;
    font-weight: 600;
}

/* Skills */
.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill {
    background-color: #5e755d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
}

.skill-icon {
    font-size: 50px;
    color: #2a9d8f;
    margin-bottom: 15px;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 22px;
}

/* Projects Section */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project {
    background-color: #5e755d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 80%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-info {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: white;
    border-radius: 10px;
}

.project:hover .project-info {
    display: block;
}

.project-title {
    font-weight: bold;
    font-size: 20px;
}

.project-link {
    color: #e76f51;
    text-decoration: none;
    font-size: 16px;
}

/* Footer (Fixed Option - Always Visible) */
.footer {
    background-color: #f4a261;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: fixed; /* Always visible */
    bottom: 0;
    width: 100%;
    z-index: 1000;
    height: 60px; /* Explicit height */
}

/* Sticky Footer Option (Replace 'fixed' with this if needed) */
/* Uncomment this block if you prefer sticky behavior */
 /*.footer {
     position: sticky; /* Sticks to the bottom near the end */
     bottom: 0;
 }*/


/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
    }

    .about {
        flex-direction: row;
    }

    .about img {
        width: 250px;
        height: 250px;
    }

    .skills {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row;
    }

    .about {
        flex-direction: row;
    }

    .skills {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects {
        grid-template-columns: repeat(3, 1fr);
    }
}
