/* ==========================================================================
   Nahid Portfolio - Clean Minimal Bento Grid Design System
   Faithfully matching the Abo reference design:
   - Page background: Soft neutral gray (#e9ebed)
   - Hero Left: Pastel warm mesh gradient card (#fffbeb -> #fef3c7 -> #ecfdf5)
   - Hero Right: Vibrant warm yellow portrait showcase card (#eab308)
   - Works Bento Grid: 2-column cards with signature vibrant colors:
     Periwinkle purple (#5b58eb), Dark charcoal (#222634), Royal blue (#1d4ed8),
     Forest green (#059669), etc.
   - White circular corner arrow buttons (↗)
   - Real screenshot device mockups (phone & browser frames)
   ========================================================================== */

:root {
  /* Layout & Canvas Colors */
  --bg-page: #e9ebed;
  --bg-container: #ffffff;
  --bg-card-subtle: #f7f8fa;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);

  /* Typography Colors */
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  --text-white-sub: rgba(255, 255, 255, 0.85);

  /* Brand & Hero Accent Gradients */
  --hero-dot: #f59e0b;
  --gradient-hero-mesh: linear-gradient(135deg, #fffbeb 0%, #fef3c7 35%, #ecfdf5 70%, #f0fdfa 100%);
  --portrait-bg: #eab308;

  /* Card Color Themes (Abo Inspired Palette) */
  --card-songkhep: #5b58eb;       /* Periwinkle Purple from Abo reference */
  --card-cinearchive: #222634;     /* Dark Charcoal from Abo reference */
  --card-coverpage: #1d4ed8;       /* Royal Blue */
  --card-bangladesh: #059669;      /* Forest Green */
  --card-stock: #0f4c3a;           /* Deep Emerald */
  --card-skydrift: #2563eb;        /* Electric Blue */
  --card-sugarrush: #db2777;       /* Candy Fuchsia */
  --card-boishonkhep: #ea580c;     /* Deep Orange */
  --card-cadabaj: #1e3a5f;         /* Deep Navy */
  --card-pricetrack: #d97706;      /* Amber */
  --card-brain: #0d9488;           /* Teal */
  --card-cleanstream: #0284c7;     /* Sky Cyan */
  --card-screencap: #7c3aed;       /* Royal Violet */
  --card-reels: #c026d3;           /* Magenta */
  --card-wedding: #1e4a3d;         /* Luxury Pine */
  --card-quranlexicon: #0d5c4d;    /* Deep Islamic Emerald */

  /* Shadows */
  --shadow-bento: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 24px 45px -10px rgba(0, 0, 0, 0.16), 0 10px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-mockup: 0 -18px 40px rgba(0, 0, 0, 0.35);

  /* Radius */
  --radius-bento: 28px;
  --radius-inner: 20px;
  --radius-pill: 999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-bn: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

body.lang-bn {
  font-family: var(--font-bn);
}

/* Main Container Wrapper */
.bento-app-container {
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Header Bar (Abo Reference Style)
   ========================================================================== */
.bento-header {
  background: var(--bg-container);
  border-radius: var(--radius-bento);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-bento);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hero-dot);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-smooth);
}

.nav-item-link:hover {
  color: #2563eb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-smooth);
}

.btn-lang-pill:hover {
  background: #e5e7eb;
}

/* ==========================================================================
   Hero Top Bento Row (Exact Abo Style)
   ========================================================================== */
.hero-bento-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

/* Hero Left: Pastel Mesh Card */
.hero-intro-card {
  background: var(--gradient-hero-mesh);
  border-radius: var(--radius-bento);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  box-shadow: var(--shadow-bento);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-intro-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.6) 0%, rgba(209, 250, 229, 0.4) 60%, transparent 100%);
  pointer-events: none;
}

.hero-main-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 24px;
}

.hero-sub-text {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-pill-dark {
  background: #111827;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
  border: none;
  cursor: pointer;
}

.btn-pill-dark:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-circle-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn-social-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  color: #000000;
}

/* Hero Right: Portrait Showcase Card (Exact Abo Vibe on Yellow) */
.hero-portrait-card {
  background: var(--portrait-bg);
  border-radius: var(--radius-bento);
  overflow: hidden;
  box-shadow: var(--shadow-bento);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 440px;
}

.portrait-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-avatar-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: #111827;
}

.avatar-badge-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #111827;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.avatar-name-tag {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.avatar-title-tag {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.status-badge-floating {
  position: absolute;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.badge-live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   Works / Projects Filter & Bento Grid
   ========================================================================== */
