/* gallery.css - Specific styles for gallery.html */

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Montserrat', sans-serif;
      line-height: 1.6;
      color: #fff;
      background: #0a0a0a;
      overflow-x: hidden;
    }

    /* Navigation - Matching armin-hassanpour-updated.html */
    .nav2 {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: transparent;
      z-index: 1000;
      padding: 1rem 2rem;
      transition: all 0.3s ease;
    }

    .nav2.scrolled {
      background: rgba(10, 10, 10, 0.98);
      box-shadow: 0 2px 10px rgba(0,0,0,0.5);
      padding: 0.5rem 2rem;
    }

    .nav2 .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
    }

    .logo-section {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      z-index: 1001;
    }

    .logo-section img {
      width: 60px;
      height: 60px;
      transition: all 0.3s ease;
    }

    .nav2.scrolled .logo-section img {
      width: 50px;
      height: 50px;
    }

    .logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.5rem;
      color: #d9dc34;
      font-weight: bold;
      text-decoration: none;
      transition: font-size 0.3s ease;
    }

    .nav2.scrolled .logo-text {
      font-size: 1.3rem;
    }

    .menu-section {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .menu-section ul {
      list-style: none;
      display: flex;
      gap: 2rem;
      margin: 0;
      padding: 0;
    }

    .menu-section a {
      color: white;
      text-decoration: none;
      font-size: 1.1rem;
      font-weight: 600;
      position: relative;
      transition: color 0.3s;
      white-space: nowrap;
    }

    .menu-section a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: #d9dc34;
      transition: width 0.3s ease;
    }

    .menu-section a:hover::after {
      width: 100%;
    }

    .flags-section {
      display: flex;
      gap: 0.8rem;
      align-items: center;
    }

    .flag {
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      border-radius: 3px;
    }

    .flag:hover {
      transform: scale(1.1);
      border-color: rgba(255,255,255,0.3);
    }

    .flag.active {
      border-color: #d9dc34;
      box-shadow: 0 0 10px rgba(217, 220, 52, 0.5);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      z-index: 1001;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background: white;
      margin: 3px 0;
      transition: all 0.3s ease;
      border-radius: 3px;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: rgba(10, 10, 10, 0.98);
      z-index: 999;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: right 0.4s ease;
    }

    .mobile-menu.active {
      right: 0;
    }

    .mobile-menu ul {
      list-style: none;
      text-align: center;
      padding: 0;
    }

    .mobile-menu ul li {
      margin: 2rem 0;
    }

    .mobile-menu a {
      color: white;
      text-decoration: none;
      font-size: 2rem;
      font-weight: 600;
      font-family: 'Bebas Neue', sans-serif;
      transition: color 0.3s;
    }

    .mobile-menu a:hover {
      color: #d9dc34;
    }

    .mobile-flags {
      display: flex;
      gap: 1.5rem;
      margin-top: 3rem;
    }

    /* Hero Video Section */
    .hero-video-section { position: relative; height: 100vh; overflow: hidden; background: #000; }
    .jarallax { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
    .video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); display: flex; align-items: center; justify-content: center; z-index: 2; }
    .hero-content { text-align: center; color: white; z-index: 3; padding: 0 2rem; }
    .hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 5px; text-shadow: 0 5px 30px rgba(0,0,0,0.8); }
    .hero-title .highlight { color: #d9dc34; }
    .hero-subtitle { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: 2rem; color: #b8b8b8; }



    /* Video Gallery Section */
    .gallery-section {
      padding: 5rem 2rem;
      background: #0a0a0a;
    }

    .gallery-container {
      max-width: 1400px;
      margin: 0 auto;
    }

    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.5rem, 5vw, 3.5rem);
      text-align: center;
      margin-bottom: 3rem;
      color: white;
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .section-title .highlight {
      color: #d9dc34;
    }

    /* Video Grid - Compact Design */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .video-card {
      position: relative;
      background: #1a1a1a;
      border-radius: 15px;
      overflow: hidden;
      transition: all 0.3s ease;
      border: 1px solid rgba(217, 220, 52, 0.1);
      cursor: pointer;
    }

    .video-card:hover {
      transform: translateY(-5px);
      border-color: rgba(217, 220, 52, 0.5);
      box-shadow: 0 10px 30px rgba(217, 220, 52, 0.2);
    }

    .video-thumbnail {
      position: relative;
      width: 100%;
      height: 250px;
      overflow: hidden;
    }

    .video-thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-thumbnail video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .video-card:hover .play-overlay {
      background: rgba(0,0,0,0.2);
    }

    .play-button {
      width: 70px;
      height: 70px;
      background: rgba(217, 220, 52, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .play-button::after {
      content: '';
      width: 0;
      height: 0;
      border-left: 20px solid #0a0a0a;
      border-top: 12px solid transparent;
      border-bottom: 12px solid transparent;
      margin-left: 5px;
    }

    .video-card:hover .play-button {
      transform: scale(1.1);
      background: #d9dc34;
    }

    .video-info {
      padding: 1.5rem;
    }

    .video-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.5rem;
      color: white;
      margin-bottom: 0.5rem;
      letter-spacing: 1px;
    }

    .video-description {
      color: #888;
      font-size: 0.9rem;
      line-height: 1.6;
    }

    .video-date {
      color: #d9dc34;
      font-size: 0.85rem;
      margin-top: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Video Modal */
    .video-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.95);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .video-modal.active {
      display: flex;
    }

    .modal-content {
      position: relative;
      width: 100%;
      max-width: 1200px;
      /*background: #1a1a1a;
      border-radius: 15px;
      overflow: hidden;*/
    }

    .modal-video {
      width: 100%;
      height: auto;
    }

    .modal-iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: none;
      border-radius: 10px;
    }
    .close-modal {
      position: absolute;
      top: -50px;
      right: 0;
      width: 40px;
      height: 40px;
      background: #d9dc34;
      border: none;
      border-radius: 50%;
      color: #0a0a0a;
      font-size: 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .close-modal:hover {
      transform: scale(1.1);
      background: #c5c82f;
    }

    /* Footer */
    footer {
      background: #050505;
      color: #888;
      padding: 3rem 2rem;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.05);
    }

    footer img {
      width: 100px;
      margin-bottom: 1.5rem;
      transition: transform 0.3s ease;
    }

    footer img:hover {
      transform: scale(1.1);
    }

    footer p {
      margin-bottom: 1rem;
      font-size: clamp(0.9rem, 2vw, 1rem);
    }

    footer a {
      color: #d9dc34;
      text-decoration: none;
      transition: all 0.3s ease;
    }

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

    .footer-links {
      margin-top: 1.5rem;
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      font-weight: 600;
      padding: 0.5rem 1.5rem;
      border: 1px solid #d9dc34;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .footer-links a:hover {
      background: #d9dc34;
      color: #0a0a0a;
      text-decoration: none;
    }
   

    /* Back to Top Button */
    #backToTop {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 55px;
      height: 55px;
      background: #d9dc34;
      color: #0a0a0a;
      border: none;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
      box-shadow: 0 5px 20px rgba(217, 220, 52, 0.4);
      font-weight: bold;
    }

    #backToTop.visible {
      opacity: 1;
      visibility: visible;
    }

    #backToTop:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(217, 220, 52, 0.6);
    }

    #backToTop::before {
      content: '↑';
    }

    .jarallax {
        image-rendering: -webkit-optimize-contrast;   /* helps Chrome */
        image-rendering: crisp-edges;                 /* helps Firefox */
    }

    .jarallax-video {
        filter: contrast(1.05) saturate(1.1);         /* slight sharpen + pop – adjust to taste */
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      }
    }

    @media (max-width: 768px) {
      .nav2 {
        padding: 1rem;
      }

      .nav2.scrolled {
        padding: 0.75rem 1rem;
      }

      .menu-section,
      .flags-section {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .logo-section img {
        width: 50px;
        height: 50px;
      }

      .logo-text {
        font-size: 1.2rem;
      }

      .gallery-section {
        padding: 4rem 1rem;
      }

      .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .video-thumbnail {
        height: 200px;
      }
    }
