/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Naskh Arabic', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    transition: padding-top 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(84, 203, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(84, 203, 0, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FFB74D;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFB74D;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-switch:hover::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #54cb00 0%, #4ade80 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #FFB74D;
    background: linear-gradient(45deg, #FFB74D, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: #54cb00;
}

.btn-primary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #54cb00;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FFB74D;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
    animation: float-phone 6s ease-in-out infinite;
}

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

.app-screenshot {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Further reduced from 3rem */
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 4rem 0; /* Further reduced from 5rem */
    background: #f8fafc;
}

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

.feature-card {
    background: white;
    padding: 2rem; /* Reduced from 2.5rem */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #54cb00, #4ade80);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #54cb00;
    font-weight: bold;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0; /* Further reduced from 5rem */
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #54cb00, #4ade80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem; /* Reduced from 2rem */
    box-shadow: 0 10px 30px rgba(84, 203, 0, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.step-tag {
    background: #e6f7ff;
    color: #54cb00;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Categories Section */
.categories {
    padding: 4rem 0; /* Further reduced from 5rem */
    background: #f8fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-card i {
    font-size: 3rem;
    color: #54cb00;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Technology Section */
.technology {
    padding: 4rem 0; /* Further reduced from 5rem */
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-card {
    text-align: center;
    padding: 2rem;
}

.tech-card i {
    font-size: 3rem;
    color: #54cb00;
    margin-bottom: 1.5rem;
}

.tech-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.tech-card p {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 4rem 0; /* Further reduced from 5rem */
    background: linear-gradient(135deg, #54cb00, #4ade80);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.download-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-features {
    margin-bottom: 2.5rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-feature i {
    color: #FFB74D;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    min-width: 180px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.google-play-badge {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.app-store-badge {
    background: linear-gradient(135deg, #000, #333);
}

.download-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.badge-small {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.badge-large {
    font-size: 16px;
    font-weight: 600;
}

.badge-icon {
    font-size: 24px;
}

.download-btn {
    transition: transform 0.3s ease;
}

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

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.download-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #54cb00;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #54cb00;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #54cb00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFB74D;
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.contact-info i {
    color: #54cb00;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #54cb00;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Reduced to match actual header height */
    }
    
    .hero {
        margin-top: -10px;
        min-height: calc(100vh - 60px); /* Adjust hero height to account for navbar */
    }
    
    .hero-title {
        margin-top: 20px; /* Added margin-top for mobile and tablet */
    }
    
    .nav-menu {
        position: fixed;
        top: 60px; /* Position below navbar including padding */
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(84, 203, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 1.5rem; /* Further reduced from 2rem */
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: 0.75rem 0; /* Further reduced from 1rem */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        text-align: center;
        transition: all 0.3s ease;
        opacity: 0.9;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        opacity: 1;
        transform: translateX(10px);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 20px; /* Added margin-top for mobile */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .features {
        padding-top: 2rem; /* Further reduced from 3rem */
        padding-bottom: 2rem;
    }
    
    .how-it-works {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .categories {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .technology {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .download {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem; /* Further reduced for mobile */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 55px; /* Reduced to better match header height */
    }
    
    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
        padding-top: 1rem; /* Further reduced */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 20px; /* Added margin-top for small mobile */
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

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

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        margin-top: 20px; /* Added margin-top for tablet size */
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #54cb00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Desktop menu - ensure it's visible on larger screens */
@media (min-width: 769px) {
    body {
        padding-top: 0; /* Remove mobile padding on desktop */
    }
    
    .hero {
        min-height: 100vh; /* Full height on desktop */
    }
    
    .nav-menu {
        position: static !important;
        flex-direction: row !important;
        height: auto !important;
        background: none !important;
        padding-top: 0 !important;
        left: auto !important;
    }
    
    .nav-link {
        font-size: 1rem !important;
        padding: 0 !important;
        border-bottom: none !important;
        width: auto !important;
        text-align: left !important;
    }
    
    .hamburger {
        display: none !important;
    }
}