/*
 * Fayyad Landing Page CSS
 * Design System with HSL Colors
 */

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
    /* Primary Green */
    --primary-h: 140;
    --primary-s: 68%;
    --primary-l: 12%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-foreground: hsl(140, 31%, 96%);

    /* Secondary Gold */
    --secondary: hsl(46, 100%, 49%);
    --secondary-foreground: hsl(140, 68%, 20%);

    /* Background & Foreground */
    --background: hsl(140, 31%, 96%);
    --foreground: hsl(140, 68%, 20%);

    /* Card */
    --card: hsl(140, 31%, 94%);
    --card-foreground: hsl(140, 68%, 20%);

    /* Muted */
    --muted: hsl(320, 25%, 94%);
    --muted-foreground: hsl(140, 28%, 37%);

    /* Border */
    --border: hsl(152, 81%, 96%);

    /* Radius */
    --radius: 1rem;
}

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

body.landing-page {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    direction: rtl;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-foreground {
    color: var(--foreground);
}

/* ========================================
   Container
   ======================================== */
.landing-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .landing-container {
        padding: 0 2rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 14px hsla(140, 68%, 12%, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(140, 68%, 12%, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    color: var(--foreground);
}

/* ========================================
   Cards
   ======================================== */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 40px hsla(140, 68%, 12%, 0.1);
    transform: translateY(-4px);
}

.card-content {
    padding: 2rem;
}

/* ========================================
   Badge
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: hsla(140, 68%, 12%, 0.05);
    color: var(--primary);
    border: 1px solid hsla(140, 68%, 12%, 0.2);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(140, 31%, 96%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(152, 81%, 96%, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: hsla(140, 31%, 96%, 0.98);
    box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-inner {
    height: 4rem;
}

.navbar-logo img {
    height: 1.75rem;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo img {
    height: 1.5rem;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.navbar-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .navbar-actions {
        display: flex;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 20rem;
    height: 100vh;
    background: var(--background);
    padding: 2rem;
    box-shadow: -10px 0 40px hsla(0, 0%, 0%, 0.1);
    z-index: 100;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: hsla(0, 0%, 0%, 0.5);
    z-index: 90;
}

.mobile-overlay.active {
    display: block;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background), hsla(140, 31%, 96%, 0.95), var(--background));
}

.hero-decoration-1 {
    position: absolute;
    top: 10rem;
    right: 5rem;
    width: 18rem;
    height: 18rem;
    background: hsla(140, 68%, 12%, 0.05);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-decoration-2 {
    position: absolute;
    bottom: 10rem;
    left: 5rem;
    width: 24rem;
    height: 24rem;
    background: hsla(46, 100%, 49%, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    padding: 5rem 1rem;
}

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

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 6rem 0;
    background: hsla(140, 31%, 94%, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 40rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: hsla(140, 31%, 94%, 0.5);
    backdrop-filter: blur(10px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: hsla(140, 68%, 12%, 0.1);
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ========================================
   Why Section
   ======================================== */
.why-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-decoration-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: hsla(140, 68%, 12%, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    transform: translateX(-50%);
}

.why-decoration-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: hsla(46, 100%, 49%, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    transform: translateX(50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.benefit-item:hover {
    background: hsla(140, 31%, 94%, 0.5);
}

.benefit-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: hsla(140, 68%, 12%, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.benefit-description {
    color: var(--muted-foreground);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--primary-foreground);
}

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

@media (min-width: 1024px) {
    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.stats-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .stats-content h2 {
        font-size: 2.5rem;
    }
}

.stats-content p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: hsla(140, 31%, 96%, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 5rem 0;
    background: hsla(140, 31%, 94%, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    height: 100%;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    fill: var(--primary);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(140, 68%, 12%, 0.1);
}

.form-input[dir="ltr"] {
    text-align: left;
}

textarea.form-input {
    resize: none;
    min-height: 8rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.contact-card:hover {
    transform: none;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsla(140, 68%, 12%, 0.1);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.contact-value {
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(140, 68%, 12%, 0.05), transparent, hsla(46, 100%, 49%, 0.05));
}

.cta-content {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.cta-benefit svg {
    color: var(--primary);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--foreground);
    color: var(--background);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand img {
    height: 3rem;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.7;
    max-width: 20rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid hsla(140, 31%, 96%, 0.2);
    border-radius: var(--radius);
    background: hsla(140, 31%, 96%, 0.1);
    color: var(--background);
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: hsla(140, 31%, 96%, 0.5);
}

.footer-section h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: hsla(140, 31%, 96%, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid hsla(140, 31%, 96%, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.875rem;
}

.footer-copyright p {
    margin-bottom: 0.25rem;
}

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

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsla(140, 31%, 96%, 0.1);
    color: var(--background);
    text-decoration: none;
    transition: background 0.2s ease;
}

.social-link:hover {
    background: hsla(140, 31%, 96%, 0.2);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Initial state for animated elements */
[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    opacity: 1;
}

/* ========================================
   Utilities
   ======================================== */
.relative {
    position: relative;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}