/* Modern Reset *
/* Header Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

:root {
  --primary: #222e40;
  --primary-dark: #222e40;
  --secondary: #222e40;
  --text-dark: #222e40;
  --text-light: #64748b;
  --background: #f4f7fa;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body {
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Shared Navbar is styled via css/navbar.css */

.hero-section {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  flex-wrap: wrap;
  background-color: #26365a;
  background: url("../images/about_comany.webp") center center/cover no-repeat;
  height: 90vh;
}

.hero-content {
  flex: 1 1 50%;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: white;
}

.hero-content h1 span {
  color: #222e40;
}

.hero-content p {
  font-size: 16px;
  color: white;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #222e40;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(34, 46, 64, 0.22);
}

.btn-primary:hover {
  background-color: #222e40;
}

.btn-secondary {
  border: 2px solid #222e40;
  color: #222e40;
  background-color: white;
}

.btn-secondary:hover {
  background-color: #222e40;
  color: #fff;
}

.hero-image {
  flex: 1 1 40%;
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: 25rem;
  border-radius: 20px;
}

.badge {
  position: absolute;
  background: white;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  width: 120px;
}

.badge strong {
  font-size: 16px;
  color: #1e3a8a;
}

.badge.top-left {
  top: 10%;
  left: 15%;
}

.badge.top-right {
  top: 10%;
  right: -15%;
}

.badge.bottom {
  bottom: 10%;
  left: 25%;
  transform: translateX(-50%);
}


.tagline {
  font-size: 1.1rem;
  letter-spacing: 3px;
  opacity: 0.9;
}

/* ==========================================================================
   Our Gallery Section & Scroll Dispersion Grid ("3 in a row")
   ========================================================================== */

/* Outer Scroll Runway */
.gallery-scroll-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--background);
  padding-bottom: 3rem;
}

/* Sticky Stage during dispersion */
.gallery-sticky-stage {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

/* Gallery Container */
.gallery-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

/* Header */
.gallery-header-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.2rem;
}

.gallery-main-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
  font-weight: 700 !important;
  color: #222e40 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.gallery-main-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem) !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 auto !important;
}

/* Grid Wrapper to keep origin coordinates stable */
.gallery-grid-stage {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* 3-Column Grid Layout ("in a row of three will be present") */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0 1.2rem;
  position: relative;
  box-sizing: border-box;
}

/* Each Gallery Item Card */
.gallery-item {
  position: relative;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #222e40;
  box-shadow: 0 8px 24px -4px rgba(15, 28, 63, 0.08), 0 2px 6px -1px rgba(15, 28, 63, 0.04);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px -6px rgba(15, 28, 63, 0.18);
  border-color: #222e40;
}

.gallery-item-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  position: relative;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.035);
}

.gallery-item-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  flex-grow: 1;
}

.gallery-item-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.gallery-item-desc {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Responsive Grid Breakpoints */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0.5rem 0 1.2rem;
  }
}

