@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary: #3ea05a;
    --secondary: #C6FFC1;
    --dark: #014E3D;
    --accent: #1569C7;
    --deep: #00093C;
    --light: #f8f9fa;
    --gray: #6c757d;
}

/* إضافة متغيرات جديدة للوضع المظلم */
:root[data-theme="dark"] {
    --bg-primary: #00093C;
    --bg-secondary: #014E3D;
    --text-primary: #f8f9fa;
    --text-secondary: #C6FFC1;
    --card-bg: #014E3D;
}

*{
  font-family: "IBM Plex Sans Arabic", sans-serif;
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--light);
    scrollbar-width: none; /* Firefox */
   -ms-overflow-style: none; /* Internet Explorer and Edge */
}

::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 3px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 19px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
}

/* Hero Section */
/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero {
    padding: 165px 0 80px;
    background-color: var(--secondary); 
    border-radius: 0 0 150px 30px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.start-btn{
  padding: 0.75rem 5rem;
  align-items: center;
  justify-content: center;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 30px;
    background-color: #3ea05a;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card img{
  width: 250px;
  height: auto;
}

.about-card i {
    font-size: 40px;
    color: var(--light);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--deep);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}


.feature-card h3{
  color: #3ea05a;
}

.feature-card p{
  color: #00093C;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img { 
    width: 230px;
    height: 230px;
    margin-bottom: 20px;
    background-color: #93df8c;
    padding: 6px;
    border-radius: 6px 40px 6px 40px;
    animation: float2 6s ease-in-out infinite;
}

/* Animations */
@keyframes float2 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--gray);
    padding: 80px 0 30px;
    border-radius: 35px;
    margin: 5px 8px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 24px;
    color: var(--gray);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    color: var(--gray);
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--deep);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1569C7;
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* تطبيق الألوان المتغيرة */
body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.4s ease;
}

body.dark-theme .navbar {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

body.dark-theme .nav-links a {
    color: var(--text-primary);
    transition: all 0.4s ease;
}

body.dark-theme .logo a {
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

body.dark-theme .hero {
    background-color: var(--bg-secondary);
    transition: all 0.4s ease;
}

body.dark-theme .hero-content h1,
body.dark-theme .hero-content p {
    color: var(--text-primary);
    transition: all 0.4s ease;
}

body.dark-theme .about {
    background: var(--bg-primary);
    transition: all 0.4s ease;
}

body.dark-theme .about-card {
    background-color: var(--card-bg);
    transition: all 0.4s ease;
}

body.dark-theme .feature-card {
    background: var(--card-bg);
    transition: all 0.4s ease;
}

body.dark-theme .feature-card h3,
body.dark-theme .feature-card p {
    color: var(--text-primary);
    transition: all 0.4s ease;
}

body.dark-theme .section-header h2 {
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

body.dark-theme .section-header p {
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.dark-mode-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}