/*************************************
 * 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;
}

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

/*************************************
 * 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: 30px;
   height: 30px;
}

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

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

/*************************************
 * Support Request Modal Form
 *************************************/
.modal-backdrop {
   background-color: rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(3px);
}

.modal {
   z-index: 10000;
}

.modal-open {
   overflow: hidden;
   position: fixed;
   width: 100%;
   height: 100%;
}

.modal-content {
   border-radius: 15px;
   border: none;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
   background-color: #1CD3C1;
   color: #09314C;
   border-radius: 15px 15px 0 0;
   border-bottom: none;
   display: flex;
   flex-direction: row;
   justify-content: space-between;
}

.modal-header .btn-close {
   margin: 0;
}

.modal-footer {
   border-top: none;
}

.btn-primary {
   background-color: #1CD3C1;
   border-color: #1CD3C1;
}

.btn-primary:hover, .btn-primary:focus {
   background-color: #16a89a;
   border-color: #16a89a;
}

.form-control:focus {
   border-color: #1CD3C1;
   box-shadow: 0 0 0 0.25rem rgba(28, 211, 193, 0.25);
}

.form-label {
   font-weight: 500;
   color: #333;
}

/* RTL form fields with LTR input */
.form-control.ltr-input {
   text-align: right;
   direction: ltr;
}

.form-select.ltr-input {
   text-align: right;
   direction: ltr;
}

.email-separator {
   font-size: 1.2rem;
   font-weight: bold;
   color: #333;
   margin: 0 0.5rem;
}

input[type="number"] {
   text-align: right;
   direction: rtl;
}

#age, #amount {
   text-align: right;
   direction: rtl;
}


#emailUsername {
   flex: 3;
}

#emailDomain {
   flex: 2;
}

.form-select {
   padding-right: 2.5rem;
   background-position: left 0.75rem center;
}

.invalid-feedback {
   font-weight: 500;
}

.alert {
   border-radius: 10px;
}

/*************************************
 * 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);
   }
   
   /* Modal adjustments for mobile */
   .modal-dialog {
      margin: 0.5rem;
   }
   
   .modal-content {
      border-radius: 10px;
   }
   
   .modal-header {
      border-radius: 10px 10px 0 0;
      padding: 0.75rem 1rem;
   }
}

/*************************************
 * 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;
   }
}