@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-alt: #0d0d14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a5b0;
  --text-muted: #5a5a6a;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --accent-glow: rgba(255, 255, 255, 0.2);
  --accent-green: #ffffff;
  --accent-green-bg: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

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

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder { color: var(--text-muted); font-size: 0.75rem; }

.search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.category-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.category-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-gif {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-gif img {
  max-width: 100%;
  width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.title-line { display: block; color: var(--text-primary); }
.title-accent { 
  display: block; 
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-light { display: block; color: var(--text-secondary); font-weight: 500; font-size: 1.5rem; }

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 70px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.feature-card span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card small {
  font-size: 0.6rem;
  color: var(--text-muted);
  display: block;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #000000;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.hero-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.hero-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.hero-contact a:hover { color: #e0e0e0; }
.hero-contact .divider { color: rgba(255, 255, 255, 0.3); }

/* Main */
.main { padding: 1.5rem 1rem; }

.container { max-width: 1600px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img { transform: scale(1.06); }

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
  text-transform: uppercase;
}

.card-info { padding: 0.85rem; }

.card-id {
  font-size: 0.55rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-name {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.3rem 0 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-old {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.card-category-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.no-items {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  padding-top: 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(15, 15, 22, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  width: 100%;
  max-height: none;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
  margin: 1rem 0 2rem;
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-close {
  position: sticky;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(15, 15, 22, 0.9);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  float: right;
}

.modal-close:hover {
  background: var(--surface-hover);
  border-color: #ffffff;
  color: #ffffff;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  clear: both;
}

.modal-gallery { display: flex; flex-direction: column; gap: 0.75rem; }

.modal-main-image {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.modal-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--surface);
}

.modal-thumb:hover { border-color: var(--text-secondary); }
.modal-thumb.active { border-color: #ffffff; }

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details { display: flex; flex-direction: column; gap: 0.5rem; }

.modal-id {
  font-size: 0.6rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-category {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.modal-price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-price-current {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.modal-discount {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
}

.modal-discount {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
}

.modal-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-includes {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--glass-bg);
  border-radius: 10px;
}

.modal-includes h4 {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.modal-includes ul {
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.modal-includes li {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #000000;
  text-decoration: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.75rem;
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-alt);
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
  .header-content { padding: 0.85rem 1.5rem; }
  .hero-gif img { width: 340px; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text { font-size: 1.4rem; }
  .search-input { padding: 0.65rem 0.85rem 0.65rem 2.5rem; font-size: 0.85rem; }
  .search-icon { width: 15px; height: 15px; left: 0.85rem; }
  .category-pill { padding: 0.45rem 0.85rem; font-size: 0.75rem; }
  
  .hero { padding: 3rem 1.5rem; }
  .hero-title { font-size: 2.25rem; }
  .title-light { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-features { gap: 0.65rem; margin-bottom: 2rem; }
  .feature-card { padding: 1rem 1.25rem; min-width: 90px; }
  .feature-card span { font-size: 0.8rem; }
  .feature-card small { font-size: 0.65rem; }
  .hero-cta { gap: 1rem; margin-bottom: 1.5rem; }
  .btn-primary, .btn-secondary { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .hero-contact { font-size: 0.85rem; gap: 0.75rem; }
  
  .main { padding: 2rem 1.5rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
  .card { border-radius: 16px; }
  .card-info { padding: 1rem; }
  .card-name { font-size: 0.9rem; }
  .price-current { font-size: 1.05rem; }
  .discount-badge { font-size: 0.65rem; padding: 0.3rem 0.55rem; }
  
  .modal-content { padding: 1.5rem; gap: 1.75rem; }
  .modal-title { font-size: 1.5rem; }
  .modal-price-current { font-size: 1.5rem; }
  .modal-cta { font-size: 0.9rem; padding: 0.8rem 1.75rem; }
}

@media (min-width: 768px) {
  .header-content { padding: 1rem 2.5rem; }
  .hero-gif img { width: 400px; }
  .logo-img { width: 42px; height: 42px; }
  .logo-text { font-size: 1.8rem; }
  .header-right { flex-direction: column; gap: 1rem; max-width: 800px; }
  .search-input { font-size: 0.9rem; padding: 0.7rem 1rem 0.7rem 2.75rem; }
  .category-bar { gap: 0.5rem; }
  .category-pill { font-size: 0.8rem; padding: 0.5rem 1.1rem; }
  
  .hero { padding: 4rem 2.5rem; min-height: 480px; }
  .hero-title { font-size: 3rem; }
  .title-light { font-size: 2.5rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.45rem 1rem; margin-bottom: 1.25rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .feature-card { padding: 1.1rem 1.4rem; min-width: 110px; }
  .feature-card .feature-icon { font-size: 1.3rem; }
  .feature-card span { font-size: 0.85rem; }
  
  .main { padding: 2.5rem 2rem; }
  .section-title { font-size: 1.5rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
  .card-info { padding: 1.1rem; }
  
  .modal { max-height: 90vh; overflow-y: auto; margin: 2rem 0; }
  .modal-content { grid-template-columns: 1.1fr 1fr; gap: 2rem; padding: 2rem; }
  .modal-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.4rem; }
  .modal-title { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  .header-content { padding: 1rem 3rem; }
  .hero { padding: 5rem 3rem; min-height: 520px; }
  .hero-gif img { width: 450px; }
  .hero-title { font-size: 3.5rem; }
  .title-light { font-size: 2.75rem; }
  .hero-features { gap: 1rem; }
  .hero-cta { gap: 1.25rem; }
  .btn-primary, .btn-secondary { padding: 0.85rem 2rem; font-size: 1rem; }
  
  .main { padding: 3rem 2.5rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
  .modal-content { gap: 2.5rem; padding: 2.5rem; }
}

@media (min-width: 1280px) {
  .hero-gif img { width: 500px; }
  .hero-title { font-size: 4rem; }
  .title-light { font-size: 3rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* Touch optimizations */
@media (hover: none) {
  .btn-primary:active { transform: scale(0.98); }
  .modal-cta:active { transform: scale(0.98); }
  .card:active { transform: scale(0.99); }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .header { padding-top: max(0.5rem, env(safe-area-inset-top)); }
  .modal-close { top: max(0.75rem, env(safe-area-inset-top)); }
  .footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}