@font-face {
    font-family: "ambile-regular";
    src: url('/assets/fonts/regular/ambile-regular.woff2') format('woff2'),
         url('/assets/fonts/regular/ambile-regular.woff') format('woff '),
            url('/assets/fonts/regular/ambile-regular.ttf') format('truetype');
}

@font-face{
    font-family: "ambile-heading";
    src: url('/assets/fonts/heading/ambile-heading.woff2') format('woff2'),
         url('/assets/fonts/heading/ambile-heading.woff') format('woff '),
            url('/assets/fonts/heading/ambile-heading.ttf') format('truetype');
}

:root {
  --dark-bg: #01010d;
  --light-bg: white;
  --primary: #4f46e5;
  --text-dark: white;
  --text-light: #1a1a1a;
  --font-regular: 'ambile-regular', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'ambile-heading', system-ui, -apple-system, BlinkMac
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-regular);
  direction: rtl;
}

html {
  font-size: 1.5rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--light-bg);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background: var(--dark-bg);
  color: var(--text-dark);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
}

header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 1rem;
  width: auto;
  transition: opacity 0.4s ease;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

body.dark .logo-light {
  display: none;
}

body.dark .logo-dark {
  display: block;
}

.toggle {
  cursor: pointer;
  border: 2px solid var(--primary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  transition: all 0.3s ease;
}

.toggle:hover {
  background: var(--primary);
  color: white;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 3rem 2rem; */
  text-align: center;
}

.hero {
  max-width: 900px;
  animation: fadeUp 1.2s ease forwards;
}

.banner-container {
  /* position: relative; */
  width: 100%;
  /* border: 2px solid red; */
  max-width: 100dvw;
  margin-bottom: 2rem;
  overflow: hidden;
  /* border-radius: 1rem; */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.banner {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.banner-light {
  display: block;
}

.banner-dark {
  display: none;
}

body.dark .banner-light {
  display: none;
}

body.dark .banner-dark {
  display: block;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.6;
}



.cta {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
}



footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 1.3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
