@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --primary: #00274c;
  --accent: #0055a5;
  --primary-light: #66b2ff;
  --primary-lighter: #b3d9ff;
  --footer-bg: #003366;
  --footer-text: #ffffff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0055a5, #66b2ff);
  background-size: cover;
  color: var(--primary);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  z-index: -1;
}

header {
  text-align: center;
  padding: 2rem;
  animation: fadeIn 1s ease-in-out;
}

header .cover {
  height: 180px;
  object-fit: cover;
  max-width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 85, 165, 0.3);
  transition: transform 0.3s ease;
}

header .cover:hover {
  transform: scale(1.03);
}

.join-general, .societies, .profile {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 85, 165, 0.2);
  backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease-out;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.card {
  border: 1px solid var(--primary);
  padding: 1rem;
  flex: 1 1 240px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 85, 165, 0.15);
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.07);
  border-image: linear-gradient(45deg, var(--accent), var(--primary-light)) 1;
  box-shadow: 0 12px 30px rgba(102, 178, 255, 0.6);
}

.card img {
  max-width: 100px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

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

.join-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, var(--accent), var(--primary-light));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
  position: relative;
  z-index: 2; /* تأكد أن الزر فوق الـ onclick */
}

.join-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(102, 178, 255, 0.5);
  transform: scale(1.05);
}

.btn-primary {
  display: block;
  width: fit-content;
  margin: 1rem auto;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(102, 178, 255, 0.5);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.98);
}

footer {
  background: linear-gradient(180deg, var(--footer-bg), #001f33);
  background-size: 200% 200%;
  animation: wave 5s ease-in-out infinite;
  color: var(--footer-text);
  padding: 3rem 1rem 1rem;
  text-align: center;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: radial-gradient(circle at center, var(--primary-light), transparent);
}

footer h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cards {
    flex-direction: column;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%;
    /* تغيير لون البطاقة للسكني عند hover */
.card:hover {
  background-color: #f0f0f0;
}

/* أنيميشن دخول لكل بطاقة */
.card {
  animation: fadeInUp 0.8s ease-out;
}

/* تعريف أنيميشن fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

