@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --neon-cyan: #00f2fe;
  --neon-cyan-glow: rgba(0, 242, 254, 0.4);
  --neon-orange: #ff6b00;
  --neon-orange-glow: rgba(255, 107, 0, 0.4);
  --neon-purple: #bd00ff;
  --neon-purple-glow: rgba(189, 0, 255, 0.4);
  
  --glass-bg: rgba(10, 12, 28, 0.35);
  --glass-bg-hover: rgba(15, 20, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(0, 242, 254, 0.25);
  
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
}

/* Base resets & styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url('../images/anime_city_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Atmospheric Overlay Layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 12, 28, 0.2) 0%, rgba(5, 7, 15, 0.75) 100%);
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 7, 15, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(5, 7, 15, 0.8);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover {
  border-color: var(--glass-border-glow);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Navigation Dock (Header) */
header.floating-dock {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1100px;
  z-index: 1000;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 12, 28, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

header.floating-dock:hover {
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.08), inset 0 1px 0 rgba(255,255,255,0.08);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.logo-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse-glow 2s infinite;
}

nav.dock-nav {
  display: flex;
  gap: 8px;
}

nav.dock-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

nav.dock-nav a:hover, nav.dock-nav a.active {
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.15);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Page Layout Container */
main.content-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 110px auto 100px; /* Space for fixed header/footer docks */
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Hero Section */
.hero-panel {
  text-align: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  text-shadow: 0 0 10px var(--neon-orange-glow);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 15px;
  background: linear-gradient(to right, #ffffff, #dcdde1, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 35px;
  color: var(--text-secondary);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--neon-orange), #ff4500);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: ctaPulse 2s infinite ease-in-out;
}

.hero-cta-btn:hover {
  background: linear-gradient(135deg, var(--neon-cyan), #00b4d8) !important;
  box-shadow: 0 15px 25px rgba(0, 242, 254, 0.35), 0 0 15px rgba(0, 242, 254, 0.4);
  animation: ctaHoverPulse 1.5s infinite ease-in-out;
}

.hero-cta-btn svg {
  transition: transform 0.3s ease;
}

.hero-cta-btn:hover svg {
  transform: translateX(4px);
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.45), 0 0 15px rgba(255, 107, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1);
  }
}

@keyframes ctaHoverPulse {
  0% {
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.35), 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-3px) scale(1.03);
  }
  50% {
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.55), 0 0 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-3px) scale(1.06);
  }
  100% {
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.35), 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-3px) scale(1.03);
  }
}

/* Futuristic OS Console Widget */
.os-console {
  margin-top: 40px;
  text-align: left;
  background: rgba(5, 7, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.console-header {
  background: rgba(15, 20, 35, 0.8);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-dot.red { background-color: #ff5f56; }
.console-dot.yellow { background-color: #ffbd2e; }
.console-dot.green { background-color: #27c93f; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.console-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a9b7c6;
  line-height: 1.7;
}

.console-line {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
}

.console-prompt {
  color: var(--neon-cyan);
  margin-right: 10px;
  user-select: none;
}

.console-key {
  color: var(--text-muted);
  margin-right: 5px;
}

.console-value {
  color: #ffffff;
}

.console-value.highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.console-value.highlight-orange {
  color: var(--neon-orange);
  text-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

/* Skills & Journey Grid */
.journey-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 850px) {
  .journey-section {
    grid-template-columns: 1fr;
  }
}

.journey-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-card {
  padding: 35px;
}

.section-card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  border-left: 4px solid var(--neon-cyan);
  padding-left: 15px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Glass tag pills */
.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-pill:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  transform: translateY(-2px);
}

/* Timeline Components */
.timeline-track {
  position: relative;
  padding-left: 30px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

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

.timeline-node {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--glass-bg);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-node {
  border-color: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  background-color: #fff;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 5px;
  display: block;
}

.timeline-item:nth-child(even) .timeline-meta {
  color: var(--neon-purple);
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Filter Controls (Portfolio Showcase) */
.filter-dock {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  max-width: fit-content;
  margin: 0 auto 40px;
  border-radius: 50px;
  background: rgba(10, 12, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.filter-pill.active {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-glow);
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

/* Portfolio Asymmetrical Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  grid-auto-flow: dense;
}

/* Grid sizes for asymmetric feel */
.portfolio-card {
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.portfolio-card.tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 790px;
}

.portfolio-card.medium {
  grid-column: span 7;
  min-height: 380px;
}

.portfolio-card.wide {
  grid-column: span 12;
  min-height: 420px;
}

@media (max-width: 900px) {
  .portfolio-card,
  .portfolio-card.tall,
  .portfolio-card.medium,
  .portfolio-card.wide {
    grid-column: span 12 !important;
    grid-row: span 1 !important;
    min-height: 400px !important;
  }
}

.portfolio-img-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 28, 0.8) 0%, rgba(10, 12, 28, 0.1) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 0.95;
}

.portfolio-cat-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  background: rgba(10, 12, 28, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  z-index: 10;
}

.portfolio-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.portfolio-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Contact Page Components */
.contact-wrapper-card {
  max-width: 760px;
  margin: 40px auto;
  padding: 50px 40px;
  text-align: center;
}

.contact-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 50px;
}

.contact-main-btn:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15), 0 0 15px rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .contact-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-social-card:hover {
  background: rgba(0, 242, 254, 0.03);
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateY(-4px);
}

.contact-social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-social-card:hover .contact-social-icon {
  color: var(--neon-cyan);
}

.contact-social-name {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-social-handle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Footer / Socials Dock */
footer.social-dock-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: fit-content;
  z-index: 1000;
  padding: 10px 24px;
  background: rgba(10, 12, 28, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

footer.social-dock-wrapper:hover {
  border-color: rgba(255, 107, 0, 0.2);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.08);
}

.social-dock-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 15px;
  letter-spacing: 0.5px;
}

.social-dock-icons {
  display: flex;
  gap: 8px;
}

.social-dock-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.social-dock-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-dock-icon-btn:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.25);
  color: var(--neon-orange);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.2);
  transform: translateY(-3px) scale(1.08);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 5px var(--neon-cyan);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-cyan);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 5px var(--neon-cyan);
  }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  header.floating-dock {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 24px;
    width: calc(100% - 30px);
    top: 15px;
  }
  
  nav.dock-nav {
    width: 100%;
    justify-content: center;
  }
  
  nav.dock-nav a {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  main.content-wrapper {
    margin-top: 150px;
    margin-bottom: 90px;
    gap: 40px;
  }

  .hero-panel {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  footer.social-dock-wrapper {
    width: calc(100% - 30px);
    justify-content: center;
    bottom: 15px;
    gap: 10px;
    padding: 8px 15px;
  }

  .social-dock-label {
    display: none; /* Hide label on mobile to save space */
  }
}

/* Subcategory Badge styling */
.portfolio-subcategory {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--neon-orange-glow);
  opacity: 0.5;
}

