/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    text-decoration: none;
}

/* Wrapper */
.wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    overflow: visible;
}

/* Header */
.my-header {
    width: 100%;
    overflow: hidden;
}
header {
    overflow: visible;
    position: fixed;
    display: flex;
    top: 0;
    width: 100%;
    background-color: #111;
    color: white;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}
body {
    overflow-x: hidden;
    width: 100%;
    background: #222;
    color: #e5e5e5;
    padding-top: 80px;
}

.navlinks {
    display: flex;
    flex-wrap: wrap; /* ✅ allows items to wrap on small screens */
    gap: 1rem; /* ✅ adds spacing between nav items */
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    max-width: 100%;
    flex-shrink: 0;
}

.navlinks a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    max-width: 100%;
    text-overflow: ellipsis;
    flex-grow: 1;
    white-space: nowrap;
}
.navlinks li a{
    white-space: nowrap;
}


/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    background-color: #007ced;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 8px;
}

.logo .logo-text {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
    overflow: visible;
    position: relative;
}

nav .togglebtn {
    position: fixed;
    z-index: 1000;
    display: none;
    width: 35px;
    height: 50px;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

nav .togglebtn span {
    display: block;
    background-color: #007ced;
    margin: 6px 0;
    width: 100%;
    height: 3px;
    transition: 0.3s;
}

nav .navlinks {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: auto;
    justify-content: flex-end;
}

nav .navlinks a {
    color: #e5e5e5;
    font-size: 1rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav .togglebtn {
        display: block;
    }

    nav .navlinks {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100%;
        background: #222;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right 0.4s ease-in-out;
    }

    nav .navlinks.open {
        right: 0;
    }

    nav .navlinks a {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding-top: 2rem;
    text-align: center;
}

/* Profile Picture */
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid #444;
    box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-picture img:hover {
    transform: scale(1.1);
}

/* Profile Text */
.profile-picture-text {
    max-width: 90%;
    text-align: center;
}

.profile-picture-text h1 {
    color: #007ced;
    font-size: 2rem;
}

.profile-picture-text span {
    color: #007ced;
    font-size: 1rem;
}

.profile-picture-text p {
    font-size: 1rem;
}

/* Buttons */
.btn-group {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #e5e5e5;
    color: white;
    background-color: #007ced;
    box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.78);
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #005bb5;
}
.social-media {
    text-align: center;
    margin-top: 20px;
}

.social-media a {
    color: #007ced;
    font-size: 30px;
    margin: 0 15px;
}

.social-media a:hover {
    color: white;
}

.btn.active {
    border-color: #007ced;
}

/* Social Icons */
.profile-picture-text .social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profile-picture-text .social i {
    font-size: 28px;
    transition: transform 0.5s, color 0.5s;
}

.profile-picture-text .social i:hover {
    color: #007ced;
    transform: rotate(360deg);
}

/* Contact Page */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.contact-container h1 {
    color: #007ced;
    font-size: 28px;
    margin-bottom: 15px;
}

/* Form */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #444;
    border: 2px solid white;
    border-radius: 8px;
}

/* Adjustments for smaller devices */
@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
        border: 8px solid #444;
    }

    .profile-picture-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .profile-picture-text .social i {
        font-size: 24px;
    }
}

/* Large Screen Optimization: Layout Shift for profile picture and the text */
@media (min-width: 1024px) {
    .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 7rem 6%;
        gap: 100px;
        text-align: left;
    }

    .profile-picture {
        width: 450px;
        height: 450px;
        flex-shrink: 0;
        border: 14px solid #444;
        box-shadow: 10px 14px 40px rgba(0, 0, 0, 0.65);
    }

    .profile-picture-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        max-width: 100%;
        flex: 1;
    }

    .profile-picture-text h1 {
        font-size: 5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .profile-picture-text h1 span {
        font-size: inherit;
        color: #007ced;
    }

    .profile-picture-text span {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }

    .profile-picture-text p {
        font-size: 2rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        max-width: 850px;
    }

    .btn-group {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
        width: 100%;
    }

    .btn {
        font-size: 1.6rem;
        padding: 18px 36px;
        border-radius: 35px;
    }

    .profile-picture-text .social {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        margin-top: 10px;
    }

    .profile-picture-text .social i {
        font-size: 44px;
    }
}

.intro {
    padding: 4rem 10%;
    text-align: center;
    background-color: #222;
    color: #e5e5e5;
}

.intro h1 {
    font-size: 3rem;
    color: #007ced;
    margin-bottom: 1.5rem;
}

.intro p {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.intro .btn {
    padding: 15px 30px;
    border-radius: 25px;
    background-color: #007ced;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.intro .btn:hover {
    background-color: #005bb5;
}

/* About Me Section */
.about-me {
    padding: 40px 10%;
    text-align: center;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-me h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.about-me p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-me .btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
    margin: 10px;
}

.about-me .btn:hover {
    background-color: #0056b3;
}

.about-me .btn:focus {
    outline: none;
}

.about-me .btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#back-to-top {
    background-color: #28a745;
}

#back-to-top:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .about-me {
        padding: 20px 5%;
    }

    .about-me h1 {
        font-size: 2.5rem;
    }

    .about-me p {
        font-size: 1rem;
    }
}
/* Resume Section */
.resume-container {
    padding: 60px 10%;
    background-color: #f4f4f9;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.resume-container h1 {
    font-size: 3rem;
    color: #007ced;
    margin-bottom: 1.5rem;
}

.resume-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resume-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.resume-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resume-card h3 {
    font-size: 1.6rem;
    color: #007ced;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}

.resume-card p {
    font-size: 1.1rem;
    color: #555;        
    margin-bottom: 15px;
}

.resume-card ul {
    list-style-type: none;
    padding: 0;
}

.resume-card ul li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 8px;
}

.resume-card ul li i {
    color: #007ced;
    margin-right: 8px;
}

.download-btn {
    padding: 12px 24px;
    background-color: #007ced;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 30px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #005bb5;
}

.download-btn i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resume-container {
        padding: 40px 5%;
    }

    .resume-container h1 {
        font-size: 2.5rem;
    }

    .resume-section {
        grid-template-columns: 1fr;
    }

    .resume-card h3 {
        font-size: 1.4rem;
    }

    .resume-card p {
        font-size: 1rem;
    }

    .download-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

