* {
    list-style-type: none;
    scroll-behavior: smooth;
}

body {
    font-family: 'Alegreya', sans-serif;
    margin: 0;
    padding: 70px 0 0 0;
    box-sizing: border-box;
    background-image: linear-gradient(to left, rgb(27 20 41), rgb(20 15 35));
    color: #fff;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: white;
    /* background: rgb(43, 43, 50); */
    padding: 0 5%;
    /*2px:top&buttom ; 6%:left&right*/
    margin: 20px 6px 0 6px;
    border-radius: 25px;

    backdrop-filter: blur(10px);
    /* Apply blur to the background */

    /* background-color: rgb(129 143 145 / 70%); */
    /* Add a semi-transparent background */

    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    /* Optional: border to enhance separation */

    /* Add these new properties for fixed positioning */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 95%;
    /* Adjust to account for the padding */
    z-index: 1000;
    /* Ensures header stays above other content */
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    /* Keep some space at the top */
}


.navlista {
    display: flex;
    /*Aligner les items de navlist*/
    margin: 5px 0;
    /*déplacer le navlist vers le bas un peu*/
    align-items: center;
    justify-content: center;
    list-style: none;
    /*to remove the list pts*/
    text-decoration: none;
    padding: 0;
    position: relative;
}


.navlista a {
    color: white;
    text-decoration: none;
    /*remove underline*/

    font-weight: 530;
    border-bottom: 2px solid transparent;
}

/* .navlista ul li a:hover {
    color: #31879d;
} */

.navlista li {
    display: inline-block;
    padding: 3px 15px;
}

/*ul { list-style-type: none; }*/
/* .logo img {
    cursor: pointer;
    top: 5px;
    position: absolute;
    width: 90px;
    color: black;
    border-radius: 5px;
} */
.logo {
    cursor: pointer;
    top: 10px;
    position: absolute;
    width: 90px;
    border-radius: 5px;
    font-family: 'Instrument Serif', serif;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    color: #b4c4d1; 
}

.column {
    width: 50%;
    float: left;
    text-align: center;
}

.pic {
    width: 200px;
    height: 200px;
    border-radius: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

/* ---------- Bio ------------*/
i {
    color: cyan;
    text-shadow: 0 2px 2px currentColor;
}

strong {
    color: coral;
}

main {
    font-size: 1rem;
    max-width: 70ch;
    transform: skewX(10deg);
    margin: 15px 0;
}

.myDesc {
    color: white;
    display: inline;

    outline: rgba(255, 255, 255, .6) solid 3px;
    outline-offset: .2em;
    border-radius: .2em;
}

/* ---------- end bio ------ */

/* -------- start S media style */
.SMedia a img {
    border: 2px solid white;
    border-radius: 50%;
    /* optional: for rounded icons */
    padding: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.SMedia a:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border-color: white;
}

/* --------------end social media style */
/*My skills div*/
.row::after {
    display: table;
    clear: both;
    content: "";
}

.left h3 {
    width: 30%;
    float: left;
}

.right {
    width: 60%;
    float: left;
}

.main-bar {
    background-color: gray;
    display: block;
    height: 20px;
    margin-top: 20px;
    /*to align the span & skill*/
}

.main-bar span {
    background-color: #cd5ff8;
    /*teal #4F772D*/
    display: block;
    height: 20px;
    color: white;
}

.javascript {
    width: 90%;
    animation: javascript 2s;
}

.php {
    width: 55%;
    animation: php 2s;
}

.python {
    width: 76%;
    animation: python 2s;
}

.typescript {
    width: 50%;
    animation: typescript 2s;
}

.flutter {
    width: 90%;
    animation: flutter 2s;
}

@keyframes javascript {
    0% {
        width: 0%;
        background-color: rgb(30, 63, 63);
    }

    100% {
        width: 90%;
    }
}

@keyframes php {
    0% {
        width: 0%;
        background-color: rgb(30, 63, 63);
    }

    100% {
        width: 55%;
    }
}

@keyframes python {
    0% {
        width: 0%;
        background-color: rgb(30, 63, 63);
    }

    100% {
        width: 76%;
    }
}

@keyframes typescript {
    0% {
        width: 0%;
        background-color: rgb(30, 63, 63);
    }

    100% {
        width: 50%;
    }
}

@keyframes flutter {
    0% {
        width: 0%;
        background-color: rgb(30, 63, 63);
    }

    100% {
        width: 90%;
    }
}

footer {
    margin-top: 30px;
    padding: 20px;
    width: 100%;
    height: auto;
    background-color: rgb(43, 43, 50);
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 800px) {
    .column {
        width: 100%;
    }
}




/* .......... background animated dots atyle........... */
.floating-dots-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.dot {
    position: absolute;
    border-radius: 9999px;
    background: linear-gradient(to top right, #6b21a8, #9333ea, #c084fc);
    cursor: pointer;
    transition: all 0.3s ease-out;
    box-shadow: 0px 2px 10px 3px #8B5CF6;
    filter: brightness(1) saturate(1);
}

.dot:hover {
    transform: scale(2);
    opacity: 1;
    z-index: 50;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8),
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 90px rgba(139, 92, 246, 0.2);
    filter: brightness(2) saturate(2) drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
}

@keyframes floatDot {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }

    25% {
        transform: translateY(-30px) translateX(25px) scale(1.2);
    }

    50% {
        transform: translateY(-15px) translateX(-25px) scale(0.8);
    }

    75% {
        transform: translateY(-40px) translateX(17px) scale(1.1);
    }
}