/* Dropdown description button interactivity */
.desc-toggle-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.desc-toggle-btn:active {
  transform: scale(0.95);
}

/* Back button style */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}
.back-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  transform: translateX(-3px);
}

/* Detail panel styles */
.detail-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.detail-img-container {
  width: 100%;
  max-height: 700px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.detail-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgba(5, 7, 15, 0.5);
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 25px;
  margin-top: 10px;
}
@media (max-width: 650px) {
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.detail-meta-val {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
}
.detail-description-section {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Admin Dashboard Styles */
.admin-login-wrapper {
  max-width: 480px;
  margin: 100px auto;
  padding: 40px;
}
.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.admin-input-field {
  background: rgba(5, 7, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: 100%;
}
.admin-input-field:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  background: rgba(10, 12, 28, 0.8);
}
textarea.admin-input-field {
  font-family: var(--font-body);
  resize: vertical;
  min-height: 100px;
}
.admin-action-btn {
  background: linear-gradient(135deg, var(--neon-cyan), #4facfe);
  color: #05070f;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.admin-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}
.admin-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.admin-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.admin-action-btn.danger {
  background: linear-gradient(135deg, #ff5f56, #cc2e2e);
  color: #fff;
}
.admin-action-btn.danger:hover {
  box-shadow: 0 8px 20px rgba(255, 95, 86, 0.3);
}
.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
@media (max-width: 900px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-main-view {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.admin-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.15);
}
.admin-list-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-list-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-list-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
}
.admin-list-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-list-actions {
  display: flex;
  gap: 8px;
}
.admin-list-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}
.admin-list-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.admin-list-btn.delete-btn:hover {
  border-color: #ff5f56;
  color: #ff5f56;
}
.admin-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(5, 7, 15, 0.3);
}
.admin-upload-zone:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.02);
}
.admin-upload-zone svg {
  margin-bottom: 10px;
  color: var(--text-muted);
}
.admin-upload-zone.has-file {
  border-color: #27c93f;
  background: rgba(39, 201, 63, 0.02);
}
.admin-upload-preview {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 10px;
}

/* Card sizes expansion: small and square */
.portfolio-card.small {
  grid-column: span 3;
  min-height: 280px;
}

.portfolio-card.square {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
  min-height: auto;
}

@media (max-width: 900px) {
  .portfolio-card.small,
  .portfolio-card.square {
    grid-column: span 6 !important;
    aspect-ratio: auto !important;
    min-height: 340px !important;
  }
}

@media (max-width: 600px) {
  .portfolio-card.small,
  .portfolio-card.square {
    grid-column: span 12 !important;
    min-height: 340px !important;
  }
}

/* Uncommitted Changes Alert */
.uncommitted-alert {
  background: rgba(255, 107, 0, 0.12) !important;
  border: 1px solid var(--neon-orange) !important;
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: border-flash-orange 2s infinite;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

@keyframes border-flash-orange {
  0% { border-color: rgba(255, 107, 0, 0.4); box-shadow: 0 0 5px rgba(255, 107, 0, 0.05); }
  50% { border-color: rgba(255, 107, 0, 1); box-shadow: 0 0 15px rgba(255, 107, 0, 0.25); }
  100% { border-color: rgba(255, 107, 0, 0.4); box-shadow: 0 0 5px rgba(255, 107, 0, 0.05); }
}

/* Category Manager Styles */
.category-manager-card {
  margin-top: 25px;
  padding: 25px;
}
.category-manager-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  border-left: 3px solid var(--neon-orange);
  padding-left: 10px;
}
.category-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.category-pill-editable {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 30px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.category-pill-editable:hover {
  border-color: rgba(255, 95, 86, 0.3);
  color: #fff;
  background: rgba(255, 95, 86, 0.05);
}
.category-pill-delete {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: bold;
  transition: color 0.2s ease;
}
.category-pill-delete:hover {
  color: #ff5f56;
}