/* General Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Euromode', 'Segoe UI', Arial, sans-serif;
  background: #fdfdfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;  /* Hide scrollbar for Chrome, Safari, Opera */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2%;
}

/* Enhanced Responsive Breakpoints */
@media (max-width: 1400px) {
  .gallery-container {
    max-width: 1200px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .gallery-container {
    max-width: 1000px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 260px;
    gap: 18px;
  }
}

@media (max-width: 1000px) {
  .gallery-container {
    max-width: 900px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 240px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .gallery-container {
    max-width: 800px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 220px;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 12px;
    padding: 0 15px;
  }

  .gallery-wrapper {
    padding: 0 15px;
  }

  .gallery-item .overlay {
    font-size: 0.9em;
    padding: 8px 12px;
  }
}

@media (max-width: 700px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
    padding: 0 12px;
  }

  .gallery-wrapper {
    padding: 0 12px;
  }

  .gallery-item .overlay {
    font-size: 0.85em;
    padding: 7px 10px;
  }
}

@media (max-width: 600px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 160px;
    gap: 8px;
    padding: 0 10px;
  }

  .gallery-wrapper {
    padding: 0 10px;
  }

  .gallery-item .overlay {
    font-size: 0.8em;
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 140px;
    gap: 6px;
    padding: 0 8px;
  }

  .gallery-wrapper {
    padding: 0 8px;
  }

  .gallery-item .overlay {
    font-size: 0.75em;
    padding: 5px 6px;
  }
}

@media (max-width: 360px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: 120px;
    gap: 5px;
    padding: 0 6px;
  }

  .gallery-wrapper {
    padding: 0 6px;
  }

  .gallery-item .overlay {
    font-size: 0.7em;
    padding: 4px 5px;
  }
}

@media (max-width: 320px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: 100px;
    gap: 4px;
    padding: 0 5px;
  }

  .gallery-wrapper {
    padding: 0 5px;
  }

  .gallery-item .overlay {
    font-size: 0.65em;
    padding: 3px 4px;
  }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
  }
  
  .gallery-item .overlay {
    font-size: 0.8em;
    padding: 6px 8px;
  }
}

/* Ultra-wide Screen Support */
@media (min-width: 2000px) {
  .gallery-container {
    max-width: 1800px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 350px;
    gap: 25px;
  }
}

/* Navbar Styling */
.navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(12, 21, 93);
  padding: 15px 30px;
  gap: 15px;
}

.logo1 img {
  height: 30px;
  max-width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  font-size: 15px;
}

.nav-links a.active {
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover {
  color: #000080;
}

nav ul li {
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-size: 1.18em;
}

/* Search & Signup */
.search-signup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.search-icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.signup {
  background: #fff;
  color: #1A237E;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.signup:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Enhanced Navigation Responsive */
@media (max-width: 1024px) {
  .nav-links a {
    font-size: 12px;
  }

  .signup {
    font-size: 12px;
    padding: 6px 10px;
  }

  .search-icon-wrapper {
    width: 32px;
    height: 32px;
  }

  .search-icon-btn {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(12, 21, 93);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 0;
  }

  .search-signup {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .signup {
    width: auto;
    margin-top: 0;
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .nav-links a {
    font-size: 12px;
  }

  .search-signup {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .signup {
    width: auto;
    margin-top: 0;
    font-size: 10px;
    padding: 5px 8px;
  }
  
  .search-icon-wrapper {
    width: 28px;
    height: 28px;
  }
  
  .search-icon-btn {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .navbar {
    padding: 8px 12px;
  }
  
  .logo1 img {
    height: 25px;
  }
  
  .signup {
    font-size: 9px;
    padding: 4px 6px;
  }
  
  .search-icon-wrapper {
    width: 26px;
    height: 26px;
  }
  
  .search-icon-btn {
    font-size: 12px;
  }
}

.gallery-section {
  margin-top: 20px;
  padding-top: 20px;
  flex: 1;
  margin-bottom: 60px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 15px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.gallery-wrapper {
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  padding: 10px 15px;
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

/* Enhanced Touch Interactions */
@media (hover: none) and (pointer: coarse) {
  .gallery-item {
    cursor: pointer;
  }
  
  .gallery-item:active {
    transform: scale(0.95);
  }
  
  .gallery-item:active img {
    transform: scale(1.05);
  }
  
  .gallery-item .overlay {
    opacity: 0.8;
  }
}

/* Enhanced Lightbox styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: lightboxFadeIn 0.3s ease forwards;
}

@keyframes lightboxFadeIn {
  to { opacity: 1; }
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  transform: scale(0.9);
  animation: lightboxScaleIn 0.3s ease forwards;
}

@keyframes lightboxScaleIn {
  to { transform: scale(1); }
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.close:hover {
  transform: scale(1.1);
  background: rgba(0,0,0,0.7);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile Lightbox Optimizations */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .close {
    top: 20px;
    right: 20px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-nav {
    font-size: 20px;
    padding: 12px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    max-width: 98%;
    max-height: 98%;
  }
  
  .close {
    top: 15px;
    right: 15px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
  
  .lightbox-nav {
    font-size: 18px;
    padding: 10px;
  }
}

/* Loading States */
.gallery-item.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .gallery-item {
    border: 2px solid #000;
  }
  
  .gallery-item .overlay {
    background: rgba(0,0,0,0.9);
    border-top: 2px solid #fff;
  }
  
  .lightbox {
    background: rgba(0,0,0,1);
  }
}

/* Focus Management for Accessibility */
.gallery-item:focus {
  outline: 3px solid #1A237E;
  outline-offset: 2px;
}

.lightbox:focus {
  outline: none;
}

/* Print Styles */
@media print {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
  }
  
  .gallery-item .overlay {
    opacity: 1;
    background: rgba(0,0,0,0.8);
  }
  
  .lightbox {
    display: none !important;
  }
}

/* Enhanced Scroll Performance */
.gallery-container {
  will-change: transform;
}

/* Gallery Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(even) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(3n) {
  animation-delay: 0.2s;
}

/* Footer Styles */
footer {
  background: #1A237E;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-logo-section {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-top h4 {
  margin-bottom: 10px;
  color: #fff;
}

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

.footer-top ul li {
  margin-bottom: 6px;
}

.footer-top input[type="email"] {
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  margin-bottom: 12px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer-top button {
  background: #fff;
  color: #1A237E;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.footer-top button:hover {
  background: #1A237E;
  color: #fff;
}

.footer-top p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-size: 0.95em;
}

.footer-bottom {
  text-align: left;
  padding: 18px 0;
  background: #1A237E;
  font-size: 0.95em;
}

.footer-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom .social-icons {
  display: flex;
  gap: 15px;
}

.footer-bottom .social-icons a {
  color: #fff;
  font-size: 1.1em;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom .social-icons a:hover {
  transform: translateY(-3px);
}

/* Social Media Brand Colors */
.footer-bottom .social-icons a.facebook:hover {
  background: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.footer-bottom .social-icons a.twitter:hover {
  background: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.footer-bottom .social-icons a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.footer-bottom .social-icons a.linkedin:hover {
  background: #0077b5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.footer-bottom .social-icons a.youtube:hover {
  background: #ff0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-bottom .social-icons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: 20px;
  }
  
  .footer-logo-section {
    max-width: 100%;
  }
  
  .footer-bottom {
    padding: 15px 0;
  }
}

  