@media (max-width: 600px) {
  .gallery-container {
    padding: 1.8rem 1rem 1.2rem;
  }

  .gallery-header-wrap {
    margin-bottom: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0.5rem 0 1rem;
  }

  .gallery-item-image {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .gallery-item-info {
    padding: 14px 16px 16px;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 26, 0.94);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000000 !important; /* Above all site elements including fixed navbar (99999) */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  box-sizing: border-box;
}

.modal.open {
  display: flex;
  opacity: 1;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Modal Smooth Image Slide Transitions */
.modal-content img.slide-out-left {
  animation: modalSlideOutLeft 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-content img.slide-in-right {
  animation: modalSlideInRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content img.slide-out-right {
  animation: modalSlideOutRight 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-content img.slide-in-left {
  animation: modalSlideInLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideOutLeft {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0) scale(0.96);
  }
}

@keyframes modalSlideInRight {
  0% {
    opacity: 0;
    transform: translate3d(40px, 0, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes modalSlideOutRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(40px, 0, 0) scale(0.96);
  }
}

@keyframes modalSlideInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 1000005 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: #222e40;
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.modal-close:active {
  transform: scale(0.92);
}

.modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 clamp(1rem, 3.5vw, 2.5rem);
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1004;
}

.modal-prev,
.modal-next {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Footer Section */

.footer {
  background: #222e40;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  padding: 40px 0 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-width: 160px;
  max-width: 280px;
  flex: 1;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: orangered;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-col:first-child {
  padding-right: 30px;
}

.footer-col p {
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 14px;
}

.footer-socials {
  margin-top: 10px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 18px;

  padding: 8px;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

/* Newsletter */
.newsletter-col {
  max-width: 280px;
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 280px;
  margin-top: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 3px 0 0 3px;
  outline: none;
  font-size: 14px;
}

.newsletter-form button {
  padding: 10px 15px;
  background: #222e40;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 0 3px 3px 0;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-top: 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  .footer-col {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    border-radius: 3px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 3px;
  }
}

@media screen and (max-width: 1165px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-col {
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-socials {
    justify-content: center;
    margin-top: 10px;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: none;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/*contact us button footer*/
.btn {
  padding: 12px 26px;
  background-color: #222e40;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  display: inline-block;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(34, 46, 64, 0.22);
}

.btn:hover {
  background-color: #18212e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 46, 64, 0.3);
}

@media (min-width: 2560px) {
  .hero-section {
    height: 60vh;
  }
}

.contact-btn:hover {
  background-color: #18212e;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .award-image {
    height: 120px;
  }

  .award-content h3 {
    font-size: 1rem;
  }

  .footer-col {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .hero-section {
    padding: 40px 5% 20px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  section {
    padding: 30px 10px;
  }

}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    max-width: 540px;
    padding: 0 15px;
  }

  .hero-section {
    padding: 60px 5% 30px;
    margin-top: 60px;
    /* Adjust for fixed navbar */
  }

  .hero-content h1 {
    font-size: 30px;
  }

  section {
    padding: 40px 15px;
  }

}



@media screen and (max-width: 992px) {


  .hero-section {
    height: auto;
    padding: 80px 5% 40px;
    flex-direction: column;
    text-align: center;
    /* Adjust for fixed navbar */
  }

  .hero-content {
    flex: 1 1 100%;
    margin-bottom: 40px;
  }

  .hero-image {
    flex: 1 1 100%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }


}


/* Medium screens (tablets) */
@media (max-width: 991px) {
  .hero-section {

    text-align: center;
    padding: 40px 5%;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 20px;
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .hero-section {
    padding: 30px 4%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-image img {
    max-height: 18rem;
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image img {
    max-height: 30rem;
  }
}

.videos {
  padding: 40px 20px;
  text-align: center;
}

.video-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.video-item {
  flex: 0 0 auto;
  width: 30%;
  /* responsive width */
  min-width: 250px;
  /* minimum size so video visible */
  height: auto;
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  /* maintain video ratio */
  border-radius: 8px;
}

/* Hide scrollbar */
.video-slider::-webkit-scrollbar {
  display: none;
}

/* ✅ Media Queries for smaller screens */
@media (max-width: 1024px) {
  .video-item {
    width: 45%;
    /* 2 videos per row on tablets */
  }
}

@media (max-width: 768px) {
  .video-item {
    width: 100%;
    /* 1 video per row on mobile */
  }
}

.video-carousel {
  padding: 20px;
  text-align: center;
}

.video-carousel h2 {
  margin-bottom: 15px;
  font-size: 24px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.video-item {
  min-width: 300px;
  max-width: 300px;
  width: 300px;
  height: 400px;
  aspect-ratio: 3 / 4;
  margin: 0 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  background-color: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.22);
}

.video-item video {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background-color: #000;
  display: block;
}

.video-item video {
  width: 100%;
  max-width: 400px;
  /* limit max width */
  height: 220px;
  /* fixed height for uniform look */
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background-color: #000;
  /* force black background */
  object-fit: cover;
  /* crop/fit video nicely */
}
@media (max-width: 600px) {
  .video-item {
    min-width: clamp(260px, 82vw, 320px) !important;
    margin: 0 8px !important;
  }
  .video-item video {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile Responsive Modal (Cut/Close Button & Touch Layout)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .modal {
    padding: 12px !important;
  }

  .modal-content {
    max-width: 96% !important;
    max-height: 84vh !important;
  }

  .modal-content img {
    max-width: 100% !important;
    max-height: 78vh !important;
    border-radius: 10px !important;
  }

  /* High-visibility circular Cut/Close button for mobile */
  .modal-close {
    top: 16px !important;
    right: 16px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 1.25rem !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65) !important;
    z-index: 1000010 !important;
    -webkit-tap-highlight-color: transparent;
  }

  .modal-nav {
    padding: 0 8px !important;
  }

  .modal-prev,
  .modal-next {
    width: 42px !important;
    height: 42px !important;
    font-size: 1rem !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
  }
}
