/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #2E3440;
    color: #ECEFF4;
    margin: 0;
    line-height: 1.6;
}

/* Header Section */
header {
    text-align: center;
    padding: 50px 20px;
    background-color: #4C566A;
    position: relative;
}

.profile-pic {
    border-radius: 50%;
    width: 150px;
    border: 4px solid #88C0D0;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
}

header h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #ECEFF4;
}

header p {
    font-size: 1.2em;
    color: #D8DEE9;
}

.nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

.nav ul li a {
    color: #ECEFF4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #88C0D0;
}

/* Button Styles */
.btn {
    color: #2E3440;
    padding: 12px 24px;
    background: #88C0D0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #81A1C1;
    transform: translateY(-3px);
}

/* Section Styling */
section {
    padding: 40px 20px;
    background: #3B4252;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 2em;
    color: #8FBCBB;
    text-align: center;
    margin-bottom: 20px;
}

/* Skills Section */
.skills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-bar {
    position: relative;
    background-color: #4C566A;
    color: #ECEFF4;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1em;
}

.skill-bar[data-skill]:before {
    content: attr(data-skill);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #ECEFF4;
}

.skill-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--width);
    background-color: #88C0D0;
    transition: width 0.5s ease;
}

.skills .skill-bar:hover::after {
    width: calc(var(--width) + 5%);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background: #3B4252;
    color: #ECEFF4;
    font-size: 0.9em;
    border-top: 1px solid #4C566A;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .profile-pic {
        width: 120px;
    }

    section {
        padding: 20px;
    }
}
