: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;
}

body {
  font-family: 'Inter', sans-serif;
  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;
}

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 */
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: 1001;
  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;
}

.logo:after {
    display: none !important;
}

.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);
}

/* 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;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1f2937;
}

.footer-text {
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-5px);
}

.copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b7280;
  font-size: 1rem;
}

/* WhatsApp Floating Button */
.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);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }
  .gallery-hero h1 {
    font-size: 2.5rem;
  }
  .modal-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .gallery-hero h1 {
    font-size: 2.3rem;
  }
  .project-card {
    height: 280px;
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .gallery-hero {
    height: 28vh;
  }
  .gallery-hero h1 {
    font-size: 2rem;
  }
  .gallery-hero p {
    font-size: 1.1rem;
  }
  .filter-group {
    justify-content: center;
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}