*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

/* حركة دخول الصفحة */
body{
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    line-height: 1.6;
    animation: fadeIn 1s ease;
}

/* HEADER */

header{
    text-align: center;
    padding: 40px;
    background: #1e293b;
    animation: slideDown 1s ease;
}

header h1{
    font-size: 45px;
    color: #38bdf8;
    animation: glow 2s infinite alternate;
}

/* NAVBAR */

nav{
    background: #111827;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    animation: slideDown 1s ease;
}

nav a{
    color: white;
    text-decoration: none;
    margin: 15px;
    font-size: 18px;
    transition: 0.3s;
    position: relative;
}

/* underline animation */
nav a::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover{
    color: #38bdf8;
}

nav a:hover::after{
    width: 100%;
}

/* MAIN */

main{
    width: 90%;
    margin: auto;
}

/* SECTIONS */

section{
    background: #1e293b;
    margin: 30px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    /* حركة */
    animation: fadeUp 1s ease;
    transition: 0.4s;
}

/* hover motion */
section:hover{
    transform: translateY(-8px);
}

/* TITLES */

section h2{
    color: #38bdf8;
    margin-bottom: 20px;
    font-size: 30px;
}

/* PARAGRAPH */

p{
    margin-bottom: 10px;
    font-size: 18px;
}

/* SKILLS */

ul{
    list-style: none;
}

ul li{
    background: #334155;
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
}

/* hover scale */
ul li:hover{
    transform: scale(1.05);
    background: #38bdf8;
    color: black;
}

/* CONTACT LINKS */

#contact a{
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

#contact a:hover{
    text-decoration: underline;
}

/* FOOTER */

footer{
    text-align: center;
    background: #111827;
    padding: 20px;
    margin-top: 20px;
    font-size: 18px;

    animation: fadeIn 1.5s ease;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes fadeUp{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown{
    from{
        opacity: 0;
        transform: translateY(-40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow{
    from{
        text-shadow: 0 0 10px #38bdf8;
    }
    to{
        text-shadow: 0 0 25px #38bdf8;
    }
}