/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F6A5BC;
    --primary-dark: #E88BA5;
    --primary-light: #FFD6E4;
    --secondary-color: #9B59B6;
    --accent-color: #FF69B4;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background: #FFFFFF;
    --background-alt: #F8F9FA;
    --border-color: #E1E8ED;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #F6A5BC 0%, #9B59B6 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD6E4 0%, #F6A5BC 100%);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.btn-download-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    font-weight: 600;
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary img {
    width: 24px;
    height: 24px;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.stat span {
    font-size: 14px;
    color: var(--text-light);
}

.hero-image {
    text-align: center;
    animation: fadeInRight 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(246, 165, 188, 0.3));
    animation: float 3s ease-in-out infinite;
    border-radius: 20px;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--background-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Calculator Section ===== */
.calculator-section {
    padding: 100px 0;
    background: white;
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calculator-tabs {
    display: flex;
    background: var(--background-alt);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.calculator-content {
    display: none;
    padding: 40px;
}

.calculator-content.active {
    display: block;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 165, 188, 0.1);
}

.btn-calculate {
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculator-results {
    padding: 40px;
    border-top: 2px solid var(--border-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-reset {
    padding: 10px 20px;
    background: var(--background-alt);
    color: var(--text-dark);
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--background-alt);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.result-card.primary {
    background: var(--gradient-primary);
    color: white;
}

.result-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.result-card h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.result-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.result-value-secondary {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.result-footer {
    background: var(--primary-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-footer p {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.btn-download-result {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-text {
    padding-right: 20px;
}

.about-text .section-title {
    text-align: right;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 100px 0;
    background: var(--background-alt);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
}

.screenshot-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-item p {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive for screenshots */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .screenshot-item img {
        max-width: 220px;
    }
}

/* ===== Download Section ===== */
.download {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    margin: 40px 0;
}

.download-btn img {
    height: 60px;
    transition: var(--transition);
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-note {
    font-size: 18px;
    font-weight: 600;
}

/* ===== FAQ Section ===== */
.faq {
    padding: 100px 0;
    background: white;
}

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

.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px;
    background: white;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--background-alt);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    margin-right: 5px;
}

.footer-download-btn img {
    height: 50px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 30px;
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .slider-btn.prev {
        right: 10px;
    }

    .slider-btn.next {
        left: 10px;
    }

    .screenshots-track {
        gap: 15px;
    }

    .screenshot-item {
        flex: 0 0 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 26px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 16px;
        padding: 12px 24px;
    }

    .feature-card {
        padding: 25px;
    }

    .calculator-content {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
