/*************************************
 * Base Styles
 *************************************/
html, body {
   direction: rtl;
   margin: 0; 
   padding: 0;
   height: 100%;
   font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
   background-color: #000;
   color: #fff;
   scroll-behavior: smooth;
   overflow-x: hidden;
}

/*************************************
 * Particles Background
 *************************************/
#particles-bg {
   position: fixed;
   top: 0; 
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
}

/*************************************
 * Auth Pages Styles
 *************************************/
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-box {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.auth-logo a:hover img {
  transform: scale(1.05);
}

.auth-title {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 2rem;
}

/* Form styles for auth pages */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #1CD3C1;
  color: #fff;
  box-shadow: none;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control[dir="ltr"] {
  text-align: right;
}

/* Auth links */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.auth-link {
  color: #1CD3C1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.auth-link:hover {
  color: #fff;
}

.auth-link svg {
  width: 20px;
  height: 20px;
}

/* Company select and email input */
.company-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 16px 12px;
  appearance: none;
}

.company-select:focus {
  border-color: #1CD3C1;
  outline: 0;
  box-shadow: none;
}

.company-select option {
  background-color: #000;
  color: #fff;
  padding: 8px;
  text-align: left;
}

/* Modal styles */
.modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-header, .modal-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body h6 {
  color: #1CD3C1;
  font-weight: 600;
}

