@import url("../base/rest.css");
@import url("../base/font&Core.css");
@import url("../base/variables&root.css");

/* ============================================
   Image Pin
   ============================================ */
.container-pin {
    width: 100%;
    height: 10vh;
    background-image: url(../../assets/images/pin.png);
    background-size: cover;
    background-position: center;
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 150px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.blob {
    width: 500px;
    height: 500px;
    position: absolute;
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.blob-1 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 0;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    background: rgba(137, 38, 143, 0.4);
    top: 100px;
    left: -50px;
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.text-center {
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    background: var(--gray-light);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-mode);
    word-spacing: -20px;
    font-family: "VazirmatnBold";
}

body.dark .hero-title {
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

body.dark .hero-subtitle {
    color: #bbb;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero>.pahbad {
    opacity: 0.7;
    width: 70%;
    position: absolute;
    right: -1000px;
    bottom: 0;
    animation: flying 30s linear 3s infinite;
}

.hero>.cloud-1 {
    opacity: 0.7;
    width: 70%;
    position: absolute;
    right: -1100px;
    bottom: 0;
    animation: flying 50s linear 10ms infinite;
}

.hero>.cloud-2 {
    opacity: 0.7;
    width: 70%;
    position: absolute;
    right: -1100px;
    bottom: 0;
    animation: flying 50s linear 20s infinite;
}

@keyframes flying {
    0% {}

    100% {
        right: 2000px;
    }
}

/* ============================================
details
============================================ */
.rules {
    margin: 100px 0 100px 0;
}

.container-rules {
    flex-direction: column;
    align-items: start;
    max-width: 1300px;
    padding: 0 2rem;
}

.rules h2 {
    font-size: 2.25rem;
    font-weight: lighter;
    margin-bottom: 0.7rem;
    color: var(--dark-mode);
    font-family: "VazirmatnBold";
}

body.dark .rules h2 {
    color: var(--white);
}

.rules p {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    padding-right: 30px;
}

.container-rules .important {
    background-color: var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--gray-light);
    font-size: 2rem;
    width: 100%;
    text-align: center;
}

.container-rules a {
    color: var(--primary);
}

/* ============================================
Form Section
============================================ */

.project-form-section {
    padding: 80px 0;
    background: var(--light-mode);
    position: relative;
    overflow: hidden;
}

body.dark .project-form-section {
    background: var(--dark-mode);
}

.form-card {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-family: "VazirmatnBold";
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--gray);
}

.project-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-family: "VazirmatnBold";
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 189, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px dashed var(--primary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 189, 208, 0.05);
}

.file-label:hover {
    background: rgba(26, 189, 208, 0.1);
    border-color: var(--primary-hover);
}

.file-label span {
    font-family: "VazirmatnBold";
    color: var(--primary);
}

#file {
    display: none;
}

.file-hint {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.project-form-section .cloud-1 {
    opacity: 0.7;
    width: 70%;
    position: absolute;
    right: -1100px;
    top: 200px;
    animation: flying 50s linear 10ms infinite;
}

.project-form-section .cloud-2 {
    opacity: 0.7;
    width: 70%;
    position: absolute;
    right: -1100px;
    top: 200px;
    animation: flying 50s linear 20s infinite;
}

@keyframes flying {
    0% {}

    100% {
        right: 2000px;
    }
}

@media (max-width: 1024px) {
    .rules h2 {
        font-size: 2rem;
    }

    .hero>.pahbad {
        bottom: 10%;
    }

    .hero>.cloud-1 {
        bottom: 10%;
    }

    .hero>.cloud-2 {
        bottom: 10%;
    }
}

@media (max-width: 768px) {
    .container-pin {
        height: 8vh;
    }

    .rules h2 {
        font-size: 1.9rem;
    }

    .container-rules .important {
        font-size: 1.8rem;
    }

    .hero>.pahbad {
        bottom: 20%;
        transform: scale(2);
    }

    .hero>.cloud-1 {
        bottom: 20%;
        transform: scale(2);
    }

    .hero>.cloud-2 {
        bottom: 20%;
        transform: scale(2);
    }
}

@media (max-width: 576px) {
    .container-pin {
        height: 7vh;
    }

    .hero-title {
        font-size: 3rem;
        word-spacing: -5px;
    }

    .rules h2 {
        font-size: 1.8rem;
    }

    .container-rules .important {
        font-size: 1.4rem;
    }

    .hero>.pahbad {
        bottom: 30%;
        transform: scale(3);
        right: -600px;
    }

    .hero>.cloud-1 {
        bottom: 30%;
        transform: scale(3);
        right: -600px;
    }

    .hero>.cloud-2 {
        bottom: 30%;
        transform: scale(3);
        right: -600px;
    }

    .project-form-section .cloud-1 {
        transform: scale(3);
    }

    .project-form-section .cloud-2 {
        transform: scale(3);
    }
}

@media (max-width: 430px) {
    .container-pin {
        height: 5vh;
    }

    .rules h2 {
        font-size: 1.7rem;
    }

    .container-rules .important {
        font-size: 1.2rem;
    }

    .hero>.pahbad {
        bottom: 40%;
    }

    .hero>.cloud-1 {
        bottom: 40%;
    }

    .hero>.cloud-2 {
        bottom: 40%;
    }
}