/* ============================================
   PORTAFOLIO — COMPONENTS v5
   "Neon Glass" — Dark Interactive
   ============================================ */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  padding: 0.85rem 2.2rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  background: linear-gradient(135deg, #6d28d9, var(--cyan));
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.85rem 2.2rem;
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.btn-small { padding: 0.45rem 1.1rem; font-size: var(--text-xs); }

.btn-danger {
  background: var(--rose-soft);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--rose-light);
}
.btn-danger:hover { background: rgba(244, 63, 94, 0.2); }

.btn-success {
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.2); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--s-20) var(--s-8);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-5);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: var(--s-8);
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--s-6);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--s-10);
  font-weight: 300;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  min-height: 56px;
}

.hero-cta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-socials {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-10);
  justify-content: center;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.social-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Particles canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated grid lines background */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  top: -15%; right: -10%;
  animation: float 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  bottom: -10%; left: -10%;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.1), transparent 70%);
  top: 40%; left: 50%;
  animation: float 10s ease-in-out infinite 3s;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-12);
  align-items: start;
}

.about-avatar-wrapper { position: relative; }

.about-avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border);
  position: relative;
}

.about-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, transparent 50%, rgba(139, 92, 246, 0.1));
  pointer-events: none;
}

.about-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-2xl);
}

.about-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--s-4);
}

.about-bio {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.9;
  margin-bottom: var(--s-8);
  font-weight: 300;
}

/* Stats cards — glass */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.stat-card {
  padding: var(--s-5);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), transparent); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--emerald), transparent); }

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--s-1);
}

/* Skills */
.skills-section h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--s-4);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--s-2) var(--s-4);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
  font-weight: 500;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.skill-tag .skill-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }

/* About badges */
.about-university,
.about-location {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.about-university:hover,
.about-location:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.about-university .university-icon,
.about-location .location-icon { font-size: var(--text-base); }

/* === PROJECTS === */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-6);
}

/* Project Card — glass card */
.project-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  cursor: none;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.03));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--border-accent);
}

.project-card:hover::before { opacity: 1; }

.project-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(6, 6, 11, 0.9));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--s-6);
  gap: var(--s-3);
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-body { padding: var(--s-5) var(--s-6); position: relative; z-index: 1; }

.project-card-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--s-2);
  background: var(--accent-soft);
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--s-2);
  font-weight: 600;
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.project-card-techs { display: flex; flex-wrap: wrap; gap: 5px; }

.tech-badge {
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 11, 0.6);
  backdrop-filter: blur(16px);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease-out);
}

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

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s var(--ease-spring);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

.modal-gallery { max-width: 720px; }

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 3;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.modal-image { width: 100%; height: 300px; overflow: hidden; position: relative; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--r-full);
  color: var(--text-primary);
  transition: all var(--duration) var(--ease-out);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.modal-close:hover {
  background: var(--rose-soft);
  color: var(--rose-light);
  transform: rotate(90deg);
  border-color: var(--rose);
}

.modal-body { padding: var(--s-8); }

.modal-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent-soft);
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin: var(--s-3) 0 var(--s-4);
}

.modal-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--s-6); font-weight: 300; }
.modal-techs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.modal-links { display: flex; gap: var(--s-4); }

/* Gallery grid in modal */
.modal-gallery-grid {
  border-top: 1px solid var(--border);
  padding-top: var(--s-6);
}

.modal-gallery-item {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-4);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.modal-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-gallery-item:last-child { margin-bottom: 0; }

/* === ADMIN IMAGE GALLERY === */
.admin-images-section {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

.admin-images-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--s-4);
}

.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.admin-image-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

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

.admin-image-delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--r-full);
  color: var(--rose-light);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  opacity: 0;
}

.admin-image-item:hover .admin-image-delete { opacity: 1; }
.admin-image-delete:hover { background: var(--rose-soft); transform: scale(1.1); }

.admin-image-add { display: flex; flex-direction: column; gap: var(--s-2); }
.admin-image-add-row { display: flex; gap: var(--s-2); align-items: flex-end; }
.admin-image-add-row .form-input { flex: 1; }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-12);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--s-4);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: var(--s-8);
  line-height: 1.8;
  font-weight: 300;
}

.contact-methods { display: flex; flex-direction: column; gap: var(--s-3); }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--duration) var(--ease-out);
}

.contact-method:hover {
  transform: translateX(8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.contact-method-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.contact-method:nth-child(2) .contact-method-icon { background: var(--cyan-soft); }
.contact-method:nth-child(3) .contact-method-icon { background: var(--emerald-soft); }
.contact-method:nth-child(4) .contact-method-icon { background: var(--rose-soft); }
.contact-method:nth-child(5) .contact-method-icon { background: var(--amber-soft); }

.contact-method-text { display: flex; flex-direction: column; }
.contact-method-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact-method-value { font-size: var(--text-sm); color: var(--text-primary); font-weight: 500; }

/* Contact form */
.contact-form {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: var(--s-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--s-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease-out);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), var(--shadow-glow);
  background: var(--bg-elevated);
}

.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; }
.form-select option { background: var(--bg-elevated); color: var(--text-primary); }

