/* General Styles */
body {
    background-image: url(images/pexels-photo-998641.jpeg);
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    padding: 10px;
}

.center {
    display: block;
    margin-left: 50px;
    margin-right: 50px;
    width: 50%;
}

/* Logo */
.logo {
    width: 200px; /* Retain the desktop design */
    position: relative;
    left: 20px;
    top: 40px;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-align: center;
    margin-top: -20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 830px;
}

nav ul li {
    display: inline-block;
    margin: 10px 20px;
    margin-top: 70px;
}

nav ul li a {
    text-decoration: none;
    color: #f0e9e9;
    font-size: 16px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: red;
    border-bottom: 2px solid red;
}

/* Main Section */
.titel h1{
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 32px; /* Keep the desktop style */
    margin-bottom: 20px;
}

.my-name {
    text-align: left; /* Desktop-specific layout */
    color: white;
    font-size: larger; /* Keep the desktop design */
    margin-left: 70px;
    padding: 30px;
}

.personal-pic img{
    width: 270px; /* Retain desktop size */
    position: relative;
    left: 41%;
    bottom: 180px;
    border-radius: 50%;
}

.myself {
    text-align: center;
    font-size: larger;
    color: white;
    margin-top: -130px;
    margin-left: 20px;
}

/* Social Icons */
.social-icons {
    margin-top: 10px;
    margin-left: 1100px; /* Retain desktop alignment */
}

.social-icons a {
    margin: 0 15px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons img {
    width: 50px;
    height: 50px; /* Keep the desktop size */
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Media Queries for Responsiveness */
/* Mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    /* Navigation */
    nav ul {
        display: none; /* Hide the menu initially */
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    nav ul.active {
        display: flex; /* Show menu when active */
        margin-left: 0px;
    }

    .menu-icon {
        font-size: 28px;
        color: white;
        cursor: pointer;
        display: block;
        text-align: right;
        position: relative;
        margin-left: 110px;
        right: 30%;
        top: 80px;

    }

    nav ul li {
        margin: 15px 0; /* Vertical spacing for menu items */
    }

    nav ul li a {
        font-size: 18px; /* Adjust font size for mobile */
    }

    /* Header */
    .logo {
        width: 150px; /* Adjust for smaller screens */
    }

    /* Main Section */
    .titel h1 {
        font-size: 24px; /* Smaller for mobile */
        margin-bottom: 10px;
        width: 100vw;
        position: relative;
        top: 50px;
    }

    .my-name {
        text-align: center; /* Center for mobile */
        font-size: medium;
        margin: 10px 0;
    }

    .personal-pic img {
        width: 250px; /* Resize for mobile */
        position: relative;
        left: 19%;
        bottom: 30px;
        border-radius: 50%;
    }

    .myself {
        margin: 10px 0;
        font-size: medium; /* Smaller text for mobile */
    }

    /* Social Icons */
    .social-icons {
        margin: 20px 0;
        display: flex;
        justify-content: center;
    }

    .social-icons img {
        width: 40px; /* Smaller icons for mobile */
        height: 40px;
    }
}
