* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;

}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    pointer-events: auto;
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;

}

a:hover {
    color: #1f6feb;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #161b22d8;
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #30363d;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
}

nav ul li a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a.active,
nav ul li a:hover {
    border-bottom-color: #58a6ff;
    color: #58a6ff;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #000a1a 0%, #000010 100%);
}

/* زمین سه‌بعدی */
#earth-canvas {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    z-index: -2;
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 15px #58a6ffaa);
}

.container {
    max-width: 900px;
    margin: 90px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;



}

header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 3.4rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
}

header p {
    font-size: 1.3rem;
    color: #8b949e;
    font-weight: 500;
}

#about {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

#about img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #58a6ff;
    box-shadow: 0 0 15px #58a6ff55;
    flex-shrink: 0;
}

#about .about-text {
    flex: 1;
    font-size: 1.1rem;
    color: #c9d1d9dd;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 28px;
    border-bottom: 3px solid #30363d;
    padding-bottom: 10px;
    color: #58a6ff;
    letter-spacing: 0.03em;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;

}

.skill {
    background: #161b224f;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 0 12px #58a6ff33;
    font-weight: 600;
    color: #58a6ff;
    position: relative;
    user-select: none;
    transition: 0s;
}

.skill:hover {
    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);
    box-shadow: 0 6px 25px #58a6ff66;
    transition: 0.5s;
}

.skill-name {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.skill-bar {
    background: #0d1117;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    background: #58a6ff;
    border-radius: 6px;
    width: 0%;
    transition: width 1.2s ease-in-out;
}

.skill-percent {
    position: absolute;
    right: 12px;
    top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b949e;
}

.project-card {
    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 28px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px #0008;
}

.project-card:hover {

    box-shadow: 0 6px 25px #58a6ff66;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 1.05rem;
    color: #8b949e;
    margin-bottom: 14px;
}

.project-link a {
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.project-link a:hover {
    border-color: #58a6ff;
}

#contact {
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    font-weight: 600;
    padding: 12px 18px;
    border: 1.8px solid #30363d;
    border-radius: 10px;
    color: #58a6ff;
    transition: background 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    user-select: none;
}

.contact-links a:hover {
    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);
    border: solid 1px #fff;
    color: #fff;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(200px);
    transition: all 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0px);
}



#app {
    width: 100%;
    height: auto;
    padding: 50px 0;
}

.application {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.app-img {
    width: 20%;
    height: 170px;
    background-color: #161b224f;
    border-radius: 20px;
    border: solid 1px #30363d;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

.app-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.4s ease;
}

.app-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

#app-text {

    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);
    border-radius: 20px;
    border: solid 1px #30363d;
    overflow: hidden;
    padding: 5px 10px;
    color: #bec4cf;
    transition: 0.5s;

}

#app-text:hover {

    transition: 1s;
    color: #58a6ff;
    box-shadow: 0 6px 25px #58a6ff66;
}

.app-img:hover {
    height: 250px;
    box-shadow: 0 6px 25px #58a6ff66;
    z-index: 2;
}

.app-img:hover .app-text {
    opacity: 1;
    transform: translateY(0);
}

.app-gallery:hover .app-img {
    filter: blur(4px);
    transform: scale(0.95);
}

.app-gallery .app-img:hover {
    filter: blur(0);
    transform: scale(1.05);
}



.app-down-bord {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 170px;
    background-color: #161b224f;
    border: solid 1px #21262d;
    border-radius: 20px;
    color: #8b949e;
}

.app-down-bord:hover {

    color: #58a6ff;
}


.app-down {
    display: flex;
    gap: 28px;
    justify-content: space-evenl;
    flex-wrap: wrap;
}

.app-down a {
    font-weight: 600;
    padding: 12px 18px;
    border: 1.8px solid #30363d;
    border-radius: 10px;
    color: #58a6ff;
    transition: background 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    user-select: none;
}

.app-down a:hover {
    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);
    border-color: #58a6ff;
    border: solid 1px #fff;

    color: white;
}






#coming-soon-terminal {

    background: linear-gradient(135deg, #0d112000 0%, #3a4b8a63 43%, #0d112000 100%);

    color: #58a6ff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 0 20px #00ff00;
    border: 2px solid #00ff00;
    border-radius: 20px;
    max-width: 600px;
    margin: auto;
}

#terminal {
    white-space: pre-wrap;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cursor {
    display: inline-block;
    width: 10px;
    background-color: #00ff00;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}









@media (max-width: 700px) {
    #about {
        flex-direction: column;
        text-align: center;
    }

    #about img {
        margin: 0 auto 20px;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .contact-links {
        gap: 16px;
    }

    .app-gallery {

        justify-content: center;

    }

    .app-img {

        width: 48%;
        height: 200px;
    }

    #app-text {

        color: #58a6ff;
    }


    #coming-soon-terminal {

        font-size: 1.2rem;
        text-align: center;
    }
}