.hero {
    height: 60vh; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem; 
    box-sizing: border-box;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

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

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 100%; 
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 1), 
                 -0.5px -0.5px 1px rgba(0, 0, 0, 1), 
                 0.5px -0.5px 1px rgba(0, 0, 0, 1), 
                 -0.5px 0.5px 1px rgba(0, 0, 0, 1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 100%; 
    margin: auto;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 1), 
                 -0.5px -0.5px 1px rgba(0, 0, 0, 1), 
                 0.5px -0.5px 1px rgba(0, 0, 0, 1), 
                 -0.5px 0.5px 1px rgba(0, 0, 0, 1);
    
}

.hero-buttons {
    display: flex;
    gap: 9.5rem;
    justify-content: center;
    margin-top: 4rem;
}

.cta-button {
    background: #0e2339;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.cta-button.secondary {
    background: #0e2339;
}

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

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

.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding-top: 2rem;
}

.section {
    padding: 2rem 0;
}

.section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.profile {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    text-align: left; 
}

.profile img {
    border-radius: 50%;
    width: 400px; 
    height: 400px; 
    margin-left: 12rem; 
    margin-top: 4rem;
    object-fit: cover;
    object-position: 0px -100px;
}

.profile p {
    margin: 0 0 1.5rem;
    text-align: justify; 
    max-width: 600px; 
}

.profile p a[target="_blank"]::after {
    content: "\f35d"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    margin-left: 0.3rem; 
    font-size: 0.9rem;
    color: inherit;
    vertical-align: middle; 
}

.profile p a[target="_blank"] {
    text-decoration: none; 
    color: #007BFF; 
}

.profile p a[target="_blank"]:hover {
    color: #0056b3; 
    text-decoration: underline; 
}


.projects {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto; 
    gap: 2rem; 
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.projects::-webkit-scrollbar {
    height: 8px; 
}

.projects::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px;
}

.projects::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.projects {
    scroll-snap-type: x mandatory; 
}

.projects:hover {
    scroll-behavior: smooth;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

.project-tile {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 300px;
    height: 200px;
    margin: 1rem;
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-tile h3 {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.project-tile:hover h3 {
    opacity: 0; /* Hide the text on hover */
}


.project-tile:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.project-tile .overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.project-tile:hover .overlay {
    opacity: 1; /* Hide the text on hover */
}

.project-tile .overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}


.contact-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-icons a {
    color: #333; /* Default text color */
    text-decoration: none;
    font-size: 1.2rem; /* Increase the size of the text */
    display: flex;
    align-items: center;
    gap: 0.5rem; 
    transition: color 0.3s ease; 
}

.contact-icons a:hover {
    color: #007BFF; 
}

.contact-icons i {
    font-size: 1.5rem; 
}


/* General styles for mobile responsiveness */
@media (max-aspect-ratio: 1) {
    /* Improve font sizes and line heights for mobile */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Adjust the layout for mobile to ensure readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        margin-bottom: 1rem;
        width: 80%; /* Make buttons take up more width */
    }

    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; /* Center text for better readability */
        padding: 1rem;
    }

    .profile img {
        position: relative;
        top: 10px; left: -100px; bottom: 10;
        border-radius: 50%;
        width: 300px; 
        height: 300px; 
        margin-bottom: 1rem; 
        margin-top: 4rem;
        object-fit: cover;
        object-position: 0px -100px;
    }

    .profile p {
        max-width: 100%; /* Remove max-width on mobile */
        margin-bottom: 1rem;
    }

    .hero {
        background-size: cover;
        height: 100vh; /* Ensure hero section takes up full screen height */
    }

    .section {
        padding: 2rem 1rem; /* Adjust padding for mobile */
    }
}

    
