/*
  Copyright (c) 2025 Mohammed Fahir
  All rights reserved.
  This file is part of Magic Selection website.
  Mohammed Fahir.
*/
.logo-header {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #ffffff00;
}

.logo img {
  height: 120px; /* Adjust based on your logo size */
}
.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.navbar a {
  text-decoration: none;
  color: #3272a7;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color: #005bb5;
}
.navbar a.active {
  color: #005bb5;
}

.nav-toggle {
  display: block; /* visible by default */
}

.tab-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.tab-menu .tab {
  text-decoration: none;
  color: white;
  background-color: #3272a7;
  font-weight: 600;
  font-size: 16px;
  padding: 5px 15px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}
.tab-menu .tab.active i {
  color: black;
}
.tab-menu .tab i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}
.tab-menu .tab:hover i {
  transform: scale(1.1);
}


@media screen and (min-width: 1024px) {
  .nav-toggle {
    display: none; /* hide on desktop */
  }
}

/* Reset & Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* Container for consistent max-width */
.container {
  /* max-width: 1024px; */
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #f8f9fc00;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: #f8f9fc00;
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

.nav {
  display: flex;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav__link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: 2px solid #3272a7;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background-color: rgba(0, 115, 230, 0.1);
  transform: scale(1.05);
}

.nav-icon {
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* Animated icon when menu is open */
.nav-toggle.active {
  background-color: #3272a7;
  border-color: #3272a7;
}

.nav-toggle.active .nav-icon {
  fill: white;
  transform: rotate(90deg);
}

.nav-toggle.active:hover {
  background-color: #005bb8;
  border-color: #005bb8;
}

.nav--visible {
  display: block;
}

.three-banners-responsive {
  width: 100%;
  max-width: 1024px;
  padding: 30px 0px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.scrolling-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.banner-track {
  display: flex;
  gap: 20px;
  animation: scrollBanners 10s linear infinite;
}

.banner-item {
  flex: 0 0 auto;
  width: 33.33vw;
  height: auto;
  object-fit: cover;
}

/* Animation keyframes */
@keyframes scrollBanners {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


.banner-item {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Desktop (≥768px) - 3 column grid */
@media (min-width: 768px) {
  .banner-wrapper {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .banner-item {
    width: calc(33.33% - 14px);
  }
}

/* Mobile (<768px) - Carousel style */
@media (max-width: 767px) {
  .banner-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }

  .banner-item {
    width: 40%;
    flex: 0 0 40%;
    scroll-snap-align: start;
  }
  .three-banners-responsive {
  width: 100%;
  padding: 30px;
  padding-top: 15px;
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}
  .banner-track {
  display: flex;
  gap: 10px;
  animation: scrollBanners 20s linear infinite;
}
}

/* Desktop images - show by default, hide on mobile */
.desktop-img {
  display: block;
}

.mobile-img {
  display: none;
}

.banner h1 span {
  color: #3272a7;
}

.highlight-projects {
  margin-top: 30px;
  background: #f0f8ff;
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  text-align: left;
  max-width: 600px;
}

.highlight-projects h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #3272a7;
}

.highlight-projects ul {
  margin: 0;
  padding-left: 20px;
}

/* Sections */
.Blogs, .projects, .contact {
  /* padding: 60px 20px; */
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

.Blogs h2, .projects h2, .contact h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.video {
  position: relative;
  max-width: 100%;
  margin-top: 20px;
}

.video img {
  width: 100%;
  border-radius: 10px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%23ffffff' stroke='%230073e6' stroke-width='4'/%3E%3Cpolygon points='40,30 40,70 70,50' fill='%230073e6'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
  cursor: pointer;
  border: none;
}

/* Projects */
.project-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-card {
  flex: 1 1 30%;
  background: #f0f4ff;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #3272a7;
  color: white;
  border: none;
  padding: 15px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #005bb5;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Ensure the header-top has relative positioning for mobile nav */
  .header-top {
    position: relative;
  }

  /* Mobile navigation positioning */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1000;
  }

  .nav--visible {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .header-top {
    flex-wrap: wrap;
    padding: 15px 20px;
    max-width: 100%;
  }

  .Blogs, .projects, .video-gallery {
    padding: 40px 20px;
  }

  .social-icons {
    display: none;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner::before,
  .banner::after {
    width: 150px;
  }

  /* Mobile Slider Styles */
  .slider-container {
    /* Mobile: 3:4 aspect ratio */
    aspect-ratio: 3/4;
  }

  /* Show mobile images, hide desktop images on mobile */
  .desktop-img {
    display: none;
  }

  .mobile-img {
    display: block;
  }

  .slide-content {
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

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

body {
  /* background-image: url('img/background/desktop-bg.jpeg'); */
  /* background-image: url('img/background/TABLET-bg.jpeg'); */
  background-image: url('img/background/Back_1_Expanded_16_92.jpg');
  background-repeat: no-repeat;
  background-position: top;
  background-attachment: initial;
  background-size: contain;
  width: 100%;
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 40px 20px; */
  font-family: 'Arial', sans-serif;
  background-color: #f4f6f900;
  color: #333;
  line-height: 1.6;
  margin-bottom: 100px;
}

@media (max-width: 768px) {
  body {
  background-image: url('img/background/mobile-bg-final.jpg');
  background-repeat: no-repeat;
  background-position: top;
  background-attachment: inherit;
  background-size: contain;
  width: 100%;
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 40px 20px; */
  font-family: 'Arial', sans-serif;
  background-color: #f4f6f900;
  color: #333;
  line-height: 1.6;
  margin-bottom: 100px;
  }
  .video-gallery h2 {
    margin-bottom: 1px !important;
  }
  .tab-menu {
    gap: 12px !important;
    margin-top: -12px !important;
  }
  .logo img {
    height: 75px !important;
}
h1 {
    font-size: 25px !important;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: -30px;
}
}

.container {
  /* max-width: 1200px; */
  margin: 40px auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #111;
}

.intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #555;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 140%; /* 5:7 aspect ratio to match poster proportions */
  overflow: hidden;
}

.project-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.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;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #333;
}

.project-info p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 12px 0;
}

.project-category {
  display: inline-block;
  background: #3272a7;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 80%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
}

#video-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.video-gallery {
  /* padding: 2rem 0; */
}

.video-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #0056b3 transparent;
}

.video-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.video-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.video-scroll-container::-webkit-scrollbar-thumb {
  background-color: #0056b3;
  border-radius: 6px;
}

.video-player {
  flex: 0 0 280px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.video-thumbnail:hover img {
  transform: scale(1.05);
}

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

.video-thumbnail:hover .play-overlay {
  opacity: 1;
}

.video-info {
  margin-top: 0.75rem;
}

.video-info h3 {
  font-size: 1rem;
  margin: 0;
  color: #1a1a1a;
}

.video-info p {
  font-size: 0.875rem;
  color: #555;
  margin: 0.25rem 0 0;
}

/* Video Gallery Section */
.video-gallery {
  padding-bottom: 30px;
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

.video-gallery h2 {
  font-size: 25px;
  margin-bottom: 30px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
}

.video-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* padding: 20px 0; */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.video-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.video-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.video-scroll-container::-webkit-scrollbar-thumb {
  background: #3272a7;
  border-radius: 4px;
}

.video-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #005bb5;
}

.video-player {
  flex: 0 0 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-player:hover .video-thumbnail img {
  transform: scale(1.05);
}

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

.video-player:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.video-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

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

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

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-modal-iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Responsive Design for Video Gallery */
@media (max-width: 768px) {
  .video-gallery {
    padding: 10px 75px;
  }

  .video-scroll-container {
    gap: 15px;
    padding: 15px 0;
  }

  .video-player {
    flex: 0 0 240px;
  }

  .video-thumbnail {
    height: 160px;
  }

  .video-info {
    padding: 12px;
  }

  .video-info h3 {
    font-size: 14px;
  }

  .video-info p {
    font-size: 12px;
  }

  .video-modal-content {
    width: 95%;
  }

  .video-modal-iframe {
    height: 250px;
  }

  /* Mobile Project Grid Styles */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 2px;
  }

  .project-card {
    max-width: none;
    margin: 0;
  }

  .project-thumbnail {
    padding-bottom: 140%; /* Maintain poster proportions on mobile */
  }

  .project-info {
    padding: 15px;
  }

  .project-info h3 {
    font-size: 18px;
  }

  .project-info p {
    font-size: 13px;
  }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 767px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .logo img {
    height: 105px; /* Adjust based on your logo size */
  }
  .three-banners-responsive {
    max-width: 650px;
}
.logo-header {
    max-width: 760px;
}
.video-gallery {
    padding-bottom: 30px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
body {
    background-image: url('img/background/desktop-bg.jpeg');
}
.video-player {
    flex: 0 0 160px;
}
.video-thumbnail {
    height: 220px;
}
}

@media (max-width: 480px) {
  .video-player {
    flex: 0 0 120px;
  }

  .video-thumbnail {
    height: 180px;
  }

  .video-modal-iframe {
    height: 200px;
  }

  .banner h1 {
    font-size: 24px;
  }

  .banner::before,
  .banner::after {
    width: 120px;
  }

  .slide-content h2 {
    font-size: 50px;
  }
}

.wide-banner {
  padding: 10px 0px;
  width: 100%;
  height: auto;
  /* max-width: 1024px; */
  display: flex;
  flex-direction: column;
  align-items: center;     /* Centers children horizontally */
  justify-content: center; /* Vertically centers if height is set */
  margin: 0;           /* Centers the slider itself on the page */
  position: relative;
  overflow: hidden;       /* Optional: add some vertical padding */
  box-sizing: border-box;
}

.social-icons {
  padding: 10px 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.social-icons .icon {
  font-size: 24px;
  color: #3272a7;
  transition: color 0.3s ease;
}
.social-icons .icon:hover {
  color: #005bb5;
}
.social-icons .icon i {
  transition: transform 0.3s ease;
}
.social-icons .icon:hover i {
  transform: scale(1.1);
}
.social-icons .icon i {
  font-size: 24px;
  color: #3272a7;
  transition: color 0.3s ease;
}


