/* ========================================
   Pink Moments Morocco - Main Stylesheet
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #FF69B4;
  --dark-pink: #C2185B;
  --light-pink: #FCE4EC;
  --white: #FFFFFF;
  --dark-gray: #333333;
  --light-gray: #F5F5F5;
  --text-color: #333333;
  --border-color: #E0E0E0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

/* ========================================
   Navigation Bar
   ======================================== */

nav {
  background-color: #000000;
  opacity: 60%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  color: var(--primary-pink);
}

.logo::before {
  content: "";
  font-size: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* ========================================
   Dropdown Menu
   ======================================== */

.dropdown {
  position: relative;
}

.dropdown > a {
  position: relative;
  padding-right: 1.5rem;
}

.dropdown > a::after {
  content: '▼';
  position: absolute;
  right: 0.5rem;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(-180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dark-pink);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 2000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.8rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.dropdown-menu a:first-child {
  border-radius: 4px 4px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 4px 4px;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  padding-left: 2rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  color: var(--white);
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../assets/images/bg.jpg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
  position: relative;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInUp 0.8s ease;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 10;
  position: relative;
  padding-bottom: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-pink);
}

/* ========================================
   Container & Sections
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 2rem;
}

section h2 {
  font-size: 30px;
  color: var(--primary-pink);
  margin-bottom: 2rem;
  text-align: center;
}

/* ========================================
   About Section
   ======================================== */

.about {
  background-color: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--dark-pink);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  width: 100%;
  height: 60vh;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}

.about-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================
   Mission & Vision
   ======================================== */

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.mission-card, .vision-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--primary-pink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mission-card h3, .vision-card h3 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* ========================================
   Events Section
   ======================================== */

.events {
  background-color: var(--white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background-color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--light-pink) 0%, var(--primary-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.event-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-date {
  color: var(--primary-pink);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-title {
  font-size: 1.3rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.event-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: auto;
}

.event-location {
  color: var(--primary-pink);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-event {
  width: 100%;
  background-color: var(--primary-pink);
  color: var(--white);
  padding: 0.7rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.btn-event:hover {
  background-color: var(--dark-pink);
}

/* ========================================
   Registration Section
   ======================================== */

.registration {
  background: linear-gradient(135deg, var(--light-pink) 0%, rgba(233, 30, 99, 0.1) 100%);
}

.registration-container {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary-pink);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--dark-pink);
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery {
  background-color: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 250px;
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-pink) 0%, var(--primary-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

.gallery-overlay-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ========================================
   Modal
   ======================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, var(--light-pink) 0%, var(--primary-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 300px;
}

.modal-info {
  padding: 2rem;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.modal-description {
  color: #666;
  line-height: 1.8;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ========================================
   Statistics Section
   ======================================== */

.statistics {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
  color: var(--white);
}

.statistics h2 {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-pink);
  min-width: 30px;
}

.contact-details h3 {
  color: var(--dark-gray);
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: #666;
  margin: 0;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
}

.contact-map {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ========================================
   Footer
   ======================================== */

footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-pink);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-pink);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  transition: background-color 0.3s ease;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
}

.social-links a.facebook {
  background-color: transparent;
  padding: 0;
  overflow: hidden;
}

.social-links a.facebook img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.social-links a.facebook:hover {
  opacity: 0.8;
}

.social-links a.instagram {
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.social-links a.instagram img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.social-links a.instagram:hover {
  opacity: 0.8;
}

.social-links a.whatsapp {
  background-color: transparent;
  padding: 0;
  overflow: hidden;
}

.social-links a.whatsapp img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.social-links a.whatsapp:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 2rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #999;
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-icon {
    display: block;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* ========================================
   Page Hero Section
   ======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Content Section
   ======================================== */

.content-section {
  padding: 3rem 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.content-block {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-pink);
}

.content-block h2,
.content-block h3 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.content-block p {
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

.content-block ul {
  margin-left: 1.5rem;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 14px;
}

/* ========================================
   Registration Form
   ======================================== */

.registration-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.registration-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-pink);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: #666;
}

/* ========================================
   Alert Messages
   ======================================== */

.alert {
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.alert-success {
  background-color: #c8e6c9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.alert-success h3 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

/* ========================================
   RTL Support
   ======================================== */

html[dir="rtl"] .content-block,
html[dir="rtl"] .form-group {
  text-align: right;
}

html[dir="rtl"] .checkbox-group label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .content-block ul {
  margin-left: 0;
  margin-right: 1.5rem;
}
