/* Brand Colors */
:root {
    --brand-purple: #9884b4;
    --brand-purple-dark: #7a6a94;
    --brand-purple-light: #b8a9c9;
    --brand-purple-gradient: linear-gradient(135deg, #9884b4 0%, #7a6a94 100%);
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --text-dark: #4a4a4a;
    --text-gray: #6b6b6b;
    --text-light: #999999;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-purple: 0 8px 24px rgba(152, 132, 180, 0.25);
}

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

body {
    font-family: 'Noto Naskh Arabic', serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo svg {
    width: 32px;
    height: 32px;
}

.navbar-logo .petal {
    fill: none;
    stroke: var(--brand-purple);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-brand {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--brand-purple);
    letter-spacing: 3px;
    text-transform: lowercase;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--brand-purple);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: var(--brand-purple);
}

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

.navbar-cta {
    background: var(--brand-purple-gradient);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar-cta.mobile-cta {
    display: none;
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--brand-purple);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 5px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 12.5px;
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 5px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 12.5px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 12.5px;
}

/* Mobile Menu - Hidden on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    color: var(--brand-purple);
    padding-right: 28px;
    background: rgba(152, 132, 180, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(152, 132, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(152, 132, 180, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

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

.logo-container {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
    padding: 20px 0;
}

.logo-symbol {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(152, 132, 180, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-symbol .petal {
    fill: none;
    stroke: var(--brand-purple);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.brand-name {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 56px;
    font-weight: 400;
    background: var(--brand-purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: lowercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-name {
        font-size: 42px;
    }
    
    .screenshots-carousel {
        max-width: 300px;
    }
    
    .screenshot-slider {
        height: 580px;
    }
    
    .screenshot-frame {
        max-width: 260px;
        height: 530px;
        padding: 6px;
        border-radius: 40px;
    }
    
    .screenshot-frame::before {
        width: 120px;
        height: 25px;
    }
    
    .screenshot-frame::after {
        width: 120px;
    }
    
    .screenshot-frame-inner {
        border-radius: 34px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #5a5a5a;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 48px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(152, 132, 180, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--brand-purple);
    border: 2px solid var(--brand-purple);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--brand-purple-gradient);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.btn-cta {
    background-color: var(--white);
    color: var(--brand-purple);
    box-shadow: var(--shadow-md);
}

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

/* Screenshots Section */
.screenshots-section {
    padding: 100px 20px;
    background: var(--white);
    position: relative;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 60px;
    margin-top: -30px;
}

.screenshots-carousel {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.screenshot-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.screenshot-slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-align: center;
}

.screenshot-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.screenshot-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 600px;
    margin: 0 auto 24px;
    background: #000;
    border-radius: 45px;
    padding: 8px;
    overflow: hidden;
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.screenshot-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 50%;
    transform: translateX(50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 10;
}

.screenshot-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 37px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--brand-purple);
    background: linear-gradient(135deg, rgba(152, 132, 180, 0.05) 0%, rgba(152, 132, 180, 0.02) 100%);
    gap: 16px;
}

.screenshot-placeholder svg {
    opacity: 0.3;
}

.screenshot-placeholder p {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-purple);
    opacity: 0.6;
}

.screenshot-label {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 20px;
    font-weight: 600;
    color: #555555;
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-purple);
    background: var(--white);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--brand-purple-gradient);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--brand-purple);
    width: 32px;
    border-radius: 6px;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: #555555;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--brand-purple-gradient);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-purple-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-purple-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(152, 132, 180, 0.1) 0%, rgba(152, 132, 180, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--brand-purple);
    transition: all 0.4s ease;
    position: relative;
}

.feature-card:hover .feature-icon {
    background: var(--brand-purple-gradient);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-purple);
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Why Section */
.why-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, var(--white) 100%);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.why-item:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-purple-light);
}

.why-item svg {
    color: var(--brand-purple);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.why-item:hover svg {
    transform: scale(1.2);
}

.why-text {
    font-size: 17px;
    font-weight: 500;
    color: #555555;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: var(--brand-purple-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-section .btn-cta {
    position: relative;
    z-index: 1;
}

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

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo .logo-symbol .petal {
    stroke: var(--white);
}

.footer-brand-name {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: lowercase;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-button:hover {
    background: var(--brand-purple);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-purple);
}

/* Responsive Design - Desktop (default) */
/* Desktop: Show navbar-links, Hide mobile-menu-toggle and mobile-menu */
.mobile-menu-toggle {
    display: none !important;
}

.mobile-menu {
    display: none !important;
}

.navbar-cta.mobile-cta {
    display: none !important;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Hide desktop navigation links */
    .navbar-links {
        display: none !important;
    }
    
    .navbar-link {
        display: none !important;
    }
    
    .navbar-cta.desktop-cta {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Show mobile menu (will be toggled by JS) */
    .mobile-menu {
        display: block !important;
    }
    
    .navbar-right {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* Show mobile CTA button - في أقصى اليسار */
    .navbar-cta.mobile-cta {
        display: inline-block !important;
        padding: 8px 20px;
        font-size: 14px;
        order: 1;
        margin-left: 0;
        margin-right: 12px;
    }
    
    /* زر الهمبرغر - بعد "ابدأ الآن" مباشرة */
    .mobile-menu-toggle {
        order: 2;
        margin-right: 0;
        margin-left: 0;
    }
}

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

    .hero-subtitle {
        font-size: 18px;
    }

    .brand-name {
        font-size: 42px;
    }

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

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

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

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-card {
        padding: 32px 24px;
    }
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-purple-dark);
}
