/* Reset and Base Styles */
:root {
    --primary-color: #ff3e8c;
    --primary-dark: #e01e70;
    --primary-light: #ff6ca6;
    --secondary-color: #2d0a4f;
    --secondary-dark: #1a0638;
    --secondary-light: #3d1566;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #151521;
    --bg-light: #1e1e2d;
    --border-color: #2d2d3f;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --card-bg: #1e1e2d;
    --input-bg: #252536;
    --header-bg: rgba(21, 21, 33, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    gap: 8px;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Social Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
}

.btn-google {
    background-color: #DB4437;
    color: white;
}

.btn-google:hover {
    background-color: #c53929;
}

.btn-linkedin {
    background-color: #0077B5;
    color: white;
}

.btn-linkedin:hover {
    background-color: #006699;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background-color: #0077b5;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
}

.logo img {
    height: 40px;
    width: auto;
    background-color: var(--secondary-color);
    padding: 5px;
    border-radius: 5px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    margin-left: 0;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Header Simple (for inner pages) */
.header-simple {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 62, 140, 0.1) 0%, rgba(45, 10, 79, 0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* API Catalog Section */
.api-catalog {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* API Categories */
.api-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.api-category-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.api-category-btn:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.api-category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.api-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.api-header {
    padding: 20px;
    background-color: var(--secondary-color);
    color: white;
    position: relative;
}

.api-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.api-header p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

.api-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.api-body {
    padding: 20px;
    flex: 1;
}

.api-features h4, .api-pricing h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.api-features ul {
    margin-bottom: 20px;
}

.api-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.api-features li i {
    color: var(--success-color);
    margin-top: 3px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.pricing-label {
    color: var(--text-light);
}

.pricing-value {
    font-weight: 600;
    color: var(--text-color);
}

.api-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.api-rating i {
    color: #ffc107;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Support Section */
.support {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.support-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.support-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.support-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.support-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about {
    margin-bottom: 20px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after, .footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Simple (for inner pages) */
.footer-simple {
    background-color: var(--bg-light);
    padding: 20px 0;
    text-align: center;
}

.footer-simple .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-simple .footer-links {
    display: flex;
    gap: 20px;
}

.footer-simple .footer-links a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-simple .footer-links a:hover {
    color: var(--primary-color);
}

/* Auth Section */
.auth-section {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 60px);
}

.auth-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
}

.auth-form-container {
    flex: 1;
    padding: 40px;
    position: relative;
}

.auth-image {
    width: 45%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 10, 79, 0.9) 0%, rgba(255, 62, 140, 0.8) 100%);
    z-index: 1;
}

.auth-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.auth-image img {
    max-width: 80%;
    margin-bottom: 30px;
    border-radius: 10px;
}

.auth-image-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.auth-image-text p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active:after {
    transform: scaleX(1);
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
}

.social-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-auth .btn-social {
    flex: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider:before, .auth-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 62, 140, 0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-image {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 999;
        padding: 20px;
        justify-content: flex-start;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .features-grid, .api-grid, .support-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .auth-form-container {
        padding: 30px 20px;
    }

    .social-auth {
        flex-direction: column;
    }
}

/* Certificates Section */
.certificates {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.certificates-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.certificate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certificate-item img {
    margin-bottom: 20px;
    max-width: 120px;
    height: auto;
}

.certificate-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.certificate-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Responsive styles for certificates */
@media (max-width: 768px) {
    .certificates-grid {
        flex-direction: column;
        align-items: center;
    }

    .certificate-item {
        width: 100%;
        max-width: 400px;
    }
}