/* ============================================================
   TechProjects Gallery - Main Stylesheet
   Aesthetic: Dark Circuit Board / Cyberpunk Tech
   ============================================================ */

:root {
  --primary: #00d4ff;
  --primary-dark: #0099bb;
  --accent: #ff6b35;
  --accent2: #00ff88;
  --bg-dark: #060b14;
  --bg-card: #0d1825;
  --bg-card2: #111d2e;
  --border: rgba(0,212,255,0.15);
  --border-glow: rgba(0,212,255,0.4);
  --text: #e2e8f0;
  --text-muted: #7a9ab0;
  --text-dim: #4a6680;
  --danger: #ff4757;
  --success: #00ff88;
  --warning: #ffa502;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 30px rgba(0,212,255,0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---- LOADER ---- */
#loader {
  position: fixed; inset: 0; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s ease;
}
#loader.hide { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-circuit {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 3px;
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(6,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled { height: 58px; background: rgba(6,11,20,0.97); }
.nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.nav-brand em { color: var(--accent2); font-style: normal; }
.nav-brand i { font-size: 22px; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(0,212,255,0.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(0,212,255,0.3); }
.btn-primary.full { width: 100%; justify-content: center; padding: 14px; font-size: 16px; margin-top: 8px; }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1px solid var(--border-glow);
  padding: 9px 20px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: rgba(0,212,255,0.1); }
.btn-danger { background: var(--danger); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 13px; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 100px 5% 60px;
}
.hero-bg { position: absolute; inset: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.1); border: 1px solid var(--border-glow);
  color: var(--primary); font-family: var(--font-mono); font-size: 12px;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
  letter-spacing: 2px;
}
.pulse { animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-title .line1 { display: block; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--text-muted); letter-spacing: 4px; }
.hero-title .line2 { display: block; font-size: clamp(3rem, 8vw, 5.5rem); color: #fff; }
.hero-title em { color: var(--primary); font-style: normal; }
.hero-sub {
  font-family: var(--font-mono); color: var(--accent2); font-size: 14px;
  letter-spacing: 3px; margin-bottom: 16px;
}
.hero-desc { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary {
  background: var(--primary); color: #000; border: none;
  padding: 14px 32px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 1px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,212,255,0.4); }
.btn-hero-ghost {
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 32px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 1px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat { text-align: center; }
.stat span { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--primary); }
.stat label { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 18px;
  animation: bounce 2s ease infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.dark-section { background: rgba(0,0,0,0.3); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { font-family: var(--font-mono); color: var(--accent2); font-size: 13px; letter-spacing: 3px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-top: 8px;
  color: #fff;
}
.section-title span { color: var(--primary); }

/* ---- CATEGORIES ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cat-color, #00d4ff)10, transparent);
  opacity: 0; transition: var(--transition);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--cat-color, var(--primary)); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 36px; margin-bottom: 12px; }
.cat-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.cat-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---- FILTERS ---- */
.filters-bar {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.search-box {
  flex: 1; min-width: 200px;
  position: relative; display: flex; align-items: center;
}
.search-box i { position: absolute; left: 12px; color: var(--text-muted); font-size: 14px; }
.search-box input {
  width: 100%; padding: 10px 12px 10px 36px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select {
  padding: 10px 14px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  cursor: pointer;
}
.filter-group select:focus { outline: none; border-color: var(--primary); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; min-height: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,255,0.1); border: 1px solid var(--border-glow);
  color: var(--primary); font-size: 12px; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 50px;
}
.chip button { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 12px; padding: 0; }

/* ---- PROJECTS GRID ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  min-height: 200px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.1); }
.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1825 0%, #111d2e 100%);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--primary); opacity: 0.3;
}
.project-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  color: var(--primary); font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 50px;
  border: 1px solid var(--border);
}
.project-featured {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
}
.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(0,212,255,0.1); color: var(--primary);
  border: 1px solid rgba(0,212,255,0.2);
}
.tag.ece { background: rgba(255,107,53,0.1); color: var(--accent); border-color: rgba(255,107,53,0.2); }
.tag.ai  { background: rgba(231,76,60,0.1);  color: #e74c3c; border-color: rgba(231,76,60,0.2); }
.tag.iot { background: rgba(155,89,182,0.1); color: #9b59b6; border-color: rgba(155,89,182,0.2); }
.tag.vlsi{ background: rgba(243,156,18,0.1); color: var(--warning); border-color: rgba(243,156,18,0.2); }
.tag.embedded { background: rgba(0,255,136,0.1); color: var(--accent2); border-color: rgba(0,255,136,0.2); }
.tag.matlab { background: rgba(52,152,219,0.1); color: #3498db; border-color: rgba(52,152,219,0.2); }
.project-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: #fff; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-desc {
  color: var(--text-muted); font-size: 13px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; margin-bottom: 16px;
}
.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.project-stats { display: flex; gap: 14px; color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.project-stats span { display: flex; align-items: center; gap: 4px; }
.btn-view {
  background: transparent; border: 1px solid var(--border);
  color: var(--primary); padding: 6px 14px; border-radius: var(--radius);
  font-size: 12px; font-family: var(--font-mono); cursor: pointer;
  transition: var(--transition);
}
.btn-view:hover { background: var(--primary); color: #000; border-color: var(--primary); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-mono); font-size: 14px;
  cursor: pointer; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }

/* ---- LOADING ---- */
.loading-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; color: var(--text-dim); margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-family: var(--font-display); font-size: 18px; }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,11,20,0.9); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
.modal-lg  { max-width: 680px; }
.modal-xl  { max-width: 1100px; width: 95vw; }
@keyframes modalIn { from { transform: scale(0.95) translateY(20px); opacity: 0; } }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.modal-header h3 { font-family: var(--font-display); font-size: 18px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer-text { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > i:first-child { position: absolute; left: 12px; color: var(--text-muted); font-size: 14px; pointer-events: none; }
.input-icon input, .input-icon textarea {
  width: 100%; padding: 12px 40px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  transition: var(--transition);
}
.input-icon input:focus, .input-icon textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.toggle-pass { position: absolute; right: 12px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }

/* ---- USER MENU ---- */
.user-avatar {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; color: var(--text);
  padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.user-avatar:hover { border-color: var(--primary); color: var(--primary); }
.user-avatar i:first-child { font-size: 20px; color: var(--primary); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 100; overflow: hidden;
  display: none;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; color: var(--text); font-size: 14px;
  transition: var(--transition);
}
.user-dropdown a:hover { background: rgba(0,212,255,0.1); color: var(--primary); }
#userMenu { position: relative; }

/* ---- ADMIN PANEL ---- */
.admin-modal .modal-body { padding: 0; }
.admin-layout { display: flex; height: 75vh; }
.admin-sidebar {
  width: 200px; min-width: 200px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 8px;
  gap: 4px;
}
.admin-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-align: left;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--primary); background: rgba(0,212,255,0.05); }
.admin-tab.active { color: var(--primary); background: rgba(0,212,255,0.1); border-left: 2px solid var(--primary); }
.admin-content { flex: 1; overflow-y: auto; padding: 24px; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; text-align: center;
}
.stat-card .val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--primary); display: block; }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 1px; }
.stat-card i { font-size: 24px; margin-bottom: 8px; color: var(--primary); opacity: 0.7; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 10px 12px; background: var(--bg-dark); color: var(--text-muted); text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(0,212,255,0.03); }
.admin-table img { width: 50px; height: 40px; object-fit: cover; border-radius: 4px; }
.admin-section-title { font-family: var(--font-display); font-size: 18px; color: var(--text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.admin-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; border: none; font-family: var(--font-body); font-weight: 600; }
.btn-sm.edit { background: rgba(0,212,255,0.1); color: var(--primary); border: 1px solid var(--border); }
.btn-sm.delete { background: rgba(255,71,87,0.1); color: var(--danger); border: 1px solid rgba(255,71,87,0.2); }

/* ---- PROJECT DETAIL ---- */
.project-detail { padding: 0; }
.project-detail-header { position: sticky; top: 0; z-index: 2; }
.gallery-main { width: 100%; height: 400px; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px 24px; background: var(--bg-dark); overflow-x: auto; }
.gallery-thumb { width: 70px; height: 56px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.6; transition: var(--transition); border: 2px solid transparent; }
.gallery-thumb.active { opacity: 1; border-color: var(--primary); }
.project-detail-body { padding: 24px; }
.project-detail-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); }
.meta-item i { color: var(--primary); }
.section-subtitle { font-family: var(--font-display); font-size: 15px; color: var(--primary); margin: 20px 0 10px; letter-spacing: 1px; }
.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-desc { color: var(--text-muted); font-size: 15px; line-height: 1.8; white-space: pre-line; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 10px 20px; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---- TOAST ---- */
#toastContainer { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--bg-card2); border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  font-size: 14px; font-family: var(--font-body);
  min-width: 280px; max-width: 400px;
  animation: toastIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.info    i { color: var(--primary); }
@keyframes toastIn { from { transform: translateX(100px); opacity: 0; } }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; height: auto; overflow-x: auto; }
  .admin-tab { padding: 8px 14px; font-size: 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat span { font-size: 22px; }
}
@media (max-width: 480px) {
  .hero-title .line2 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
}

/* ── Google Sign-In Button ──────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-top: 4px;
}
.btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.btn-google:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Divider between primary button and Google button ───── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--text-muted, #888);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
