@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
    font-family: 'Ubuntu', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
a {
    color: white;
    text-decoration: none;
}
body {
    background-image: linear-gradient(to right, #01022d, #000);
    min-height: 100vh;
}
.page {
    background-image:
        linear-gradient(to right, #01022de5 15%, #00000088),
        url('ph/die.jpeg');
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page:hover {
    background-image: 
        linear-gradient(to right, #01022de5 10%, transparent),
        url('ph/die.jpeg');
    background-repeat: no-repeat;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
}
.logo {
    font-size: 50px;
    text-transform: uppercase;
}
.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 0;
    position: relative;
}
.hamburger::before {
    content: '☰';
    display: block;
    font-size: 20px;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

ul {
    width: 60%;
    font-size: large;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
}
@media (max-width: 600px) {
    .hamburger {
        display: block;
    }
    .hamburger span {
        display: none;
    }
    ul {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 10px 0;
    }
    ul.open {
        display: flex;
    }
    ul li {
        margin: 10px 0;
    }
    .logo {
        font-size: 30px;
    }
    .two {
        width: 95%;
        padding: 20px;
    }
    .two h2 {
        font-size: 8vw;
    }
    .two button {
        font-size: 16px;
    }
}
@media (min-width: 601px) {
    .hamburger span {
        display: block;
    }
    .hamburger::before {
        display: none;
    }
}
ul a {
    border-bottom: 2px solid transparent;
}
ul a:hover {
    border-bottom-color: white;
    color: white;
}
.two {
    color: white;
    width: 90%;
    max-width: 600px;
    margin-top: 50px;
    padding: 30px;
}
.two h2 {
    font-size: 10vw;
    text-transform: uppercase;
}
.two p {
    letter-spacing: 1px;
    width: 350px;
    padding: 20px 0;
}
.two button {
    font-size: 2vw;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 2px solid;
    cursor: pointer;
}
.two button:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}
footer{
  padding: 50px;
    background-color:#2e2e2e94
    
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.footer-logo {
  font-weight: 700;
  font-size: 70px;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-desc {
  color: #cfe4df;
  line-height: 1.6;
  font-size: 20px;
  max-width: 420px;
  margin-bottom: 22px;
}
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(212,231,226,0.18);
  color: #d4e7e2;
  text-decoration: none;
  font-size: 14px;
  padding: 0 8px;
  background: rgba(255,255,255,0.01);
}
.social-icons a:hover {
  border-color: rgba(169, 171, 155, 0.95);
  color: #0f3e3c;
  background: #2c54ceb4;
}
.back-to-top { margin-top: 18px; }
.back-to-top .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(212,231,226,0.22);
  color: #e7f6f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  background: transparent;
}
.back-to-top .back-btn:hover {
  background: #f6c15b;
  color: #0f3e3c;
  border-color: #f6c15b;
}
.footer-title {
  font-weight: 600;
  color: #e7f6f2;
  margin-bottom: 14px;
  font-size: 25px;
}
.footer-links a {
  display: block;
  color: #cfe4df;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color .18s ease, transform .12s ease;
}
.footer-links a:hover {
  color: #f6c15b;
  transform: translateX(3px);
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer { padding: 36px 28px; }
  .footer-desc { max-width: none; }
  .footer::after { bottom: -8px; height: 16px; }
}
@media (max-width: 480px) {
  .footer { padding: 28px 18px; border-radius: 10px; }
  .social-icons a { min-width: 32px; height: 32px; font-size: 13px; }
  .footer-logo { font-size: 20px; }
  .two h2 {
    font-size: 6vw;
  }
  .two button {
    font-size: 14px;
  }
}


.copyright{
    border: 1px solid black ;
    background-color: #928772;
    color: rgb(53, 51, 51);
    text-align: center;
    width: 100%;
    padding: 5px 0;
    bottom: 0;
    left: 0;
}














.gallery {
  display: flex;        /* ترتيب العناصر بجانب بعض */
  width: 100%;
  height: 600px;        /* ارتفاع المعرض */
  gap: 0px;   
       /* مسافة صغيرة بين الصور */
}

.card {
  flex: 1;              /* الحالة الطبيعية: الكل بنفس العرض الصغير */
  border-radius: 10px;  /* الحواف الدائرية (مثل الفيديو) */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid #041547f9;
  
  /* السر في النعومة هو الـ transition */
  transition: flex 0.7s ease-in-out; 
  
  /* تنسيق النص */
  display: flex;
  align-items: flex-end; /* النص في الأسفل */
  padding: 20px;
  overflow: hidden;
}

.card h3 {
  opacity: 0;           /* النص مخفي في البداية */
  color: white;
  transition: opacity 0.3s ease;
  white-space: nowrap;  /* منع النص من التكسر */
}

/* --- الحركة عند وضع الماوس (HOVER) --- */
.card:hover {
  flex: 10;              /* التوسع: تصبح أكبر بـ 5 مرات من الباقين */
}

.card:hover h3 {
  opacity: 1;           /* إظهار النص عند التوسع */
}