/* ============================= */
/* RESET */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --section: #0c0c0c;
  --accent: #ff6600;
  --text-muted: #bdbdbd;
  --border: #1a1a1a;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: white;
  line-height: 1.6;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding: 120px 8%;
}

.hero-image img {
  width: 520px;
  max-width: 100%;
  border-radius: 24px;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 58px;
  margin-bottom: 15px;
}

.hero-text span {
  color: var(--accent);
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 18px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: black;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.section {
  padding: 100px 8%;
  background: var(--section);
  text-align: center;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ============================= */
/* PROJECT GRID */
/* ============================= */

.grid {
  display: grid;
  gap: 40px;
  margin-top: 60px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;   /* لأن الفيديو عمودي */
  max-width: 380px;       /* يخليها ما تكبر أكثر من اللازم */
  margin: 0 auto;         /* يخليها بالوسط */
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
}

/* Sound Button */

.sound-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.sound-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ============================= */
/* POSTS GRID */
/* ============================= */

.posts-grid {
  display: grid;
  gap: 25px;
  margin-top: 50px;
  grid-template-columns: repeat(3, 1fr);
}

.posts-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  transition: 0.3s ease;
}

.posts-grid img:hover {
  transform: scale(1.03);
}

.post-large {
  grid-column: span 2;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  text-align: center;
  padding: 50px 0;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */

@media (max-width: 1000px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
    gap: 50px;
  }

  .hero-image img {
    width: 85%;
    max-width: 380px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .section {
    padding: 70px 20px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-large {
    grid-column: span 1;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

}

