/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

header {
    background-color: #282828;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.logo {
    width: 50px;
    margin-bottom: 20px;
    transition: opacity 0.5s ease-in-out;
}

.logo:hover {
    opacity: 0.7;
}

/* Navigation Bar */
#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    padding: 20px;
    background-color: rgba(40, 40, 40, 0.9);
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    margin-right: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-link:hover {
    color: #ff6347;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ff6347;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #282828;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-link {
        margin-bottom: 10px;
    }

    .mobile-menu-icon {
        display: block;
    }
}

/* Intro Section */
.intro h1, .intro h2 {
    font-size: 40px;
    margin: 10px 0;
    opacity: .7;
}

.cta-button {
    background-color: #ff6347;
    color: #fff;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #ff4500;
    opacity: 0.9;
}

/* About Section */
#about {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.about-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

#pic {
    width: 200px;
    height: 200px;
    background-image: url('.//img2.png'); 
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    #pic {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    #txt-box {
        padding: 20px;
        text-align: center;
    }
}

#txt-box {
    max-width: 600px;
    padding: 20px;
}

#txt-box h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Skill Section */
#skill {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
}

#skill h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

#skill-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.skill-item {
    width: 120px;
    padding: 20px;
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    color: #ff6347;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2);
}

.skill-item p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Contact Section */
#contact {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.inp {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cta-button {
    background-color: #ff6347;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff4500;
}

/* Footer */
#foot {
    background-color: #282828;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.social-icons a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ff6347;
}
