* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #efe1e1; 
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% -20%, rgba(169, 50, 38, 0.3), rgba(0, 0, 0, 0)) #0e000e;
    animation: fadeInDown 1s ease-out;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #3b0a0a; 
}

::-webkit-scrollbar-thumb {
    background: #a93226; 
    border-radius: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container .profile-img {
    max-width: 150px; 
    width: 100%; 
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.container .profile-img:hover {
    transform: scale(1.05); 
}

header {
    padding: 20px 0;
    border-bottom: 1px solid #5e2020; 
    background: #3b0a0a88; 
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 1.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    color: #f65d4c; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #f5c6c6; 
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.5s ease;
}

nav ul li a:hover {
    color: #f1948a; 
}

nav ul li a.active {
    color: #f1948a; 
}

section {
    padding: 50px 0;
    text-align: center;
}

section h2 {
    font-size: 3.5rem;
    color: #da2c18; 
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section p {
    font-size: 1.5rem;
    margin-top: 30px;
    line-height: 2;
}

footer {
    background: #3b0a0a88;
    padding: 60px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1.2rem;
}

a {
    color: #c0392b; 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.5s ease;
}

a:hover {
    color: #ff0000; 
}

#skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

#skills li {
    margin: 20px;
    text-align: center;
    max-width: 300px;
    background-color: #7b241c53; 
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.5s ease;
}

#skills li:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.71); 
}

#skills li h3 {
    color: #f1948a; 
    margin-bottom: 10px;
}

#skills li p {
    color: #f5c6c6; 
    margin-bottom: 10px;
    line-height: 1.4;
}

#skills li img {
    height: 100px;
    margin-top: 20px;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        color: #f5c6c6; 
        text-decoration: none;
        font-size: 1rem;
        transition: color 0.3s ease;
    }
}
