/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #c3d0d4, #ef6011);
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

header {
    background: linear-gradient(135deg, #00B4DB, #d72e06);
    position: relative;
    color: white;
    text-align: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
}

.header-overlay {
    background: rgb(244 142 20 / 50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align content to both sides */
    flex-direction: column;
    text-align: center;
    color: white;
}

.profile-img {
    width: 240px;
    height: 240px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-info {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
}

.contact-info a {
    width: 60px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}
nav {
    background: black; /* Ensure background is black */
    color: white;
    padding: 15px 0;
    margin-top: 20px;
    position: relative; /* Ensure proper positioning for mobile menu */
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-direction: row;
    background: black; /* Background color for larger screens */
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background: #555;
}

/* Mobile Styles */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: black; /* Background color for mobile menu */
        position: absolute;
        top: 60px; /* Adjust according to your header height */
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        color: white; /* Ensure text color is white */
    }
}

section {
    background: linear-gradient(135deg, #c3d0d4, #ef6011);
    padding: 50px 0;
}

.container {
    width: 80%;
    margin: auto;
    max-width: 1200px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d821ea;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.experience-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.experience-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    margin: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card img {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.7;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.experience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2D9CDB;
}

.experience-card p {
    font-size: 1rem;
    color: #555;
}

.skills-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skills-card {
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.skills-card:hover {
    transform: scale(1.05);
}

.skills-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111111;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.skill {
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem; /* Adjust font size for better fit */
    font-weight: 500;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    text-align: center;
    overflow: hidden; /* Prevent text from overflowing */
    white-space: nowrap; /* Prevent text from wrapping */
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
}

.skill:hover {
    background-color: #ddd;
}

footer {
    background: #2D9CDB;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

footer p {
    font-size: 1rem;
    font-weight: 400;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        position: relative;
        right: auto;
        top: auto;
        justify-content: center;
        margin-top: 20px;
    }

    nav ul {
        padding: 0;
        margin: 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .experience-card {
        width: 100%;
        margin: 10px 0;
    }

    .skills-card {
        width: 100%;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .contact-info a {
        width: 50px;
        font-size: 1.2rem;
    }

    .skill {
        font-size: 0.8rem; /* Adjust font size for small screens */
    }
}
