﻿
@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-Light.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-DemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: bold;
    src: url("../fonts/iranyekan/IRANYekanXFaNum-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/iransans/IRANSansWeb.woff2") format("woff2");
}

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/iransans/IRANSansWeb.woff") format("woff");
}

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: bold;
    src: url("../fonts/iransans/IRANSansWeb.ttf") format("ttf"), url("../fonts/iransans/IRANSansWeb.eot") format("eot");
}

:root {
    --primary: #e3493f;
    --primary-light: #ff7b73;
    --primary-dark: #b21e1e;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #f5f5f5;
    --light-bg: #f8f9fa;
    --light-card: #ffffff;
    --light-text: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANYekan', 'IRANSansWeb', 'Segoe UI', Tahoma, sans-serif;
    overflow-x: hidden;
    background-color: var(--light-bg);
    color: var(--light-text);
    transition: var(--transition);
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
}

    body.dark-theme {
        background-color: var(--dark-bg);
        color: var(--dark-text);
    }

.logo-img {
    height: 50px;
    transition: var(--transition);
}

    .logo-img:hover {
        transform: scale(1.05);
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #e62f2f;
        z-index: -1;
        transition: width 0.5s ease;
    }

    .btn-primary:hover::before {
        width: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 10px rgba(227, 73, 63, 0.3);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-outline-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: var(--primary);
        z-index: -1;
        transition: width 0.5s ease;
    }

    .btn-outline-primary:hover::before {
        width: 100%;
    }

    .btn-outline-primary:hover {
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 5px 10px rgba(227, 73, 63, 0.2);
    }

.section {
    padding: 100px 0;
}

