/*
  Copyright (c) 2025 Mohammed Fahir
  All rights reserved.
  This file is part of Magic Selection website.
  Mohammed Fahir.
*/
/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #0e0e0e;
  color: white;
}
.container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}
.main-player {
  flex: 2;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.main-player iframe {
  width: 100%;
  height: 500px;
  border: none;
}
.playlist {
  flex: 1;
  background: #1e1e1e;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 500px;
  padding: 10px;
}
.playlist-header {
  text-align: left;
  margin-bottom: 15px;
}
.playlist-header h2 {
  font-size: 18px;
  color: white;
  margin-bottom: 5px;
}
.playlist-header p {
  font-size: 14px;
  color: #ccc;
}
.video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}
.video-item:hover {
  background: #333;
}
.video-item img {
  width: 100px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.video-info {
  flex: 1;
}
.video-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.video-info p {
  font-size: 12px;
  color: #aaa;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .main-player iframe {
    height: 250px;
  }
}












.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;
  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;
}

/* 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%;
  }

  .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;
  }
}

.site-main {

}

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;
  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;
  margin-bottom: 100px;
  }
  .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;
}

/* 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;
}
body {
    background-image: url('img/background/desktop-bg.jpeg');
}
}

@media (max-width: 480px) {

  .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;
}


