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

/* CSS Reset & Variables */
:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 17, 33, 0.6);
  --bg-nav: rgba(7, 9, 19, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 43, 226, 0.2);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary-glow: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Interactive Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* Background Gradients (Decorative & Animated) */
.bg-gradient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 100%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

.glow-top-left {
  top: -200px;
  left: -200px;
  animation: float-glow 25s infinite ease-in-out;
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  animation: float-glow-reverse 30s infinite ease-in-out;
}

.glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  width: 700px;
  height: 700px;
}

@keyframes float-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(120px, 80px) scale(1.15);
  }
}

@keyframes float-glow-reverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-100px, -120px) scale(1.2);
  }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

/* Layout Utilities */
section {
  padding: 100px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-glow);
  border-radius: 2px;
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glass-hover:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.15);
  transform: translateY(-5px);
}

/* Sticky Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after, .nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-glow);
  border-radius: 2px;
}

/* Navbar Toggle for Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-glow);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent-purple);
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
}

.hero-subtitle {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-typing {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  height: 40px;
}

.hero-typing .typed-text {
  color: var(--text-main);
  font-weight: 600;
}

.hero-typing .cursor {
  display: inline-block;
  background-color: var(--accent-purple);
  width: 3px;
  margin-left: 4px;
  animation: blink 0.75s infinite;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
}

.hero-socials a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.hero-socials a:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-box {
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.25rem;
}

.highlight-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.avatar-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.avatar-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(7, 9, 19, 0.8));
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--accent-purple);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.about-visual:hover::before {
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  opacity: 1;
}

.about-visual:hover .avatar-wrapper img {
  transform: scale(1.05);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skills-category {
  padding: 2.2rem;
  transition: var(--transition-smooth);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title i {
  color: var(--accent-purple);
  font-size: 1.4rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.skill-name {
  font-weight: 500;
}

.skill-pct {
  color: var(--text-muted);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-glow);
  border-radius: 3px;
  width: 0; /* Animated via JS */
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  height: 100%;
}

.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 4rem;
}

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

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

.project-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--accent-cyan);
}

/* GitHub Contributions Section */
.github-contributions {
  text-align: center;
  padding: 60px 2rem;
}

.github-calendar {
  display: inline-block;
  padding: 2rem;
  margin-top: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.calendar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(53, 12px);
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  margin-top: 1.5rem;
}

.calendar-day {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.calendar-day.level-1 { background-color: #0e4429; }
.calendar-day.level-2 { background-color: #006d32; }
.calendar-day.level-3 { background-color: #26a641; }
.calendar-day.level-4 { background-color: #39d353; }

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  transition: var(--transition-smooth);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.25rem;
}

.contact-card:hover .contact-icon {
  background: var(--primary-glow);
  color: #fff;
}

.contact-detail h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0;
}

.contact-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(7, 9, 19, 0.9);
}

footer p {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes blink {
  50% { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-grid, .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-typing {
    font-size: 1.4rem;
  }
  section {
    padding: 80px 1.5rem 60px;
  }
  .contact-form {
    padding: 1.5rem;
  }

}

/* Project Image Link wrapper */
.project-img-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

/* Project Detail Page Styles */
.detail-container {
  max-width: 1100px;
  margin: 120px auto 80px;
  padding: 0 2rem;
  position: relative;
}

.detail-back-btn {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.detail-back-btn:hover {
  color: var(--accent-purple);
  transform: translateX(-5px);
}

.detail-banner {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.detail-title-group h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.detail-title-group p {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4rem;
}

.detail-main h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.detail-main h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-glow);
  border-radius: 2px;
}

.detail-main p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-cyan);
}

.detail-sidebar-box {
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-sidebar-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.detail-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-sidebar-tags span {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.detail-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-action-buttons .btn {
  width: 100%;
}

/* Edit Modal Overlay */
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.edit-modal.active {
  opacity: 1;
  pointer-events: all;
}

.edit-modal-content {
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

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

.edit-modal h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edit-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edit-list-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.edit-list-item input {
  flex-grow: 1;
}

.remove-item-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.remove-item-btn:hover {
  background: #ef4444;
  color: #fff;
}

.add-item-btn {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.add-item-btn:hover {
  background: var(--accent-green);
  color: #fff;
}

@media (max-width: 992px) {
  .detail-container {
    margin: 100px auto 60px;
    padding: 0 1.5rem;
  }
  .detail-banner {
    height: 300px;
    margin-bottom: 2rem;
  }
  .detail-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .detail-header .btn {
    width: 100%;
  }
  .detail-body-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .edit-modal-content {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Skill Badge Styles */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.skill-badge i {
  color: var(--accent-cyan);
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.skill-badge:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.15);
}

.skill-badge:hover i {
  color: var(--accent-purple);
  transform: scale(1.1);
}


/* Details Page Video Player */
.detail-video-container {
  position: relative;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 2.5rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Details Page Screenshot Carousel */
.gallery-section {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
}

.gallery-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.screenshot-carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.carousel-track-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 0.5rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 280px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  transform: translateY(-50%) scale(1.1);
  color: #fff;
}

.prev-btn {
  left: -22px;
}

.next-btn {
  right: -22px;
}

/* Screenshot Lightbox Modal Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #fff;
}