/* General Styles for All Devices */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: url('background.png') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    box-sizing: border-box;
    z-index: 1000;
}

.logo img {
    width: 100px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}


/* Social Icons Styles */
.social-icons a {
    color: #fff;
    margin-left: 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffd700;
}

/* Header Content Styles */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.intro h1 {
    font-size: 2rem;
}

.intro h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    animation: bounce 4s infinite;
}

/* Profile Photo */
.profile-photo {
    width: 60%;
    max-width: 300px;
    margin-top: 1rem;
}

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid white;
}

/* Container Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
}

h2 {
    margin: 1.5rem 0;
    text-align: center;
    font-size: 2rem;
    color: #333;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Skills Section Styles */
.skills-section {
    margin: 2rem 0;
}

.skills-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    animation: fadeIn 2s ease-in-out;
    box-sizing: border-box;
}

.skill {
    background: white;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.skill img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    box-sizing: border-box;
}

.project {
    background: white;
    padding: 1.2rem;
    margin: 1rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.experience {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Contact Section Styles */
#contact {
    background-color: #f9f9f9;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #333;
    outline: none;
}

button[type="submit"] {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it is above other elements */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px; /* Adjusted for smaller screens */
        right: 0;
        height: calc(100vh - 60px); /* Adjusted for smaller screens */
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        display: none;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header-content .intro h1 {
        font-size: 1.5rem;
    }

    .header-content .intro h2 {
        font-size: 1rem;
    }

    .header-content .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
