/* Gallery Styles - Light Version with Mobile-First Design */
:root {
  --primary: #ffffff;
  --secondary: #6b7280;
  --accent: #3b82f6;
  --electric: #6366f1;
  --light: #f9fafb;
  --dark: #1f2937;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #4b5563;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    url('https://www.transparenttextures.com/patterns/clean-textile.png');
  z-index: -1;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header & Navigation - Consistent with article details */
header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1003;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Mobile Menu Styles - Updated to match media.css */
nav .mobile-menu-toggle {
  display: none !important;
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  padding: 12px !important;
  z-index: 1002 !important;
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}


nav .mobile-menu-toggle:hover {
  transform: scale(1.05) !important;
}

.mobile-nav {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 1001 !important;
  padding: 100px 20px 40px !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 400px !important;
}

.mobile-nav-links a {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  padding: 15px 25px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  background: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.mobile-nav-links a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--accent) !important;
  transform: translateX(5px) !important;
}

.mobile-nav .nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  margin-top: 20px !important;
  width: 100% !important;
  max-width: 400px !important;
  text-align: center !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

.mobile-menu-close {
  position: absolute !important;
  top: 30px !important;
  right: 30px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  z-index: 1003 !important;
  transition: all 0.3s ease !important;
}

.mobile-menu-close:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  transform: rotate(90deg) !important;
}

.mobile-menu-close {
  display: none !important;
}

.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
  display: none !important;
}

.mobile-menu-overlay.active {
  display: block !important;
}

@media (max-width: 768px) {
  nav .mobile-menu-toggle {
    display: flex !important;
  }
}

/* Animation for menu items */
/* Faster animation for menu items */


/* Gallery Hero Section */
.gallery-hero {
  height: 28vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.gallery-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.gallery-hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #1f2937, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: #6b7280;
}

/* Gallery Filters */
.gallery-filters {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 25px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
  margin-bottom: 40px;
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* Gallery Grid */
.gallery-container {
  padding: 0 0 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  height: 320px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-title {
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 50%, transparent);
  color: #1f2937;
}

.project-title h3 {
  font-size: 1.4rem;
}

/* Project Gallery Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 0;
}

.modal-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.close-modal {
  position: fixed;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2001;
}

.close-modal:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-header {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 25px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.modal-header h2 {
  font-size: 2.2rem;
  color: #1f2937;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 100px 30px 30px;
  max-height: 100vh;
  overflow-y: auto;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3001;
}

.lightbox-close:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.image-counter {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: #6b7280;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
  width: fit-content;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 70px 0 25px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .gallery-hero h1 {
    font-size: 3rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .gallery-hero h1 {
    font-size: 2.5rem;
  }
  
  .gallery-hero p {
    font-size: 1.2rem;
  }
  
  .gallery-filters {
    top: 70px;
    padding: 20px 0;
  }
  
  .filters-container {
    justify-content: center;
  }
  
  .filter-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .gallery-hero {
    height: 25vh;
    margin-bottom: 40px;
  }
  
  .gallery-hero h1 {
    font-size: 2.2rem;
  }
  
  
  .gallery-hero p {
    font-size: 1.1rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .project-card {
    height: 280px;
  }
  
  .project-title {
    padding: 15px;
  }
  
  .project-title h3 {
    font-size: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 80px 20px 20px;
  }
  
  .gallery-item {
    height: 180px;
  }
  
  .modal-header {
    top: 20px;
    left: 20px;
    padding: 10px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.8rem;
  }
  
  .close-modal {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .prev-btn {
    left: 20px;
  }
  
  .next-btn {
    right: 20px;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .image-counter {
    bottom: 20px;
    font-size: 1rem;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  nav {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .gallery-hero {
    height: 20vh;
    margin-bottom: 30px;
    padding-top: 20px;
  }
  
  .gallery-hero h1 {
    font-size: 1.8rem;
  }
  
  .gallery-hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .gallery-filters {
    top: 60px;
    padding: 15px 0;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .project-card {
    height: 250px;
    border-radius: 15px;
  }
  
  .project-title {
    padding: 12px;
  }
  
  .project-title h3 {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 70px 15px 15px;
  }
  
  .gallery-item {
    height: 150px;
    border-radius: 12px;
  }
  
  .modal-header {
    top: 15px;
    left: 15px;
    padding: 8px 15px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .close-modal {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .prev-btn {
    left: 15px;
  }
  
  .next-btn {
    right: 15px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .image-counter {
    bottom: 15px;
    font-size: 0.9rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .gallery-hero {
    height: 18vh;
    margin-bottom: 25px;
  }
  
  .gallery-hero h1 {
    font-size: 1.6rem;
  }
  
  .gallery-hero p {
    font-size: 0.95rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .project-card {
    height: 220px;
  }
  
  .project-title {
    padding: 10px;
  }
  
  .project-title h3 {
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 60px 10px 10px;
  }
  
  .gallery-item {
    height: 120px;
    border-radius: 10px;
  }
  
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 577px) and (max-width: 991px) {
  .gallery-hero h1 {
    font-size: 2.8rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .project-card {
    height: 300px;
  }
}

/* Large mobile specific adjustments */
@media (min-width: 481px) and (max-width: 576px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .project-card {
    height: 260px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .gallery-item {
    height: 160px;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .gallery-hero {
    height: 35vh;
  }
  
  .gallery-filters {
    position: relative;
    top: 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-img,
  .gallery-item img,
  .lightbox-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
  .mobile-nav {
    background: rgba(31, 41, 55, 0.98);
  }
  
  .mobile-nav-links a {
    color: #f9fafb;
    background: rgba(59, 130, 246, 0.1);
  }
  
  .mobile-menu-close {
    background: rgba(59, 130, 246, 0.2);
    color: #f9fafb;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle:focus,
  .mobile-menu-close:focus,
  .close-modal:focus,
  .lightbox-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  .mobile-nav-links a:focus,
  .filter-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .mobile-menu-toggle,
  .mobile-menu-close,
  .close-modal,
  .lightbox-close,
  .lightbox-nav {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-nav-links a {
    min-height: 60px;
    padding: 20px 30px;
  }
  
  .filter-btn {
    min-height: 36px;
    padding: 8px 18px;
  }
  
  .project-card,
  .gallery-item {
    cursor: pointer;
  }
}

/* Print styles */
@media print {
  .mobile-menu-toggle,
  .mobile-nav,
  .mobile-menu-overlay,
  .gallery-filters,
  .close-modal,
  .lightbox-modal,
  .project-modal {
    display: none !important;
  }
  
  .gallery-hero h1 {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .project-card {
    background: white;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}


/* WhatsApp Floating Button */

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 24px !important;
  }



.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}