.works-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works-header-bar {
  background: var(--bg-container);
  border-radius: var(--radius-bento);
  padding: 24px 32px;
  box-shadow: var(--shadow-bento);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.works-title-group {
  display: flex;
  flex-direction: column;
}

.works-heading {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.works-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-filter {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.pill-filter:hover {
  background: #e5e7eb;
}

.pill-filter.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Projects 2-Column Bento Grid */
.bento-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Individual Bento Card */
.bento-card {
  border-radius: var(--radius-bento);
  padding: 36px 36px 0 36px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-bento);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  color: #ffffff;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Specific Card Color Variations (Vibrant Abo Palette) */
.bento-card.card-songkhep { background: var(--card-songkhep); }
.bento-card.card-cinearchive { background: var(--card-cinearchive); }
.bento-card.card-coverpage { background: var(--card-coverpage); }
.bento-card.card-bangladesh { background: var(--card-bangladesh); }
.bento-card.card-stock { background: var(--card-stock); }
.bento-card.card-skydrift { background: var(--card-skydrift); }
.bento-card.card-sugarrush { background: var(--card-sugarrush); }
.bento-card.card-boishonkhep { background: var(--card-boishonkhep); }
.bento-card.card-cadabaj { background: var(--card-cadabaj); }
.bento-card.card-pricetrack { background: var(--card-pricetrack); }
.bento-card.card-brain { background: var(--card-brain); }
.bento-card.card-cleanstream { background: var(--card-cleanstream); }
.bento-card.card-screencap { background: var(--card-screencap); }
.bento-card.card-reels { background: var(--card-reels); }
.bento-card.card-wedding { background: var(--card-wedding); }
.bento-card.card-quranlexicon { background: var(--card-quranlexicon); }

/* Card Top Bar */
.card-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.card-title-group {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-white-sub);
  font-weight: 500;
}

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.badge-pages-dev {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.badge-tag-pill {
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Up-Right Arrow Button (Abo Style) */
.btn-arrow-corner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-smooth);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.btn-arrow-corner:hover {
  transform: scale(1.1) rotate(45deg);
  background: #f8fafc;
}

/* ==========================================================================
   Real Screenshot Mockup Showcase (Peeking From Bottom)
   ========================================================================== */
.card-mockup-showcase {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Real Phone Frame with Screenshot */
.mockup-phone-frame {
  width: 280px;
  height: 360px;
  background: #0f172a;
  border: 7px solid #1e293b;
  border-bottom: none;
  border-radius: 36px 36px 0 0;
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-smooth);
}

.bento-card:hover .mockup-phone-frame {
  transform: translateY(-8px);
}

.phone-speaker-notch {
  width: 80px;
  height: 6px;
  background: #334155;
  border-radius: 999px;
  margin: 8px auto 6px auto;
  flex-shrink: 0;
}

.phone-screen-img-wrapper {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
}

.mockup-real-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.bento-card:hover .mockup-real-screenshot-img {
  transform: scale(1.04);
}

/* Real Desktop / Tablet Browser Frame with Screenshot */
.mockup-dashboard-frame {
  width: 420px;
  height: 340px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-mockup);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-smooth);
}

.bento-card:hover .mockup-dashboard-frame {
  transform: translateY(-8px);
}

.browser-header-bar {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

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

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }

.browser-url-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  max-width: 260px;
}

.browser-screen-img-wrapper {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  background: #090d16;
  position: relative;
}

/* Quick Action Links on Card Footer */
.card-bottom-actions {
  position: absolute;
  bottom: 18px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
}

.bento-card:hover .card-bottom-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-card-sandbox {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-card-sandbox:hover {
  background: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   About & Skills Bento Row
   ========================================================================== */
.about-skills-bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.white-bento-card {
  background: var(--bg-container);
  border-radius: var(--radius-bento);
  padding: 40px;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento-text-body {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.skill-pills-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag-large {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Contact Card & Footer
   ========================================================================== */
.contact-bento-card {
  background: var(--bg-container);
  border-radius: var(--radius-bento);
  padding: 48px;
  box-shadow: var(--shadow-bento);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-callout-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

.footer-bar {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   In-Browser Live Sandbox Modal
   ========================================================================== */
.sandbox-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.sandbox-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sandbox-modal-box {
  background: #ffffff;
  border-radius: var(--radius-bento);
  width: 100%;
  max-width: 1080px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.sandbox-modal-header {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sandbox-title-text {
  font-weight: 800;
  font-size: 1.1rem;
}

.sandbox-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-modal-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #334155;
  transition: all var(--transition-smooth);
}

.btn-modal-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sandbox-iframe-wrapper {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.sandbox-iframe-el {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-bento-row {
    grid-template-columns: 1fr;
  }
  .bento-projects-grid {
    grid-template-columns: 1fr;
  }
  .about-skills-bento-row {
    grid-template-columns: 1fr;
  }
  .mockup-dashboard-frame {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px 12px;
  }
  .bento-header {
    padding: 16px 20px;
  }
  .nav-menu {
    display: none;
  }
  .hero-intro-card {
    padding: 36px 24px;
  }
  .bento-card {
    padding: 24px 24px 0 24px;
    min-height: 460px;
  }
  .mockup-dashboard-frame {
    width: 100%;
  }
}
