*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

body{
background:#f3f4f6;
}

.gallery{
padding:60px 8%;
}

.title{
font-size:40px;
margin-bottom:40px;
color:#1f4a84;
}

/* grid */

.tiles-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

/* tile */

.tile-card{
text-align:center;
cursor:pointer;
}

.tile-card img{
width:100%;
height:260px;
object-fit:cover;
border-radius:6px;
transition:0.3s;
box-shadow:0 6px 14px rgba(0,0,0,0.1);
}

.tile-card img:hover{
transform:scale(1.05);
}

.tile-card p{
margin-top:10px;
color:#c93b3b;
}


/* lightbox */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:1000;
}

.lightbox-img{
max-width:70%;
max-height:80%;
}

.close{
position:absolute;
top:30px;
right:40px;
font-size:40px;
color:white;
cursor:pointer;
}

.prev,.next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:40px;
color:white;
background:none;
border:none;
cursor:pointer;
}

.prev{
left:50px;
}

.next{
right:50px;
}


.navbar {
      position: fixed;
      top: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 4rem;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(6px);
      z-index: 1000;
}

.logo{
display:flex;
align-items:center;
gap:10px;
color:white;
text-decoration:none;
font-size:20px;
font-weight:600;
}

.logo img{
height:40px;
}

.nav-links{
display:flex;
gap:30px;
}

.nav-links a{
color:white;
text-decoration:none;
font-size:16px;
transition:0.3s;
}

.nav-links a:hover{
opacity:0.7;
}

/* FOOTER */

.footer{
  text-align:center;
  padding:25px;
  background:#111;
  color:white;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px; /* reduced gap overall */
}

/* Left Section */
.footer-left {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-left h3 {
  font-size: 1.9rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #ffffff;
}

.footer-left p {
  color: #dce8ff;
  line-height: 1.6;
  font-size: 0.96rem;
}

/* Center Section */
.footer-center {
  flex: 1.3;
  display: flex;
  justify-content: space-around;
  min-width: 280px;
  gap: 50px; /* 🔹 reduced the space between Quick Links & Products */
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  position: relative;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  opacity: 0.5;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #dbe6ff;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

/* 🌈 COOL HOVER EFFECT */
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Right Section */
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-right h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: "Playfair Display", serif;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  color: #ffffff;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #ffffff;
  color: #031a6b;
  transform: scale(1.15) rotate(6deg);
}

.shop-timing p {
  color: #dbe6ff;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 35px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #cbd5ff;
}
/* =========================
   📱 PERFECT GALLERY MOBILE
========================= */
@media (max-width:768px){

  .gallery{
    padding: 40px 20px;
  }

  .title{
    font-size: 26px;
    text-align: center;
  }

  /* 🔥 MAIN FIX */
  .tiles-grid{
    grid-template-columns: 1fr;   /* ✅ ONLY 1 CARD PER ROW */
    gap: 20px;
  }

  .tile-card img{
    height: 220px;   /* better proportion */
    border-radius: 10px;
  }

}

@media (max-width:768px){

  .navbar{
    padding: 10px 12px;
    flex-direction: column;   /* logo top, links below */
    align-items: flex-start;
  }

  .logo{
    margin-bottom: 8px;
  }

  .nav-links{
    display: flex;
    gap: 12px;

    width: 100%;
    overflow-x: auto;       /* ✅ scroll enabled */
    white-space: nowrap;    /* ✅ keep in one line */

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar{
    display: none;
  }

  .nav-links a{
    flex: 0 0 auto;   /* 🔥 MOST IMPORTANT */
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
  }

}