/* Modern Luxury Gallery - Kwality Restaurant */

:root {
  --primary-color: #1a1a2e; /* Deep navy blue */
  --secondary-color: #16213e; /* Slightly lighter navy */
  --accent-color: #d4af37; /* Gold accent for luxury feel */
  --text-color: #ffffff;
  --text-color-dark: #333333;
  --background-light: #f8f8f8;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--primary-color);
  font-family: var(--font-primary);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-logo {
  animation: pulse 2s infinite;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header Styles */
.gallery-header {
  position: relative;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.gallery-header .logo {
  transition: transform var(--transition-speed);
}

.gallery-header .logo:hover {
  transform: scale(1.05);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  transition: all var(--transition-speed);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
}

.home-btn img {
  margin-right: 0.7rem;
  width: 20px;
  height: 20px;
  filter: invert(79%) sepia(41%) saturate(1304%) hue-rotate(359deg) brightness(89%) contrast(87%);
  transition: filter var(--transition-speed);
}

.home-btn:hover img {
  filter: invert(8%) sepia(37%) saturate(1122%) hue-rotate(195deg) brightness(95%) contrast(96%);
}

/* Gallery Grid */
.gallery-container {
  padding: 1rem 0 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  height: 100%;
  background: linear-gradient(145deg, #1e1e36, #23234a);
  transform-origin: center;
  aspect-ratio: 1 / 1.2;
  max-height: 450px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.gallery-item .item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.7) 60%, transparent 100%);
  color: var(--text-color);
  transform: translateY(0);
  transition: transform 0.4s ease, background 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item .item-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease 0.1s;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item .item-desc {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
  transform: translateY(0);
  transition: transform 0.4s ease 0.2s, opacity 0.4s ease;
  margin-bottom: 0.5rem;
}

.gallery-item:hover, .gallery-item.hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.gallery-item:hover img, .gallery-item.hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-item:hover .item-overlay, .gallery-item.hover .item-overlay {
  background: linear-gradient(to top, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.8) 70%, rgba(26, 26, 46, 0.6) 100%);
}

.gallery-item:hover .item-title, .gallery-item.hover .item-title {
  transform: translateY(-5px);
}

.gallery-item:hover .item-desc, .gallery-item.hover .item-desc {
  transform: translateY(-3px);
  opacity: 1;
}

/* Dimmed effect for other items when one is hovered */
.gallery-item.dimmed {
  opacity: 0.6;
  filter: saturate(0.7);
  transform: scale(0.98);
  transition: all 0.4s ease;
}

/* Mobile interaction styles */
.gallery-item.active-mobile .item-overlay {
  background: linear-gradient(to top, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.8) 70%, rgba(26, 26, 46, 0.6) 100%);
}

.gallery-item.active-mobile .item-title {
  transform: translateY(-5px);
}

.gallery-item.active-mobile .item-desc {
  transform: translateY(-3px);
  opacity: 1;
}

/* Special layout classes */




/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
  animation-delay: calc(var(--delay, 0) * 0.1s);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-item {
    max-height: 400px;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-item .item-title {
    font-size: 1.3rem;
  }
  
  .gallery-item .item-desc {
    font-size: 0.9rem;
  }
  

  

}

@media (max-width: 600px) {
  .gallery-header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-item {
    aspect-ratio: 1 / 0.8;
  }
  

}

/* Utility Classes */
.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}