* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2D3748;
}

html[lang="ar"] body {
    font-family: 'Noto Sans Arabic', sans-serif;
    direction: rtl;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo h1 {
    font-size: 30px;
    font-weight: 700;
    color: #5A67D8; /* Purple for logo */
}

nav {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #2D3748;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 36px;
}

html[lang="ar"] .nav-menu li {
    margin-left: 0;
    margin-right: 36px;
}

.nav-menu li a {
    text-decoration: none;
    color: #2D3748;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #5A67D8; /* Purple for hover */
}

.nav-menu li a.active {
    color: #5A67D8; /* Purple for active link */
    border-bottom: 2px solid #5A67D8;
}

.nav-menu li a.btn {
    background: #5A67D8; /* Purple for Register/Login buttons */
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.nav-menu li a.btn:hover {
    background: #4C51BF; /* Darker purple for hover */
    transform: translateY(-2px);
}

#language-toggle {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

#language-toggle:hover {
    border-color: #5A67D8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #5A67D8 0%, #4C51BF 100%); /* Purple gradient */
    color: #FFFFFF;
    text-align: center;
    padding: 120px 24px;
    margin-top: 80px;
}

html[lang="ar"] .hero {
    text-align: right;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn.primary {
    background: #FFFFFF;
    color: #5A67D8; /* Purple text on white button */
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
}

.btn.primary:hover {
    background: #F7FAFC;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 24px;
    background: #FFFFFF;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #2D3748;
}

html[lang="ar"] .features h2 {
    text-align: right;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-item {
    background: #F7FAFC;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

html[lang="ar"] .feature-item {
    text-align: right;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #5A67D8; /* Purple for feature titles */
}

.feature-item p {
    font-size: 16px;
    color: #4A5568;
}

/* CTA Section */
.cta {
    background: #5A67D8; /* Purple for CTA section */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 24px;
}

html[lang="ar"] .cta {
    text-align: right;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
}

/* Footer */
footer {
    background: #2D3748;
    color: #FFFFFF;
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #CBD5E0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #5A67D8; /* Purple for footer link hover */
}

.footer-copy {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #A0AEC0;
}

.footer-copy a {
    color: #5A67D8; /* Purple for sh8adat.com link */
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 12px 0;
        text-align: center;
    }

    html[lang="ar"] .nav-menu li {
        text-align: right;
    }

    .nav-menu li a {
        font-size: 18px;
    }

    .nav-menu li a.btn {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    #language-toggle {
        width: 100%;
        padding: 12px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .features h2, .cta h2 {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}