/* === FOOTER === */
.footer {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.footer-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.footer-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(139, 92, 246, 0.3));
  transition: all var(--duration) var(--ease-out);
}

.footer-logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--s-2);
}

/* === ADMIN === */
.admin-login { max-width: 420px; margin: 0 auto; text-align: center; }
.admin-login h2 { font-size: var(--text-3xl); margin-bottom: var(--s-4); }
.admin-login p { color: var(--text-secondary); margin-bottom: var(--s-8); }

.pin-input-group { display: flex; gap: var(--s-3); justify-content: center; margin-bottom: var(--s-8); }

.pin-input {
  width: 56px; height: 64px; text-align: center;
  font-size: var(--text-2xl); font-weight: 700;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  color: var(--text-primary);
  transition: all var(--duration) var(--ease-out);
}

.pin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1); }
.pin-input.error { border-color: var(--rose); animation: shake 0.5s ease; }

.pin-error { color: var(--rose-light); font-size: var(--text-sm); margin-bottom: var(--s-4); display: none; }
.pin-error.visible { display: block; }

.admin-dashboard { display: none; }
.admin-dashboard.active { display: block; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-8); flex-wrap: wrap; gap: var(--s-4);
}
.admin-header h2 { font-size: var(--text-3xl); }

.admin-tabs {
  display: flex; gap: var(--s-2); margin-bottom: var(--s-8);
  border-bottom: 1px solid var(--border); padding-bottom: var(--s-2);
}

.admin-tab {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full) var(--r-full) 0 0;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.admin-tab:hover { color: var(--text-primary); }
.admin-tab.active { background: var(--accent-soft); color: var(--accent-light); border-bottom: 2px solid var(--accent); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-project-list { display: flex; flex-direction: column; gap: var(--s-3); }

.admin-project-item {
  display: flex; align-items: center; gap: var(--s-5); padding: var(--s-5);
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--duration) var(--ease-out);
}

.admin-project-item:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }

.admin-project-thumb { width: 80px; height: 60px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; }
.admin-project-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-project-info { flex: 1; min-width: 0; }
.admin-project-info h4 { font-family: var(--font-display); font-size: var(--text-base); margin-bottom: 4px; }
.admin-project-info p { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-project-actions { display: flex; gap: var(--s-2); flex-shrink: 0; }

.admin-form { max-width: 600px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

.image-preview {
  width: 100%; max-width: 300px; aspect-ratio: 16/10;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-surface); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--s-2);
}

.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview.has-image { border-style: solid; }

/* Toast */
.toast-container { position: fixed; bottom: var(--s-8); right: var(--s-8); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--s-3); }

.toast {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  color: var(--text-primary);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--s-3);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
  backdrop-filter: blur(12px);
}

.toast.success { border-left: 4px solid var(--emerald); }
.toast.error { border-left: 4px solid var(--rose); }
.toast.info { border-left: 4px solid var(--accent); }

.empty-state { text-align: center; padding: var(--s-16); color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: var(--s-4); opacity: 0.5; }
.empty-state p { margin-bottom: var(--s-5); }

/* === SLIDER === */
.slider { position: relative; overflow: hidden; width: 100%; height: 220px; border-radius: 0; }
.slider-single { width: 100%; height: 100%; overflow: hidden; }
.slider-single img { width: 100%; height: 100%; object-fit: cover; }
.slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s var(--ease-out); }
.slider-slide { min-width: 100%; height: 100%; flex-shrink: 0; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-primary);
  cursor: pointer; z-index: 3;
  opacity: 0;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease-out);
}

.slider:hover .slider-prev, .slider:hover .slider-next { opacity: 1; }
.slider-prev:hover, .slider-next:hover { transform: translateY(-50%) scale(1.1); box-shadow: var(--shadow-glow); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }

.slider-dot {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: none;
}

.slider-dot.active { background: var(--accent-light); transform: scale(1.4); box-shadow: 0 0 8px var(--accent-glow); }
.slider-dot:hover { background: rgba(255, 255, 255, 0.6); }

/* Project badges */
.project-badge-progress {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  padding: 0.25rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700;
  color: var(--amber-light);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.project-badge-school {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  padding: 0.25rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700;
  color: var(--cyan-light);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-avatar-wrapper { max-width: 200px; margin: 0 auto; }
  .about-avatar { aspect-ratio: 1; }
  .about-university, .about-location { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-socials { justify-content: center; }
  .admin-project-item { flex-direction: column; align-items: flex-start; }
  .admin-project-thumb { width: 100%; height: 150px; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .modal-image { height: 200px; }
  .slider { height: 200px; }
  .footer-logo-img { height: 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .slider { height: 180px; }
}