/* Reset and Base Styles */

@font-face {
    font-family: Vairmatn;
    src: url(/fonts/Vazirmatn-Regular.woff2);
    font-weight: regular;
}


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

body {
    font-family: 'Vairmatn', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f0f23;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8899f0 0%, #9b6fc0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.1;
    z-index: -1;
}



@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    /*animation: titleGlow 3s ease-in-out infinite alternate;*/
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(118, 75, 162, 0.8));
    }
}

.title-sub {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Download Form */
.download-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 20px;
    color: rgba(102, 126, 234, 0.7);
    font-size: 1.2rem;
    z-index: 2;
}

#urlInput {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Vairmatn', Arial, sans-serif;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .input-wrapper {
        width: 500px;
    }
}


#urlInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.captcha-container {
    margin-bottom: 2rem;
    text-align: initial;
}

.captcha-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.6);
    gap: 10px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover::before {
    left: -100%;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.1ms ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.feature-icon.green {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.1s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.rule-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.rule-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.rule-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: rgba(255, 255, 255, 0.02);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .feature-card,
    .rule-card {
        padding: 1.5rem;
    }

    #urlInput {
        padding: 15px 50px 15px 15px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading .fas {
    animation: spin 1s linear infinite;
}

/* Smooth animations */
/*.feature-card,
.rule-card,
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/


/* --- Creator Credit Footer Item --- */

.creator-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between text and icon */
    font-size: 0.9rem;
    margin: 0.5rem 0; /* Add some vertical spacing */
}

.crafted-by {
    color: rgba(255, 255, 255, 0.5); /* Match existing footer text color */
    transition: color 0.3s ease; /* Smooth hover transition */
}

.heart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Add a subtle background or border if you want it more distinct */
    /* background: rgba(255, 255, 255, 0.05); */
    /* border-radius: 50%; */
    /* padding: 2px; */
}

.heart-pulse {
    color: #ff6b6b; /* A nice red/pink color for the heart */
    font-size: 0.9rem; /* Adjust size relative to text */
    animation: pulse 1.5s ease-in-out infinite; /* Apply the pulse animation */
}

.creator-link a {
    color: #667eea; /* Use your primary accent color */
    text-decoration: none;
    font-weight: 500; /* Slightly bolder for the link */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth transitions */
    position: relative; /* Needed for the underline effect */
}

.creator-link a::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Position slightly below the text */
    left: 0;
    width: 0; /* Start with no width */
    height: 1px; /* Thin line */
    background: #667eea; /* Match link color */
    transition: width 0.3s ease; /* Animate width change */
}

.creator-link a:hover {
    color: #f093fb; /* Change color on hover (use your secondary accent if preferred) */
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.5); /* Add a subtle glow */
}

.creator-link a:hover::after {
    width: 100%; /* Expand the underline on hover */
}

.crafted-by:hover {
    color: rgba(255, 255, 255, 0.8); /* Brighten the "Crafted with" text on hover */
}

/* --- Pulse Animation --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15); /* Slightly enlarge */
        opacity: 0.8; /* Slightly fade */
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsive Adjustment --- */
/* Ensure it stacks nicely on very small screens if needed */
@media (max-width: 480px) {
    .creator-credit {
        flex-direction: row; /* Keep horizontal if space allows */
        flex-wrap: wrap; /* Wrap if absolutely necessary */
        justify-content: center;
        gap: 0.3rem; /* Slightly reduce gap on small screens */
        font-size: 0.8rem; /* Slightly smaller font */
    }

    .heart-pulse {
        font-size: 0.8rem;
    }
}






/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    margin-bottom: 20px;
}

.popup-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.popup-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.popup-message {
    color: #e0e0e0;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.popup-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.popup-btn-primary {
    background-color: #3498db;
    color: white;
}

.popup-btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.popup-btn-secondary {
    background-color: transparent;
    color: #bdc3c7;
    border: 1px solid #7f8c8d;
}

.popup-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.daramet-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup-content {
        padding: 20px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 1rem;
    }

    .popup-actions {
        flex-direction: column;
    }
}


/* Add this to your CSS */
.hero {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* Ensure hero content is immediately visible */
.hero-content {
    will-change: transform, opacity;
}

/* Optional: Add a loading state that's immediately visible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.1;
    z-index: -1;
    /* Immediately visible */
    animation: none;
}