.modal-body ul li {
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.modal-body ul li:before {
  content: "•";
  color: #1CD3C1;
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-right: -1rem;
}

/*************************************
 * Navigation Bar
 *************************************/
nav.navbar {
   position: fixed;
   top: 0; 
   width: 100%;
   z-index: 9999;
   background: rgba(0, 0, 0, 0.5); 
   backdrop-filter: blur(7px);
   -webkit-backdrop-filter: blur(7px);
   padding: 1rem 0;
}

nav .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

nav .navbar-brand img {
   height: 60px;
}

/* Navigation Items */
.navbar-nav {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: flex-start;
   margin: 0;
   padding: 0;
   list-style: none;
   gap: 2rem;
}

.navbar-nav .nav-item {
   margin: 0;
}

.navbar-nav .nav-link {
   color: #fff;
   text-decoration: none;
   padding: 0.5rem;
   white-space: nowrap;
   transition: color 0.3s ease;
   font-size: 1.1rem;
   cursor: pointer;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
   color: #1CD3C1;
}

/* CTA Button */
.cta-button {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   background: #1CD3C1;
   color: #09314C;
   padding: 0.75rem 1.5rem;
   border-radius: 50px;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.3s ease;
   border: none;
   cursor: pointer;
}

.cta-button:hover {
   background: #0070C0;
   color: #fff;
   transform: translateY(-2px);
}

.cta-button svg {
   width: 20px;
   height: 20px;
}

.nav-cta {
   margin-right: auto;
}

/* Mobile Toggle Button */
.navbar-toggler {
   display: none;
   border: none;
   background: transparent;
   color: #fff;
}

/*************************************
 * Sections
 *************************************/
section {
   position: relative;
   z-index: 1;
   width: 100%;
   min-height: 100vh;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
   padding: 2rem 0;
}

.section-content {
   max-width: 1200px;
   margin: 0 auto;
   overflow: visible !important;
   height: auto !important;
}

/*************************************
 * Typography
 *************************************/
h1, h2 {
   margin-bottom: 1rem;
   font-size: 2.5rem;
   font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
}

h1 { color: #1CD3C1; }
h2 { color: #0070C0; }

p {
   line-height: 1.7;
   margin-top: 1rem;
   margin-bottom: 1rem;
   font-weight: 200;
}

/*************************************
 * Glass Effect
 *************************************/
.glass {
   background: rgba(255, 255, 255, 0.08);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   box-shadow: 
      0 4px 24px -1px rgba(0, 0, 0, 0.2),
      0 0 16px -1px rgba(0, 0, 0, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
   border-radius: 16px;
   padding: 2rem;
   margin: 1rem;
   z-index: 2;
   transition: all 0.3s ease;
}

/* Special glow for goal boxes */
.goal-box {
   background: rgba(255, 255, 255, 0.06);
   box-shadow: 
      0 4px 24px -1px rgba(0, 0, 0, 0.2),
      0 0 16px -1px rgba(0, 0, 0, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 32px -8px rgba(28, 211, 193, 0.2); /* Subtle teal glow */
   transition: all 0.3s ease;
}

.goal-box:hover {
   transform: translateY(-2px);
   box-shadow: 
      0 8px 32px -1px rgba(0, 0, 0, 0.3),
      0 0 16px -1px rgba(0, 0, 0, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 48px -8px rgba(28, 211, 193, 0.3); /* Enhanced glow on hover */
}

/*************************************
 * Goals Grid
 *************************************/
.goals-container {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   gap: 1.5rem;
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 1rem;
   overflow: visible !important;
   height: auto !important;
   justify-items: center;
   align-items: center;
}

.goal-box {
   padding: 1.5rem !important;
   height: auto !important;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 100%;
   max-width: 250px;
   overflow: visible !important;
   text-align: center;
}

/*************************************
 * Lottie Icons
 *************************************/
.lottie-icon {
   width: 60px;
   height: 60px;
   margin-bottom: 0.8rem;
   max-width: 60px;
   max-height: 60px;
}

/*************************************
 * Partner Logos Grid
 *************************************/
.logos-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-top: 2rem;
   align-items: center;
   justify-items: center;
}

.logo-item {
   width: 100%;
   max-width: 200px;
   transition: all 0.3s ease;
}

.logo-item img {
   width: 100%;
   height: auto;
   filter: grayscale(100%) brightness(10);
   transition: all 0.3s ease;
}

.logo-item:hover img {
   filter: grayscale(0%) brightness(1);
   transform: scale(1.05);
}

/*************************************
 * Footer
 *************************************/
footer {
   position: fixed;
   bottom: 0;
   left: 0;
   width: 100%;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(7px);
   -webkit-backdrop-filter: blur(7px);
   padding: 1rem;
   text-align: center;
   z-index: 9999;
}

footer p {
   font-size: 0.9rem;
   margin: 0;
   opacity: 0.7;
}

/*************************************
 * Mobile Responsiveness
 *************************************/
@media (max-width: 768px) {
   /* Reset all overflow and height constraints */
   html, body {
      min-height: 100%;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
   }

   /* Reset all sections */
   section {
      min-height: auto !important;
      height: auto !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: visible !important;
   }

   /* Force proper spacing for first and last sections */
   section#aboutSection {
      padding: calc(100px + 2rem) 0 3rem 0 !important;
      margin-top: 0 !important;
   }

   section#goalsSection {
      padding: 3rem 0 !important;
   }

   section#associationSection {
      padding: 3rem 0 calc(80px + 2rem) 0 !important;
      margin-bottom: 0 !important;
   }

   /* Content containers */
   .section-content {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 1.5rem !important;
      margin: 0 !important;
      overflow: visible !important;
      height: auto !important;
   }

   /* Goals grid fixes */
   .goals-container {
      display: flex !important;
      flex-direction: column !important;
      gap: 1rem !important;
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
      overflow: visible !important;
      align-items: center !important;
   }

   .goal-box {
      width: 100% !important;
      max-width: 280px !important;
      margin: 0 !important;
      padding: 1.5rem !important;
      height: auto !important;
      overflow: visible !important;
      flex-shrink: 0 !important;
   }

   /* Glass container adjustments */
   .glass {
      margin: 1rem 0 !important;
      padding: 1.5rem !important;
      width: 100% !important;
      overflow: visible !important;
   }

   /* Rest of mobile styles */
   .navbar-toggler {
      display: block;
   }

   .navbar-nav {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.9);
      padding: 1rem;
      gap: 1rem;
      flex-direction: column;
      align-items: center;
   }

   .navbar-nav.show {
      display: flex;
   }

   /* Typography */
   h1 { font-size: 2rem; }
   h2 { font-size: 1.5rem; }
   p {
      margin-top: 0;
      margin-bottom: 0;
   }

   /* Lottie Icons */
   .lottie-icon {
      width: 50px;
      height: 50px;
      margin-bottom: 0.5rem;
   }

   /* Partner Logos */
   .logos-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
   }
   
   .logo-item {
      max-width: 150px; /* Increased from 120px */
      padding: 0.5rem;
   }

   /* Reset footer position for mobile */
   footer {
      position: static;
      margin-top: 2rem;
      padding: 1.5rem;
      background: rgba(0, 0, 0, 0.8);
   }
}

/*************************************
 * Note Styles
 *************************************/
.note {
   margin-top: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 1rem;
   background: rgba(28, 211, 193, 0.1);
   border-radius: 8px;
}

.note span {
   margin: 0;
   text-align: center;
   font-size: 0.9rem;
   opacity: 0.9;
   line-height: 1.5;
   display: block;
   width: 100%;
}

@media (max-width: 768px) {
   .note {
      margin-top: 1.5rem;
      padding: 0.75rem;
   }
}



