* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asset/background-logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

.container {
    max-width: 1200px;
    width: 90%;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.brand-name {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.logo-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* Tagline */
.tagline {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.7s forwards;
}

/* Description */
.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
}

/* Social Media Section */
.social-section {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.1s forwards;
    margin-bottom: 4rem;
}

.social-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #34495e;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: #34495e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.3);
}

/* Job Cards Section */
.jobs-section {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.3s forwards;
}

.jobs-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.jobs-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    text-align: center;
}

.job-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.job-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.job-category {
    position: absolute;
    top: 0;
    left: 0;
    background: #f5f5f5;
    color: #666;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.75rem;
}

.job-card-content {
    padding: 1.5rem;
    padding-top: 2.5rem;
    text-align: left;
}

.job-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.job-card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: left;
}

.job-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-badges-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.job-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge.remote {
    background: #f5f5f5;
    color: #666;
}

.badge.full-time {
    background: #f5f5f5;
    color: #666;
}

.badge.internship {
    background: #f5f5f5;
    color: #666;
}

.badge i {
    font-size: 0.7rem;
}

.job-card-apply {
    color: #4CAF50;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.job-card:hover .job-card-apply {
    transform: translateX(5px);
    color: #45a049;
}

.apply-text {
    font-weight: 600;
}

/* Job Detail Screen */
.job-detail-screen {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.job-detail-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.detail-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.detail-content {
    padding: 2rem;
    text-align: left;
}

.detail-section {
    margin-bottom: 2rem;
    text-align: left;
}

.detail-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: #4CAF50;
}

.detail-section p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-section li::before {
    content: '•';
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.detail-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Job Positions Section */
.jobs-section {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.3s forwards;
    margin-top: 2rem;
}

.jobs-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.jobs-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    text-align: center;
}

/* Job Cards */
.job-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.job-card {
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.job-card:hover {
    border-color: #4CAF50;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.job-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-badge.remote {
    background: #2196F3;
    color: white;
}

.job-badge.fulltime {
    background: #4CAF50;
    color: white;
}

.job-badge.parttime {
    background: #FF9800;
    color: white;
}

.job-card-description {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Job Content */
.job-content {
    position: relative;
}

.job-list-view {
    display: block;
}

.job-detail-view {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.job-detail-view.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Back Button */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    width: fit-content;
}

.back-button:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    transform: translateX(-4px);
}

.back-button i {
    font-size: 1.1rem;
}

/* Job Header */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.job-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-type {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.job-type.remote {
    background: #2196F3;
}

/* Job Details */
.job-details {
    margin-bottom: 2rem;
}

.job-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.job-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-section h4 i {
    color: #4CAF50;
}

.job-section p {
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1rem;
}

.job-section ul {
    list-style: none;
    padding: 0;
}

.job-section li {
    padding: 0.5rem 0;
    color: #34495e;
    position: relative;
    padding-left: 1.5rem;
}

.job-section li::before {
    content: '•';
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Application Form */
.application-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e0e6ed;
}

.application-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-form h4 i {
    color: #4CAF50;
}

.job-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    text-align: left;
}

.form-group input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #4CAF50;
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Custom Captcha */
.custom-captcha {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e6ed;
}

.custom-captcha label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-container span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #e0e6ed;
    min-width: 80px;
    text-align: center;
}

.captcha-container input {
    flex: 1;
    max-width: 120px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #4CAF50;
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.application-id {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e6ed;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Loading States */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.loading-state .submit-btn {
    position: relative;
}

.loading-state .submit-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .brand-name {
        flex-direction: column;
    }

    .logo {
        width: 150px;
        height: auto;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .jobs-title {
        font-size: 2rem;
    }

    .jobs-subtitle {
        font-size: 1rem;
    }

    .job-cards {
        gap: 1rem;
    }

    .job-card-content {
        padding: 1rem;
        padding-top: 2rem;
    }

    .job-badges-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .job-card-apply {
        align-self: flex-end;
    }

    .job-header-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .job-card-apply {
        align-self: flex-end;
    }

    .job-card-title {
        font-size: 1.3rem;
    }

    .job-detail-view {
        padding: 1.5rem;
    }

    .job-detail-screen {
        margin: 0 1rem;
    }

    .detail-header {
        padding: 1.5rem;
    }

    .detail-content {
        padding: 1.5rem;
    }

    .job-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .job-header h3 {
        font-size: 1.5rem;
    }

    .application-form {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
        height: auto;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .jobs-title {
        font-size: 1.8rem;
    }

    .job-card-content {
        padding: 0.75rem;
        padding-top: 1.75rem;
    }

    .job-badges-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .job-card-content h3 {
        font-size: 1.2rem;
    }

    .job-card-apply {
        align-self: flex-end;
    }

    .job-detail-view {
        padding: 1rem;
    }

    .job-detail-screen {
        margin: 0 0.5rem;
    }

    .detail-header {
        padding: 1rem;
    }

    .detail-header h2 {
        font-size: 1.5rem;
    }

    .detail-content {
        padding: 1rem;
    }

    .job-section {
        padding: 1rem;
    }

    .application-form {
        padding: 1rem;
    }

    .submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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