* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #7c3aed;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #ea580c;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px 0 rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Segoe UI Arabic', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== Navigation Bar ============== */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2px;
    font-weight: 700;
}

.logo .tagline {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: #eff6ff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============== Hero Section ============== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.blob1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -100px;
    animation: blob1-animation 8s ease-in-out infinite;
}

.blob2 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: -50px;
    left: -50px;
    animation: blob2-animation 10s ease-in-out infinite;
}

.blob3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    left: 50%;
    animation: blob3-animation 12s ease-in-out infinite;
}

@keyframes blob1-animation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes blob2-animation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 30px);
    }
}

@keyframes blob3-animation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: emoji-bounce 2s ease-in-out infinite;
}

@keyframes emoji-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ============== Buttons ============== */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #64748b);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #10b981);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, var(--success-color));
}

.btn-white {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-white:hover {
    background: #f1f5f9;
}

/* ============== Features Section ============== */
.features {
    padding: 100px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc, white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-box {
    font-size: 54px;
    margin-bottom: 20px;
    display: inline-block;
    animation: icon-rotate 0.6s ease;
}

@keyframes icon-rotate {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-link:hover {
    transform: translateX(5px);
}

/* ============== CTA Section ============== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ============== Testimonials Section ============== */
.testimonials {
    padding: 100px 20px;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding-right: 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.2;
    right: 0;
    top: -10px;
}

.testimonial-author {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-role {
    font-size: 12px;
    color: var(--text-light);
}

/* ============== Footer ============== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    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 h3 {
    font-size: 20px;
}

.footer-section h4 {
    font-size: 16px;
    color: #cbd5e1;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* ============== Utility Classes ============== */
.max-width-800 {
    max-width: 800px;
    margin: 0 auto;
}

.content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    line-height: 2;
    color: var(--text-dark);
}

.content-box p {
    margin-bottom: 20px;
}

.content-box ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-box strong {
    font-weight: 600;
}

.section-list {
    list-style: none;
    padding-right: 0;
}

.section-list li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.section-list li:last-child {
    border-bottom: none;
}

/* ============== Toast Notification ============== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============== Responsive Design ============== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-emoji {
        font-size: 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .feature-icon-box {
        font-size: 40px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .newsletter {
        flex-direction: column;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
}