/* Base styles */
 .snap-section {
   background: transparent !important;
   position: relative;
   z-index: 1;
 }
 
 /* Auth container styles */
 .auth-container {
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 2rem;
   position: relative;
   z-index: 1;
 }
 
 .auth-box {
   width: 100%;
   max-width: 500px;
   padding: 2rem;
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border-radius: 15px;
   border: 1px solid rgba(255, 255, 255, 0.2);
 }
 
 .auth-logo {
   text-align: center;
   margin-bottom: 2rem;
 }
 
 .auth-logo img {
   height: 60px;
 }
 
 .auth-title {
   text-align: center;
   color: #fff;
   margin-bottom: 2rem;
   font-weight: 600;
   font-size: 2rem;
 }
 
 /* Form styles */
 .form-group {
   margin-bottom: 1.5rem;
 }
 
 .form-label {
   color: #fff;
   margin-bottom: 0.5rem;
   font-weight: 500;
   display: block;
 }
 
 .form-control {
   width: 100%;
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
   padding: 0.8rem 1rem;
   border-radius: 8px;
   transition: all 0.3s ease;
 }
 
 .form-control:focus {
   background: rgba(255, 255, 255, 0.15);
   border-color: #1CD3C1;
   color: #fff;
   box-shadow: none;
   outline: none;
 }
 
 .form-control::placeholder {
   color: rgba(255, 255, 255, 0.5);
 }
 
 /* Input group */
 .input-group {
   display: flex;
   align-items: stretch;
 }
 
 .input-group .form-control {
   border-radius: 8px;
   flex: 1;
 }
 
 .input-group .form-control:not(:last-child) {
   border-start-end-radius: 0;
   border-end-end-radius: 0;
 }
 
 .domain-addon {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
   padding: 0.8rem 1rem;
   border-start-end-radius: 8px;
   border-end-end-radius: 8px;
   white-space: nowrap;
 }
 
 /* Checkbox styles */
 .form-check {
   margin-bottom: 1rem;
 }
 
 .form-check-label {
   color: #fff;
   margin-right: 0.5rem;
 }
 
 .form-check-input {
   margin-left: 0.5rem;
 }
 
 .form-check-input:checked {
   background-color: #1CD3C1;
   border-color: #1CD3C1;
 }
 
 /* Button styles */
 .btn-primary {
   width: 100%;
   background: #1CD3C1;
   border: none;
   padding: 0.8rem 2rem;
   color: #000;
   font-weight: 500;
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.3s ease;
 }
 
 .btn-primary:hover {
   background: #19bfae;
   transform: translateY(-2px);
 }
 
 /* Links */
 .auth-links {
   display: flex;
   justify-content: space-between;
   margin-top: 2rem;
 }
 
 .auth-link {
   color: #1CD3C1;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   transition: all 0.3s ease;
 }
 
 .auth-link:hover {
   color: #fff;
 }
 
 .auth-link svg {
   width: 20px;
   height: 20px;
 }
 
 /* Textarea */
 textarea.form-control {
   min-height: 120px;
   resize: vertical;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
   .auth-box {
     margin: 1rem;
     padding: 1.5rem;
   }
   
   .auth-title {
     font-size: 1.5rem;
   }
 }
 
 .form-select.domain-addon {
   background-color: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
   min-width: 150px;
   border-radius: 8px;
   border-start-start-radius: 0;
   border-end-start-radius: 0;
   padding-right: 2.5rem;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: left 0.75rem center;
   background-size: 16px 12px;
   appearance: none;
 }
 
 .form-select.domain-addon:focus {
   border-color: #1CD3C1;
   outline: 0;
   box-shadow: none;
 }
 
 .form-select.domain-addon option {
   background-color: #000;
   color: #fff;
   padding: 8px;
 }
 
 .input-group > .input-group-text.border-0 {
   min-width: 10px;
   background: transparent;
 }
 
 .modal-content {
   background: rgba(0, 0, 0, 0.95);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
 }
 
 .modal-header, .modal-footer {
   border-color: rgba(255, 255, 255, 0.1);
 }
 
 .modal-body {
   max-height: 70vh;
   overflow-y: auto;
 }
 
 .form-check-input {
   float: right !important;
   margin-left: 0 !important;
   margin-right: 0 !important;
 }
 
 .form-check-label {
   margin-right: 1.5rem;
 }
 
 .btn-close-white {
   filter: invert(1) grayscale(100%) brightness(200%);
 }
 
 .modal-body h6 {
   color: #1CD3C1;
   font-weight: 600;
 }
 
 .modal-body ul li {
   margin-bottom: 0.5rem;
   padding-right: 1rem;
 }
 
 .modal-body ul li:before {
   content: "•";
   color: #1CD3C1;
   font-weight: bold;
   display: inline-block;
   width: 1rem;
   margin-right: -1rem;
 }
 
 /* Company select and email input */
 .company-select {
   background-color: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
   border-radius: 8px;
   padding: 0.8rem 1rem 0.8rem 2.5rem;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: left 0.75rem center;
   background-size: 16px 12px;
   appearance: none;
 }
 
 .company-select:focus {
   border-color: #1CD3C1;
   outline: 0;
   box-shadow: none;
 }
 
 .company-select option {
   background-color: #000;
   color: #fff;
   padding: 8px;
   text-align: left;
 }
 
 .company-select option:first-child {
   color: rgba(255, 255, 255, 0.5);
 }
 
 .form-control[dir="ltr"] {
   text-align: right;
 }
 
 .gap-3 {
   gap: 1rem !important;
 }