/* Base Styles */
:root {
  --primary-color: #ff1f75; /* وردي أكثر إشراقاً */
  --secondary-color: #333333;
  --accent-color: #ff85b0; /* وردي فاتح */
  --gradient-color: linear-gradient(135deg, #ff1f75, #ff85b0);
  --light-color: #fff8fa; /* أبيض بدرجة وردية خفيفة */
  --dark-color: #222222;
  --shadow: 0 10px 30px rgba(255, 31, 117, 0.15);
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--secondary-color);
  background-color: #fcfcfc;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--dark-color);
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2rem;
  margin-top: 50px;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-color);
  border-radius: 10px;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 25px;
  font-size: 1.05rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--accent-color);
}

strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gradient-color);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn:hover {
  background: linear-gradient(135deg, #ff1f75, #ff007c);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 31, 117, 0.25);
  color: white;
}

.btn:active {
  transform: translateY(-1px);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  height: 55px;
  border-radius: 10px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: var(--gradient-color);
  transition: var(--transition);
  border-radius: 5px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 10s ease;
}

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

.hero-text {
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  transform: translateY(0);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero:hover .hero-text {
  transform: translateY(-10px);
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Sections */
section {
  margin: 60px 0;
  padding: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

section ul {
  margin-left: 25px;
  margin-bottom: 25px;
}

section li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 10px;
}

#home, #about {
  position: relative;
  overflow: hidden;
}

#home::before, #about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* Team Section */
.team-section {
  text-align: center;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.team-member {
  width: 280px;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-color);
}

.team-member:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 5px 15px rgba(255, 31, 117, 0.2);
  margin-bottom: 20px;
  transition: var(--transition);
}

.team-member:hover img {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.team-member h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.team-member p {
  font-weight: 500;
  color: var(--secondary-color);
  opacity: 0.8;
}

/* Success Stories */
.team-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.team-item {
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.team-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.team-item:hover .team-img {
  transform: scale(1.05);
}

.team-description {
  padding: 30px;
}

.team-description strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Carousel */
.carousel-container {
  position: relative;
  margin: 60px 0;
  overflow: hidden;
}

.carousel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-item {
  display: none;
  padding: 0;
  background-color: white;
  border-radius: var(--border-radius);
}

.event-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-item:hover .event-img {
  transform: scale(1.05);
}

.event-text {
  padding: 30px;
}

.event-text strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev:hover, .next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 31, 117, 0.3);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0 40px;
  margin-top: 80px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-color);
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-container img {
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-nav {
  margin: 25px 0;
}

.footer-nav a {
  color: var(--light-color);
  margin: 0 15px;
  padding: 5px 0;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.footer-nav a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-links img {
  width: 20px;
  height: 20px;
  margin: 0;
  filter: brightness(0) invert(1);
}

/* Certificate Verification Page */
.certificate-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 50px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.input-container {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 40px auto;
}

#certificateID {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 16px;
  transition: var(--transition);
}

#certificateID:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 31, 117, 0.1);
}

.error-message {
  color: #e74c3c;
  margin: 20px 0;
  font-weight: 600;
  padding: 10px 20px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 30px;
  display: inline-block;
}

.certificate-card {
  margin-top: 40px;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 31, 117, 0.1);
}

.certificate-img {
  max-width: 100%;
  margin-top: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 5px solid white;
}

/* Contact Page */
.contact-form {
  max-width: 650px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 31, 117, 0.1);
}

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

.contact-form button {
  align-self: flex-start;
  padding: 15px 30px;
}

.contact-info {
  margin-top: 60px;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-color);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
}

/* Terms and Privacy Pages */
.container h2 {
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-top: 60px;
}

.container h2:first-of-type {
  margin-top: 20px;
}

.container h2::after {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  section {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 15px;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  .nav-links {
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero-text {
    padding: 30px;
    max-width: 90%;
  }
  
  .hero-text h1 {
    font-size: 2.4rem;
  }
  
  .team-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .team-img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  
  .input-container {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .certificate-container,
  .contact-form {
    padding: 30px 20px;
  }
  
  .prev, .next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .team-member {
    width: 100%;
    padding: 20px;
  }
  
  section {
    padding: 25px 15px;
  }
}

/* إضافات أخرى لتحسين المظهر */
::selection {
  background-color: var(--primary-color);
  color: white;
}

:focus {
  outline: 3px solid rgba(255, 31, 117, 0.3);
  outline-offset: 2px;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 99;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
}

/* إضافة بعض التحسينات على قسم achievements */
#achievements li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  transition: var(--transition);
}

#achievements li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

#achievements li:hover {
  transform: translateX(5px);
}