.hero {
    background: linear-gradient(135deg, rgba(227, 73, 63, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.dark-theme .hero {
    background: linear-gradient(135deg, rgba(227, 73, 63, 0.15) 0%, rgba(30, 30, 30, 0.1) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 73, 63, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-title {
    top: -35px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInUp 1s ease;
    font-family: 'IRANSansWeb';
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
    text-align: center;
    line-height: 2;
}

.profile-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.dark-theme .profile-card {
    background: linear-gradient(145deg, #252525, #1a1a1a);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: fadeIn 1s ease;
}

    .profile-avatar:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(227, 73, 63, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

    .social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: var(--primary);
        z-index: 0;
        transition: width 0.3s ease;
    }

    .social-link:hover::before {
        width: 100%;
    }

    .social-link:hover {
        color: white;
        transform: translateY(-5px);
    }

    .social-link i {
        position: relative;
        z-index: 1;
    }

.category-selector {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.categories-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
/*    padding: 30px 0;*/
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

    .categories-container::-webkit-scrollbar {
        display: none;
    }

.category-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    max-width: 220px;
    height: 100px;
    background: linear-gradient(135deg, #f4675e 45%, #f2cfcd 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(227, 73, 63, 0.2);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .category-card:hover {
        box-shadow: 0 10px 20px rgba(227, 73, 63, 0.4);
        background: linear-gradient(135deg,#f4675e 100%,#f2cfcd 40%);
    }

    .category-card.selected {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(227, 73, 63, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.7);
        border: 3px solid white;
    }

    .category-card img {
        margin: 0px;
        max-height: 50px;
        margin: 10px 0 10px;
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
    }
    .category-card h6 {
      color:#fff;
    }
    .category-card:hover .category-img {
        transform: scale(1.2);
    }

.category-card {
    scroll-snap-align: center;
}

.categories-container {
    scroll-snap-type: x mandatory;
}

.feature-card {
    background-color: var(--light-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.dark-theme .feature-card {
    background-color: var(--dark-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-theme .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.theme-switch {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 73, 63, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(227, 73, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 73, 63, 0);
    }
}

.theme-switch:hover {
    transform: rotate(30deg) scale(1.1);
}

.theme-switch i {
    color: white;
    font-size: 1.5rem;
}

.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 25px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.dark-theme .form-container {
    background: linear-gradient(145deg, #252525, #1a1a1a);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    animation: progress 3s linear forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.form-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.3rem;
}

    .form-title::after {
        right: 35%;
        content: '';
        position: absolute;
        bottom: 0;
 /*       right: 0;*/
        width: 100px;
        height: 4px;
        background: var(--primary);
        border-radius: 10px;
    }

.form-control {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    transition: var(--transition);
   font-size:.9rem;
}

    .form-control:focus {
        box-shadow: none;
        border-bottom: 2px solid var(--primary);
    }

.footer {
    background-color: var(--dark-card);
    color: var(--dark-text);
    padding: 60px 0 30px;
    position: relative;
}

.dark-theme .footer {
    background-color: #0a0a0a;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.page-section {
    display: none;
    animation: fadeIn 0.8s ease;
}

    .page-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) rotate(720deg);
        opacity: 0;
    }
}

.slogan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slogan-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #ffe8e6 0%, #ffffff 100%);
    overflow: hidden;
}

.slogan-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 2.5rem;
}

.slogan-image {
    flex: 1 1 320px;
    position: relative;
    min-height: 320px;
}

    .slogan-image h2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: 900;
        font-size: 3rem;
        color: #e3493f;
        white-space: nowrap;
    }

    .slogan-image .rocket {
        position: absolute;
        bottom: -20px;
        right: -30px;
        font-size: 100px;
        color: #e3493f;
        opacity: 0.2;
        animation: float 6s ease-in-out infinite;
        pointer-events: none;
    }

.slogan-content {
    flex: 1 1 420px;
    padding-inline: 0;
}

.slogan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slogan-item {
    font-size: 1.1rem;
    line-height: 1.9;
    position: relative;
    padding-right: 2.2rem;
}

    .slogan-item::before {
        content: "\f4d8";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 0.15rem;
        color: #e3493f;
        font-size: 1.25rem;
    }

body.dark-theme .slogan-card {
    background: rgba(30, 30, 30, 0.6);
}

body.dark-theme .slogan-section {
    background: linear-gradient(135deg, #1d2024 0%, #121212 100%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.btn:hover {
    background-color: transparent !important;
    border-color: transparent !important;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    background-color: transparent !important;
    border-color: transparent !important;
}

a {
    text-decoration: none !important;
}

.shape-1,
.shape-2,
.shape-3 {
    position: absolute;
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    z-index: -1;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background-color: #f2afa84f;
    top: 0px;
    right: -20px;
    animation: morphShape 15s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: #f6e8e7;
    bottom: 10px;
    left: -10px;
    top: 500px;
    animation: morphShape 20s linear infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: #fde7e6;
    top: 0px;
    right: 0px;
    animation: morphShape2 20s linear infinite reverse;
}

/*    .shape-4 {
        position: absolute;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        z-index: 1;
        width: 200px;
        height: 200px;
        background-color: #fde7e6;
        left: 0px;
        bottom:900px;
        animation: morphShape4 20s linear infinite reverse;
    }*/
.shape-4 {
    position: absolute;
    width: 130px;
    height: 140px;
    background-color: #fde7e6;
    border-radius: 50%;
    left: 450px;
    bottom: 1050px;
    z-index: 1;
    animation: morphShape4 20s linear infinite reverse;
}

@keyframes morphShape {
    0% {
        right: 0;
        bottom: 0;
    }

    50% {
        right: 200px;
        bottom: 100px;
    }

    100% {
        right: 0;
        bottom: 0;
    }
}

@keyframes morphShape2 {
    0% {
        left: 0;
        top: 0;
    }

    50% {
        left: 150px;
        top: 100px;
    }

    100% {
        left: 0;
        top: 0;
    }
}

@keyframes morphShape4 {
    0% {
        border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25%/76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67%/55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42%/63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    }
}

.theme-switch-mobile {
    position: fixed;
    right: 220px;
    top: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
    padding: 0;
}

.icon-gradient {
    background: linear-gradient(85deg, #f06158, #eeafab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-switch-mobile i {
    font-size: 1.5rem;
}

body .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

#signup-page .category-card {
    width: 130px;
    padding: 12px;
    font-size: 14px;
    height: auto;
    background-color: #444;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#signup-page .category-icon {
    font-size: 30px;
    margin: auto auto 10px;
}

#signup-page .category-selector {
    padding: 10px 0;
}

#signup-page .categories-container {
    gap: 12px;
}

/* Media Queries */
@media (max-width: 992px) {
    .shape-4 {
        visibility: hidden;
    }

    .shape-2 {
        left: 0px;
    }

    .shape-3 {
        right: 0px;
    }

    .slogan-card {
        flex-direction: column;
        min-height: auto;
    }

    .slogan-image {
        height: 300px;
    }

    .slogan-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .shape-2 {
        animation: none !important;
        transform: none !important;
    }

    .hero-title {
        margin-top: 35px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .category-card {
        width: 200px;
        height: 250px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .section {
        padding: 60px 0;
    }

    .form-container {
        padding: 25px;
        margin: 30px auto;
    }

    .slogan-title {
        font-size: 2rem;
    }

    .slogan-text {
        font-size: 1.5rem;
    }

    .theme-switch {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .theme-switch-mobile {
        display: flex;
    }

    .theme-switch {
        display: none;
    }

    .categories-container {
        touch-action: pan-x;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-5px);
        }
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        animation-duration: 30s;
    }
}

@media (min-width: 769px) {
    .theme-switch-mobile {
        display: none;
    }

    .theme-switch {
        display: flex;
    }
}

@media (max-width: 576px) {
    .theme-switch-mobile {
        width: 45px;
        height: 45px;
        bottom: 70px;
        /*  right: 15px;*/
    }

    .slogan-image {
        height: 250px;
    }

    .slogan-content {
        padding: 30px 0px;
    }

    .slogan-title {
        font-size: 1.8rem;
    }

    .slogan-text {
        font-size: 1.2rem;
    }

    .slogan-card {
        padding: 1.8rem;
    }

    .slogan-image h2 {
        font-size: 2.2rem;
    }

    .slogan-item {
        font-size: 1rem;
    }
}

.nav-link {
    color: #fff;
}

    .nav-link.active {
        color: #ff736b !important;
    }

.field-validation-error{font-size:13px !important;}
/* به صورت پیش‌فرض (تم روشن) */
.light-img {
    display: inline-block;
}

.dark-img {
    display: none;
}

/* وقتی کلاس dark-theme روی body هست */
body.dark-theme .light-img {
    display: none;
}

body.dark-theme .dark-img {
    display: inline-block;
}