/*
Theme Name: Gallery
Theme URI: http://example.com
Author: Asim

Author URI: http://example.com
Description: A custom WordPress theme converted from static HTML/CSS site
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: hanif-galerie
*/

 /* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;

}

/* ==============================
   ✅ HEADER STYLES
============================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(51, 51, 51, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header .logo img {
    width: 90px;     /* Adjust size (make smaller or larger) */
    height: auto;    /* Keeps image ratio */
}

/* Container */
.nav-container {
  max-width: 1320px;
  margin: auto;
  padding: 2px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.logo a:hover {
    color: #ffcc00;
    text-shadow: 0 0 8px #ffcc00, 0 0 12px #ffcc00;
}

.logo {
  margin-right: 10px;
  font-size: 24px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Remove bullets from menu */
/* Reset default styles for lists */
.nav-links,
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation container */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

/* Links style */
.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.4s ease;
  padding: 5px 0;
  letter-spacing: 1px;
}

/* Hover underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  transition: 0.4s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hover text color with subtle glow */
.nav-links a:hover {
  color: #ffcc00;
  text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00;
}

/* Active link effect */
.nav-links a.active {
  color: #ffcc00;
}

.nav-links a.active::after {
  width: 100%;
}

/* Optional: Add background on hover */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
}

/* Mobile toggle */
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: white;
  background: none;
  border: none;
  padding: 5px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
  color: #ffcc00;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .nav-container {
    padding: 16px 30px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .nav-container {
    padding: 14px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(51, 51, 51, 0.98);
    backdrop-filter: blur(12px);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.4s ease forwards;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
    width: 80%;
    text-align: center;
  }

  .nav-links a::after {
    bottom: 0;
  }

  .logo a {
    font-size: 22px;
  }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
  .nav-container {
    padding: 12px 15px;
  }

  .logo a {
    font-size: 20px;
  }

  .menu-toggle {
    font-size: 24px;
  }

  .nav-links {
    top: 60px;
    padding: 25px 0;
    gap: 15px;
  }

  .nav-links a {
    font-size: 15px;
    padding: 8px 0;
  }
}

/* Mobile animation */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover shadow effect */
.site-header:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Smooth scroll behavior for mobile menu */
@media (max-width: 900px) {
  .nav-links a {
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 204, 0, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
  }

  .nav-links a:hover::before {
    opacity: 0;
  }
}



/* Hero Section */
#hero {
 
    width: 100%;
}

/* Image full width */
#hero img {
    width: 100%;
    display: block;
}

/* Wrapper to push button to the right */
.hero-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-right: 40px;
}

/* Button style */
.hero-btn {
    padding: 14px 28px;
    background: white;
    color: black;
    border: 2px solid black;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
/* Wrapper */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
}

/* Dropdown items */
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    background: black;
    color: white;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Your main hero button styling (no change) */
.hero-btn {
    padding: 15px 25px;
    background: white;
    color:black;
    border: 2px solid black;
    cursor: pointer;
  
    font-size: 16px;
}

.hero-btn:hover {
    background: black;
    color: white;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    #hero {
        padding-bottom: 40px;
    }

    .hero-btn-wrap {
        padding-right: 20px;
        margin-top: 12px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #hero {
        padding-bottom: 30px;
    }

    .hero-btn-wrap {
        padding-right: 15px;
        margin-top: 10px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    #hero {
        padding-bottom: 20px;
    }

    .hero-btn-wrap {
        justify-content: center;
        padding-right: 0;
        padding: 0 15px;
        margin-top: 8px;
    }

    .hero-btn {
        padding: 10px 18px;
        font-size: 11px;
        width: 100%;
        max-width: 200px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
}

/* Gallery Section */
/* Products Section */
/* ===========================
   Products Section
=========================== */
#products {
    padding: 40px 20px;
    background: white;
    color: black;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

#products h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

#products p {
    font-size: 16px;
    margin-bottom: 40px;
    color: black;
}

/* ===========================
   Gallery Grid
=========================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible; /* allow images to expand beyond grid */
}

/* ===========================
   Product Card
=========================== */
.product-card {
    position: relative; /* for hover image scaling */
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(255,204,0,0.4);
    z-index: 10; /* ensures hover image appears above others */
}

/* ===========================
   Product Image
=========================== */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.3); /* zoom image on hover */
    z-index: 2;
    position: relative;
}
/* ===========================
   Lightbox Overlay
=========================== */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.image-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.image-popup-overlay img {
   
    
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
    cursor: zoom-out;
}

/* ===========================
   Product Info
=========================== */
.product-info {
    padding: 15px 20px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-info {
    opacity: 0.9; /* slightly dim info on hover */
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.price {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
  
    color: white;
    text-decoration: none;
}

/* ===========================
   Add to Cart Button
=========================== */
.cart-btn {
    background: #ffcc00;
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cart-btn:hover {
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    color: #111;
    box-shadow: 0 4px 12px rgba(255,204,0,0.6);
}

/* ===========================
   Responsive Styles
=========================== */
@media(max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media(max-width: 768px) {
    #products {
        padding: 40px 15px;
    }

    #products h1 {
        font-size: 28px;
    }

    #products p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-card img {
        height: 180px;
    }

    .product-info h3 {
        font-size: 16px;
    }

    .price {
        font-size: 14px;
    }

    .cart-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media(max-width: 480px) {
    #products {
        padding: 30px 10px;
    }

    #products h1 {
        font-size: 24px;
    }

    #products p {
        font-size: 13px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .product-card img {
        height: 160px;
    }

    .product-info {
        padding: 12px 15px;
    }

    .product-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .price {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .cart-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    footer {
        padding: 14px 20px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    footer {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    footer {
        padding: 10px 10px;
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    footer {
        padding: 8px 8px;
        font-size: 12px;
    }
}