:root {
    --primary: #4652df; /* Moroccan green */
    --secondary: #d5262c; /* Moroccan red */
    --accent: #ffcd00;  /* Subtle gold accent */
    --dark: #333333;
    --light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #fdfdfd;
}

/* ========================================
           MOBILE MENU TOGGLE (HAMBURGER)
        ======================================== */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            padding: 10px;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background-color: rgb(100, 141, 191);
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        /* Hamburger animation when active */
        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(7px, 7px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

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

        /* 
           MOBILE RESPONSIVE STYLES
        */
        @media screen and (max-width: 768px) {
            /* Show hamburger menu */
            .mobile-menu-toggle {
                display: flex;
            }

            /* Hide nav links by default on mobile */
            .nav-links {
                position: fixed;
                top: 70px;
                right: -100%;
                flex-direction: column;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                width: 100%;
                max-width: 300px;
                padding: 2rem;
                gap: 1.5rem;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
                transition: right 0.4s ease-in-out;
                height: calc(100vh - 70px);
                overflow-y: auto;
            }

            /* Show nav links when menu is active */
            .nav-links.active {
                right: 0;
            }

            /* Stack nav items vertically */
            .nav-links li {
                width: 100%;
                text-align: center;
            }

            .nav-links li a {
                display: block;
                width: 100%;
                padding: 1rem;
            }

            .nav-links li a.btn {
                width: 100%;
                margin-top: 1rem;
            }

            /* Adjust container padding on mobile */
            .container {
                padding: 0 15px;
            }

            /* Smaller logo on mobile */
            .logo {
                font-size: 1.3rem;
            }

            .logo-icon {
                font-size: 1.5rem;
            }
        }

        /*
           EXTRA SMALL DEVICES
        */
        @media screen and (max-width: 480px) {
            .logo {
                font-size: 1.1rem;
            }

            .logo-icon {
                font-size: 1.3rem;
            }

            .nav-links {
                max-width: 100%;
                padding: 1.5rem;
            }
        }

        /*
           OVERLAY WHEN MOBILE MENU IS OPEN
        */
        .menu-overlay {
            display: none;
            position: fixed;
            top: 70px;
            left: 0;
            width: 80%;
            height: calc(100vh - 70px);
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .menu-overlay.active {
            display: block;
            opacity: 1;
        }


/* Hero Section */
.hero {
    background: linear-gradient(rgba(87, 129, 254, 0.8), rgba(3, 145, 77, 0.9)), url('/api/placeholder/1200/500') center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 20px 100px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

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

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
}

/* How to Use Section */
.how-to-use {
    background-color: var(--light);
    padding: 80px 0;
}

.steps {
    margin-top: 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.step-number {
    background-color: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary);
    margin-right: 10px;
    font-size: 20px;
}

/* Call to Action */
.cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-light {
    background-color:  var(--white);
    color: var(--primary);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-light:hover {
    background-color: #f0f0f0;
}

/* Footer  */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    width: 100%;
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    /* color: var(--accent); */
}

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

.footer-links li {
    margin-bottom: 10px;
}

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

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
}


  /*  typing animation for header*/

  @keyframes typing {
  from { max-width: 0 }
  to { max-width: 100% }
}

@media (min-width: 1024px) {
.typing-container {
  display: inline-block;
  overflow: hidden;
}

.typing-animation {
  display: inline-block;
  white-space: normal;
  max-width: 0;
  animation: typing 2s steps(30, end) forwards;
  font-size: 2rem;
  border-right: 2px solid rgb(255, 255, 255);
}
}
