/* ===================================================
   Malay Joshi - Projects Gallery CSS
   =================================================== */

:root {
  --bg: #030712;
  --bg-card: rgba(8, 12, 24, 0.75);
  --bg-card-hover: rgba(12, 20, 38, 0.85);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  
  --primary: #00f0ff;      /* Cyber Neon Cyan */
  --secondary: #00ff66;    /* Radioactive Green */
  --accent: #bd00ff;       /* Digital Purple */
  --warn: #ff9e00;         /* Alert Amber */
  --critical: #ff3b30;     /* Danger Red */
  
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--accent));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cyber Grid & Scanline Effects */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  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;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

/* Ambient glow accents */
.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.glow-one {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -150px;
  left: -100px;
}
.glow-two {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: 10%;
  right: -150px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary-btn {
  background: var(--gradient);
  color: #030712;
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.25);
  font-weight: 700;
}
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.45);
}

/* GALLERY MAIN LAYOUT */
.gallery-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 4%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* HEADER STYLE */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.back-home-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.back-home-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  transform: translateX(-3px);
}
.header-title h1 {
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--secondary);
}
.status-dot-pulse {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
  animation: pulse-glow 1.5s infinite;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.system-stat {
  text-align: right;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.text-secure {
  color: var(--secondary);
}

/* FILTER BAR & CONTROLS */
.gallery-controls {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  border-color: rgba(0, 240, 255, 0.15);
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  font-size: 20px;
  color: var(--muted);
}
.search-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #fff;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}
.search-wrapper input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}
.clear-search-btn {
  position: absolute;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.clear-search-btn:hover {
  color: #fff;
}

.filter-categories {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--primary);
}
.filter-btn.active {
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* GRID GALLERY */
.gallery-grid-wrapper {
  flex-grow: 1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* PROJECT CARD */
.project-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.08);
}
.project-card.highlight-card {
  border-color: rgba(189, 0, 255, 0.2);
}
.project-card.highlight-card:hover {
  border-color: rgba(189, 0, 255, 0.45);
  box-shadow: 0 15px 40px rgba(189, 0, 255, 0.08);
}
.project-icon {
  margin-bottom: 20px;
}
.project-icon i {
  font-size: 40px;
  color: var(--primary);
}
.project-card.highlight-card .project-icon i {
  color: var(--accent);
}
.project-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.project-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.tech-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
}
.project-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.project-links a {
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  transition: all 0.2s ease;
}
.project-links a:hover {
  text-decoration: underline;
}
.project-links a.git-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.project-links a.git-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
}
.project-card.highlight-card .project-links a.git-btn:hover {
  border-color: var(--accent);
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.no-results i {
  font-size: 64px;
  color: var(--critical);
  margin-bottom: 16px;
  opacity: 0.8;
}
.no-results h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

/* FOOTER */
.gallery-footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
}

/* KEYFRAMES & ANIMATIONS */
@keyframes pulse-glow {
  0% { opacity: 0.6; box-shadow: 0 0 5px var(--secondary); }
  50% { opacity: 1; box-shadow: 0 0 15px var(--secondary); }
  100% { opacity: 0.6; box-shadow: 0 0 5px var(--secondary); }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-controls {
    grid-template-columns: 1fr;
  }
  .filter-categories {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}
