:root {
    --primary-color: #7C71F5;
    --secondary-color: #FF8FAB;
    --accent-color: #4CC9F0;
    --text-color: #2D3436;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --gradient-main: linear-gradient(135deg, #7C71F5 0%, #9D8DF1 100%);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--gradient-main);
    color: var(--white);
    padding-bottom: 100px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    position: relative;
    overflow: hidden;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.btn-download {
    background-color: var(--white);
    color: var(--primary-color) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    /* Remove fixed height to adapt to image aspect ratio */
    background: var(--white);
    border-radius: 40px;
    border: 8px solid #333;
    padding: 10px; /* Reduced padding */
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-5deg);
    overflow: hidden; /* Clip content */
}

.hero-screen-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    width: 70px;
    height: 70px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Screenshots */
.screenshots {
    padding: 80px 0;
    background: var(--bg-color);
}

.screens-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    justify-content: flex-start; /* Align left for scrolling */
    scrollbar-width: none; /* Firefox */
}

.screens-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screen-item {
    width: 250px; /* Wider for screenshots */
    flex-shrink: 0; /* Prevent shrinking */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.screen-item:hover {
    transform: translateY(-10px);
}

.screen-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Download Section */
.download {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    border-radius: 50px;
    margin: 40px 20px;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

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

/* Footer */
footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links a {
    color: #dfe6e9;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 15px;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* Simple hide for now */
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-mockup {
        width: 220px;
    }
}
