* {
    font-family: 'poppins', vazir;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    direction: ltr;
    text-decoration: none;
    scroll-behavior: smooth;
    scrollbar-color: #e74c3c #2c3e50;
    scrollbar-width: thin;
}
body {
    background: linear-gradient(135deg, #222f3e, #1e272e);
    color: #ecf0f1;
}

.header {
    border-radius: 40px;
    padding: 20px 0px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    display: flex;
    box-shadow: 0px 10px 30px rgba(44, 62, 80, 0.3),
        inset 0px 0px 17px 0px #202c38;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    margin: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-right a {
    color: #ecf0f1;
    position: relative;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.header-right a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.header-right a::after {
    content: '  ';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.header-right a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    padding: 20px;
    gap: 20px;
    font-size: larger;
}

.logo-header {
    border-radius: 150px;
    box-shadow: 0px 0px 20px #e74c3c;
    width: 60px;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: rotate(360deg);
}

h1 {
    text-align: center;
}
section {
    box-shadow: inset 0px 0px 17px 0px #202c38, 0px 0px 20px #2c3e50;
    background-color: #34495e;
    border-radius: 40px;
    padding: 30px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 32em;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(
        circle,
        rgba(231, 76, 60, 0.1) 0%,
        transparent 70%
    );
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #e74c3c;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.5);
}

.hero h1 {
    font-size: 2.5em;
    margin: 20px 0;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.project {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: space-between;
}

.project h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.project p {
    max-width: 50%;
    line-height: 23px;
}

#music {
    box-shadow: 0px 5px 15px rgb(32, 33, 36, 0.7);
}

#resume {
    box-shadow: 0px 5px 15px rgb(255, 255, 255, 0.7);
}

.btn-p {
    position: relative;
    top: 25px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-p:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

article {
    margin: 2em 0 50px 50px;
}

.project img {
    width: 17rem;
    height: auto;
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(52, 38, 87, 0.7);
    transform: rotate(5deg);
    margin-right: 3.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#to-do{
    margin-right: auto;
}
.project img:hover {
    transform: rotate(0deg);
}

.subtitle {
    color: #95a5a6;
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s backwards;
    display: inline-block;
    position: relative;
}

.subtitle::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3),
        inset 0px 0px 16px -2px #2c3e50;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.skill-card {
    border-radius: 15px;
    padding: 24px;
    flex-flow: column;
    display: flex;
    text-align: center;
    transition: all 0.3s ease;
    justify-content: center;
    animation: floatAnimation 4s ease-in-out infinite;
    border-color: rgba(231, 76, 60, 0.2);
}

.skill-card h3 {
    font-size: 16px;
}

.skill-card i {
    font-size: 4rem;
    color: #e74c3c;
    transition: transform 0.3s ease;
    position: relative;
    bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.8));
    transition: filter 0.4s ease;
}

.skill-card:hover i {
    filter: drop-shadow(0 0 12px rgba(231, 76, 60, 1));
}

#tailwind {
    position: relative;
    bottom: 10px;
}

#tail {
    position: relative;
    bottom: 5px;
}

h2 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, #e74c3c, transparent);
}

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    cursor: pointer;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: scale(1.1) translateY(0);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes floatAnimation {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.skill-card:nth-child(1) {
    animation-delay: 0s;
}
.skill-card:nth-child(2) {
    animation-delay: -0.5s;
}
.skill-card:nth-child(3) {
    animation-delay: 1s;
}
.skill-card:nth-child(4) {
    animation-delay: -1.5s;
}
.skill-card:nth-child(5) {
    animation-delay: -2s;
}
.skill-card:nth-child(6) {
    animation-delay: -2.5s;
}