/* .......... */

@media(max-width:500px) {
    main {
        margin-left: 25px;
        margin-right: 25px;
        text-align: justify;
    }
}

/* --------- */

/* --------nav items hover and after effect ---------------- */

/* Navbar List Style */
.nav-list {
    display: flex;
    gap: 1.5rem;
    /* equivalent to space-x-6 */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Link Styling */
.nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    color: #4b5563;
    /* gray-600 */
    text-decoration: none;
    transition: all 0.6s ease;
}

/* Dark mode color (you can toggle .dark class on body) */
body.dark .nav-link {
    color: #9ca3af;
    /* gray-400 */
}

.nav-link:hover {
    color: #cd5ff8;
    /* gray-900 */
}

body.dark .nav-link:hover {
    color: #ffffff;
}

/* Underline animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #cd5ff8;
    /* gray-900 */
    transition: width 0.5s ease;
}

body.dark .nav-link::after {
    background-color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

/* -------end nav links style ------ */

.fontfam1 {
    font-family: "Faculty Glyphic", sans-serif;
    color: #f3f4f6;
}

/* ------ Stack ------ */
.stack-container {
    width: 120px;
    height: 100px;
    border-radius: 5px;
    border: 1px solid #e66465;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);

    display: flex;
    justify-content: center;
    /* centers horizontally */
    align-items: center;
    /* centers vertically */
}

.stack-container:hover {
    transform: scale(1.03);
}

.stack-container img {
    /* max-width: 83%;
    max-height: 83%; */
    object-fit: contain;
    width: 50px;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 50px;
    padding: 20px;
    margin-bottom: 30px;
}

.gago {
    display: flex;
    gap: 30px;
}

@media (max-width: 500px) {
    .gago {
        display: grid !important;
    }
}

/* -----line divider ----- */
.hr-divider {
    width: 95%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ---- 'Hello' typing effect ---- */
.grid {
    display: flex;
    justify-content: center;
}

.typing-demo {
    width: 5.4ch;
    animation: typing 1.5s steps(22), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    font-family: monospace;
    font-size: 2em;
}

@keyframes typing {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

/* ----- end typing effect ----- */

/* ----- Education style ----- */
.education-item {
    margin-bottom: 25px;
    margin-left: 80px;
    text-align: left;
}

.education-item h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e4f2ff;
    /*#e4f2ff - #768ea5 - #5c7288 - #34495e*/
    margin-bottom: 8px;
    display: inline-flex;
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5d6d7e;
    margin: 5px 0;
    display: inline-flex;
}

/* Unique styling for span elements */
.education-item span {
    color: #e74c3c;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95em;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
}

/* Alternative solid background style for spans */
.education-item span.solid-style {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: white;
}

/* Hover effects */
.education-item span:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

@media (max-width: 500px){
    .education-item{
        margin-left: 11px;
    }
}