* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #f4f4f4;
}


nav, nav ul, nav li {
    display: flex;
    justify-content: center;
    padding: 20px;
}

#contact {
    display: flex;
    flex-direction: column;
}

header {
    background: #222;
    padding: 30px 0 10px 0;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e0b973;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

nav ul li a:hover, nav ul li a:focus {
    background: #e0b973;
    color: #222;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    padding: 30px 25px;
}

section  ul {
    display: flex;
    justify-content: space-around;
}

section li {
    list-style: none;
    margin: 20px auto;
}

section h2, h3, h4 {
    color: #e0b973;
    margin-bottom: 20px;
}

ul {
    padding-left: 20px;
}

.user-icon {
    margin: 30px auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    width : 100px; 
    height : 100px;
    border-radius: 50%;
    border: 1px solid hsl(39, 76%, 81%); 
    padding: 10px;
}


.user-icon:hover {
    transform: scale(1.1);
}

.contact-form {
    background-color: hsla(40, 58%, 56%, 0.2);
    padding: 50px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 0 2px #d4edda;
}

label {
    font-weight: bold;
}

input, textarea{
    opacity: 0.4;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #181818;
    color: #f4f4f4;
    font-size: 1rem;
}

button[type="submit"] {
    background: #e0b973;
    color: #202020;
    border: none;
    transition: background 0.2s, color 0.2s;
    margin: 30px 0;
    font-weight: bold;
}

button[type="submit"]:hover, button[type="submit"]:focus {
    background: #cfa44d;
    color: #fff;
    font-weight: bolder;
}

button[type="submit"]:active {
    background-color: #bea33c;
    letter-spacing: 2px;
}

.back-to-top {
    cursor: pointer;
    color: #cfa44d;
    background-color: #121212;
}

.back-to-top:hover {
    color: #f4f4f4;
}

footer {
    background: #222;
    color: #f4f4f4;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    border-top: 1px solid #333;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 700px) {
    main {
        padding: 10px;
    }
    section {
        padding: 18px 8px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

.error-message {
    color: red;
    margin-top: 10px;
    font-size: 12px;
}

.error-message::before {
    content : " * ";
}

.alert {
    display: block !important;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    border-radius: 5px;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    margin-top: 1rem;
}


.socialmedia {
    margin-bottom: 50px;
}

.socialmedia button {
    border-radius: 20px;
    cursor: pointer;
   color: #e0b973;
   background-color: #121212;
   border: 1px solid #e0b973;
   width: 30px;
   height: 30px;
}

.socialmedia button:hover {
    color: #f4f4f4;
    border: 1px solid #f4f4f4;
}

.copyright {
    background-color: #121212;
}

.copyright p {
    padding: 20px;
    font-style: italic;
}
