/* Custom animation styles for Tadaber website */

/* Font settings */
:root {
  --font-primary: 'Tajawal', sans-serif;
  --font-secondary: 'Amiri', serif;
  --font-tertiary: 'Rubik', sans-serif;
}

body, button, input, textarea, select {
  font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
}

.quran-text, blockquote {
  font-family: var(--font-secondary);
}

p, .card-text {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.8;
}

/* Arabic text improvements */
[dir="rtl"] {
  letter-spacing: 0;
  line-height: 1.8;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
  line-height: 1.5;
}

.feature-title, .contact-title, .download-title {
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
}

.btn, .download-btn, .contact-link, .submit-btn {
  font-family: var(--font-primary);
  font-weight: 600;
}

/* Blur animation */
[data-aos="blur-effect"] {
  filter: blur(8px);
  opacity: 0;
  transition-property: filter, opacity;
}

[data-aos="blur-effect"].aos-animate {
  filter: blur(0);
  opacity: 1;
}

/* Slide animations with blur */
.slide-left-blur {
  transform: translateX(100px);
  filter: blur(10px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-left-blur.aos-animate {
  transform: translateX(0);
  filter: blur(0);
  opacity: 1;
}

.slide-right-blur {
  transform: translateX(-100px);
  filter: blur(10px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-right-blur.aos-animate {
  transform: translateX(0);
  filter: blur(0);
  opacity: 1;
}

.slide-up-blur {
  transform: translateY(50px);
  filter: blur(5px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-up-blur.aos-animate {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}

/* Scale animations with blur */
.scale-blur {
  transform: scale(0.8);
  filter: blur(10px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.scale-blur.aos-animate {
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
}

/* Modern Feature Card Styles */
.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(14, 109, 94, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(14, 109, 94, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0E6D5E, #12a58c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card .card-body {
  padding: 2rem 1.5rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(14, 109, 94, 0.1), rgba(14, 109, 94, 0.2));
  border-radius: 50%;
  color: #0E6D5E;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #0E6D5E, #12a58c);
  color: white;
  transform: scale(1.1);
}

.feature-card .card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: var(--font-primary);
}

.feature-card:hover .card-title {
  color: #0E6D5E;
}

.feature-card .card-text {
  color: #6c757d;
  line-height: 1.6;
}

/* Features section background */
.features-bg {
  background: linear-gradient(180deg, rgba(242, 248, 247, 0.8), rgba(255, 255, 255, 1));
  position: relative;
}

.features-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230e6d5e' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.feature-section-heading {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-weight: 700;
}

.feature-section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0E6D5E, #12a58c);
  border-radius: 2px;
}

/* Download Section Styles */
.download-section {
  position: relative;
  background: linear-gradient(135deg, #0E6D5E, #0a5446);
  overflow: hidden;
}

.download-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.download-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.download-title {
  color: white;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.download-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.download-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #0E6D5E;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.download-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: #0E6D5E;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transition: all 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.download-info {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.download-mockup {
  position: relative;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.download-mockup img {
  max-width: 55%;
  height: auto;
  border-radius: 35px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-10deg);
  transition: all 0.5s ease;
}

.download-mockup img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* Contact Section Styles */
.contact-section {
  background: linear-gradient(180deg, #fff, #f8f9fa);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%230e6d5e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.contact-heading {
  position: relative;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #212529;
  z-index: 1;
}

.contact-heading::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0E6D5E, #12a58c);
  border-radius: 2px;
}

.contact-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(14, 109, 94, 0.1);
  height: 100%;
  z-index: 1;
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 3px solid transparent;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 109, 94, 0.02), rgba(14, 109, 94, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(14, 109, 94, 0.15);
  border-left: 3px solid #0E6D5E;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(14, 109, 94, 0.1), rgba(14, 109, 94, 0.2));
  color: #0E6D5E;
  font-size: 1.8rem;
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, #0E6D5E, #12a58c);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.contact-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: #212529;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-title {
  color: #0E6D5E;
}

.contact-text {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(14, 109, 94, 0.1), rgba(14, 109, 94, 0.2));
  color: #0E6D5E;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: linear-gradient(135deg, #0E6D5E, #12a58c);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 109, 94, 0.2);
}

.contact-form-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(14, 109, 94, 0.15);
  padding: 2.5rem;
  z-index: 1;
  position: relative;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #0E6D5E;
}

.contact-form-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(14, 109, 94, 0.2);
}

.form-header, .contacts-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.form-icon-wrapper, .contacts-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(14, 109, 94, 0.1), rgba(14, 109, 94, 0.2));
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.form-icon-wrapper i, .contacts-icon-wrapper i {
  font-size: 2.5rem;
  color: #0E6D5E;
}

.contact-form-title, .contacts-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
  text-align: center;
}

.contact-cards-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(14, 109, 94, 0.15);
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #0E6D5E;
}

.contact-cards-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(14, 109, 94, 0.2);
}

.form-floating {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  border-radius: 8px;
  border: 1px solid rgba(14, 109, 94, 0.2);
  padding: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: #0E6D5E;
  box-shadow: 0 0 0 0.25rem rgba(14, 109, 94, 0.25);
  transform: translateY(-2px);
}

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

.submit-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0E6D5E, #12a58c);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(14, 109, 94, 0.3);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transition: all 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}
