/* ============================================
   BASUDEB KUMAR SAHA — PORTFOLIO STYLES
   Palette: Acid Neon | Retro-Futuristic
   ============================================ */

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

/* ---- CSS VARIABLES ---- */
:root {
  --neon-green: #CCFF00;
  --neon-pink: #FF3CAC;
  --bg-dark: #0D0D0D;
  --bg-card: #141414;
  --bg-card2: #1A1A1A;
  --text-primary: #F0F0F0;
  --text-muted: #888888;
  --border: rgba(204, 255, 0, 0.15);
  --font: 'Plus Jakarta Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 3px; }

/* ---- CONTAINER ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--neon-green);
  color: #0D0D0D;
}
.btn-primary:hover {
  background: #d4ff1a;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--neon-green);
  border: 1.5px solid var(--neon-green);
}
.btn-outline:hover {
  background: rgba(204, 255, 0, 0.08);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---- SECTION LABELS ---- */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-pink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #F0F0F0 0%, #CCFF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 0.05em;
}
.dot { color: var(--neon-pink); }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--neon-green);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--neon-green); }
.nav-links a:hover::after { width: 100%; }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--neon-green);
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,255,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,60,172,0.08) 0%, transparent 70%);
}
.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease both;
}
.hero-tag {
  display: inline-block;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--neon-green);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}
.name-last { color: var(--neon-green); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--neon-pink);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* GLITCH EFFECT */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--neon-pink);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--neon-green);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.7; }
  94% { transform: translate(3px, -1px); opacity: 0.7; }
  96% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, 2px); opacity: 0.7; }
  95% { transform: translate(-3px, -2px); opacity: 0.7; }
  97% { transform: translate(0); opacity: 0; }
}

/* AVATAR */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.avatar-ring {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-inner {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.3), 0 0 80px rgba(255, 60, 172, 0.2);
}
.avatar-initials {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0D0D0D;
  letter-spacing: 0.05em;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}
.ring-1 {
  width: 200px; height: 200px;
  border-color: rgba(204, 255, 0, 0.3);
  animation-duration: 8s;
}
.ring-2 {
  width: 240px; height: 240px;
  border-color: rgba(255, 60, 172, 0.2);
  animation-duration: 12s;
  animation-direction: reverse;
}
.ring-3 {
  width: 280px; height: 280px;
  border-color: rgba(204, 255, 0, 0.1);
  animation-duration: 20s;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f0f 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text strong { color: var(--neon-green); }
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-green);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:hover { color: var(--text-primary); }
.info-icon { font-size: 1.2rem; }

/* ============================================
   SKILLS
   ============================================ */
.skills {
  padding: 100px 0;
  background: var(--bg-dark);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.skill-card:hover {
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; }
.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.skill-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   FILES SECTION
   ============================================ */
.files-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(204, 255, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  background: rgba(204, 255, 0, 0.02);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 40px;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--neon-green);
  background: rgba(204, 255, 0, 0.05);
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.1);
}
.upload-icon { font-size: 3rem; margin-bottom: 16px; }
.upload-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.upload-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.upload-btn { pointer-events: all; }

/* Files Header */
.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.files-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.file-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-green);
  color: #0D0D0D;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  margin-left: 8px;
}

/* Files Grid */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
  position: relative;
}
.file-card:hover {
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.file-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.file-preview .file-type-icon {
  font-size: 2.5rem;
}
.file-info { flex: 1; }
.file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.file-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.file-actions {
  display: flex;
  gap: 8px;
}
.file-action-btn {
  flex: 1;
  padding: 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: var(--transition);
}
.btn-download {
  background: rgba(204, 255, 0, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(204, 255, 0, 0.2);
}
.btn-download:hover { background: rgba(204, 255, 0, 0.2); }
.btn-delete {
  background: rgba(255, 60, 172, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 60, 172, 0.2);
}
.btn-delete:hover { background: rgba(255, 60, 172, 0.2); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--bg-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateX(4px);
}
.contact-icon { font-size: 1.5rem; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contact-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer strong { color: var(--neon-green); }
.heart { color: var(--neon-pink); animation: heartbeat 1.5s infinite; }
.footer-sub { font-size: 0.8rem; margin-top: 6px; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--neon-green);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .navbar { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-status { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 90px 20px 50px; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .nav-links { display: none; }
  .files-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}