/* ==================== Font Faces ==================== */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IranSans/woff2/IRANSansWeb.woff2') format('woff2'),
  url('../fonts/IranSans/woff/IRANSansWeb.woff') format('woff'),
  url('../fonts/IranSans/ttf/IRANSansWeb.ttf') format('truetype'),
  url('../fonts/IranSans/eot/IRANSansWeb.eot') format('embedded-opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IranSans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
  url('../fonts/IranSans/woff/IRANSansWeb_Light.woff') format('woff'),
  url('../fonts/IranSans/ttf/IRANSansWeb_Light.ttf') format('truetype'),
  url('../fonts/IranSans/eot/IRANSansWeb_Light.eot') format('embedded-opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IranSans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
  url('../fonts/IranSans/woff/IRANSansWeb_Medium.woff') format('woff'),
  url('../fonts/IranSans/ttf/IRANSansWeb_Medium.ttf') format('truetype'),
  url('../fonts/IranSans/eot/IRANSansWeb_Medium.eot') format('embedded-opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IranSans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
  url('../fonts/IranSans/woff/IRANSansWeb_Bold.woff') format('woff'),
  url('../fonts/IranSans/ttf/IRANSansWeb_Bold.ttf') format('truetype'),
  url('../fonts/IranSans/eot/IRANSansWeb_Bold.eot') format('embedded-opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IranSans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
  url('../fonts/IranSans/woff/IRANSansWeb_UltraLight.woff') format('woff'),
  url('../fonts/IranSans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype'),
  url('../fonts/IranSans/eot/IRANSansWeb_UltraLight.eot') format('embedded-opentype');
  font-weight: 200;
  font-style: normal;
}

/* ==================== Root Variables ==================== */
:root {
  --primary: #E91E63;
  --primary-variant: #AD1457;
  --secondary: #26C6DA;
  --secondary-variant: #0097A7;
  --background: #FFFDFD;
  --surface: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #757575;
  --success: #66BB6A;
  --error: #C62828;

  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== General Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IRANSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ==================== Glass Morphism Card ==================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==================== Navbar ==================== */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.logo-container {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.logo-container i {
  font-size: 1.5rem;
  color: white;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.brand-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 12px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--glass-bg);
  color: var(--primary);
}

.btn-donate {
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* ==================== Hero Section ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
  rgba(233, 30, 99, 0.05) 0%,
  rgba(38, 198, 218, 0.05) 100%);
  z-index: -1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-variant));
  bottom: 20%;
  right: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 50%;
  left: 5%;
  animation-delay: 10s;
}

.shape-4 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary-variant), var(--primary-variant));
  bottom: 10%;
  left: 20%;
  animation-delay: 15s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(0, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
}

.hero-card {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-image-container {
  position: relative;
  animation: fadeInRight 1s ease-out 0.4s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
  rgba(233, 30, 99, 0.3),
  rgba(38, 198, 218, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 4rem;
  color: white;
  transform: scale(0);
  transition: var(--transition);
}

.image-card:hover .image-overlay i {
  transform: scale(1);
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float-badge 3s ease-in-out infinite;
  font-weight: 500;
}

.badge-1 {
  top: 10%;
  left: -10%;
  background: linear-gradient(135deg, white, rgba(233, 30, 99, 0.1));
}

.badge-2 {
  bottom: 10%;
  right: -10%;
  background: linear-gradient(135deg, white, rgba(38, 198, 218, 0.1));
  animation-delay: 1.5s;
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating-badge i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* ==================== Buttons ==================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, var(--primary-variant), var(--primary));
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-success {
  background: var(--success);
  border: none;
  color: white;
}

/* ==================== Section Styles ==================== */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

.bg-light-glass {
  background: linear-gradient(135deg,
  rgba(233, 30, 99, 0.02),
  rgba(38, 198, 218, 0.02));
}

/* ==================== Feature Cards ==================== */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  height: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== Project Cards ==================== */
.project-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.project-badge.success {
  background: var(--success);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.progress-container {
  margin-bottom: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.progress-info span:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-info span:last-child {
  color: var(--primary);
  font-weight: bold;
}

.progress {
  height: 8px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  height: 100%;
  transition: width 1s ease-out;
  border-radius: 50px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.progress-details i {
  margin-left: 0.25rem;
}

/* ==================== Impact Cards ==================== */
.impact-card {
  text-align: center;
  padding: 3rem 2rem;
}

.impact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-variant));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(38, 198, 218, 0.3);
}

.impact-icon i {
  font-size: 1.75rem;
  color: white;
}

.impact-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.impact-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================== Contact Section ==================== */
.contact-info-card {
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-family: 'IRANSans', sans-serif;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==================== Footer ==================== */
.footer {
  background: linear-gradient(135deg,
  rgba(233, 30, 99, 0.05),
  rgba(38, 198, 218, 0.05));
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-item {
    min-width: 100px;
  }

  .section-title {
    font-size: 2rem;
  }

  .floating-badge {
    position: static;
    display: inline-flex;
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .impact-number {
    font-size: 2.5rem;
  }

  .navbar-brand .brand-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .glass-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

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

/* ==================== Animations ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-variant), var(--secondary-variant));
}
