/* ============================================
   NETFLIX PORTFOLIO — Design System
   Shlok Parekh
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-card: #232323;
  --bg-hover: #2a2a2a;
  --netflix-red: #E50914;
  --netflix-red-hover: #f6121d;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --gradient-hero: linear-gradient(to top,
      var(--bg-primary) 0%,
      rgba(20, 20, 20, 0.8) 30%,
      rgba(20, 20, 20, 0.4) 60%,
      transparent 100%);
  --gradient-hero-left: linear-gradient(to right,
      var(--bg-primary) 0%,
      rgba(20, 20, 20, 0.6) 40%,
      transparent 70%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-modal: 0 8px 60px rgba(0, 0, 0, 0.8);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s ease;
  --transition-slow: 0.8s ease;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --navbar-height: 64px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* ============================================
   SCREEN 1: NETFLIX INTRO
   ============================================ */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex;
}

#intro-screen {
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind text */
#intro-screen::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(229, 9, 20, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--netflix-red);
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: introZoom 3.5s ease-in-out forwards;
  z-index: 1;
  text-shadow: 0 0 40px rgba(229, 9, 20, 0.3);
}

@keyframes introZoom {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(4px);
  }

  20% {
    opacity: 1;
    filter: blur(0);
  }

  70% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
    filter: blur(2px);
  }
}

/* Intro sound wave bars (decorative) */
.intro-bars {
  position: absolute;
  bottom: 40%;
  display: flex;
  gap: 4px;
  z-index: 1;
  opacity: 0;
  animation: fadeBars 3.5s ease forwards;
}

@keyframes fadeBars {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
  }
}

.intro-bars span {
  display: block;
  width: 3px;
  background: var(--netflix-red);
  border-radius: 2px;
  animation: barPulse 0.6s ease-in-out infinite alternate;
}

.intro-bars span:nth-child(1) {
  height: 12px;
  animation-delay: 0s;
}

.intro-bars span:nth-child(2) {
  height: 20px;
  animation-delay: 0.1s;
}

.intro-bars span:nth-child(3) {
  height: 28px;
  animation-delay: 0.2s;
}

.intro-bars span:nth-child(4) {
  height: 16px;
  animation-delay: 0.3s;
}

.intro-bars span:nth-child(5) {
  height: 24px;
  animation-delay: 0.15s;
}

@keyframes barPulse {
  from {
    transform: scaleY(0.5);
  }

  to {
    transform: scaleY(1.2);
  }
}

/* ============================================
   SCREEN 2: WHO'S WATCHING
   ============================================ */
#profile-screen {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  gap: 48px;
}

.profile-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text-primary);
  animation: fadeInUp 0.6s ease forwards;
}

.profiles-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.profile-card:hover {
  transform: scale(1.08);
}

.profile-card:hover .profile-avatar {
  outline-color: var(--text-primary);
}

.profile-card:hover .profile-name {
  color: var(--text-primary);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: outline-color var(--transition-fast);
  position: relative;
  background: var(--bg-primary);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.profile-name {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: 0.5px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCREEN 3: BROWSE PAGE
   ============================================ */
#browse-screen {
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background var(--transition-med);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.navbar.scrolled {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--netflix-red);
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: text-shadow var(--transition-fast);
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--netflix-red);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-profile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.nav-profile:hover {
  border-color: var(--text-primary);
}

.nav-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-left);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 48px 80px;
  max-width: 700px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--netflix-red);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--netflix-red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #d4d4d4;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(109, 109, 110, 0.5);
  transform: translateY(-1px);
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Category Rows ---------- */
.browse-content {
  position: relative;
  z-index: 5;
  margin-top: 20px;
  /* moved below the initial image */
  padding-bottom: 80px;
}

.category-row {
  padding: 0 48px;
  margin-bottom: 48px;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title .explore {
  font-size: 0.85rem;
  color: var(--netflix-red);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-weight: 400;
}

.category-row:hover .explore {
  opacity: 1;
}

.cards-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 0;
  cursor: grab;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.cards-slider:active {
  cursor: grabbing;
}

/* ---------- Cards ---------- */
.card {
  flex-shrink: 0;
  width: 250px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, z-index 0s;
  scroll-snap-align: start;
  background: var(--bg-card);
}

.card:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition-delay: 0s;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05); /* Slight inner zoom */
  filter: brightness(1.1); /* Slightly brighten image */
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Text at bottom */
  align-items: flex-start; /* Text aligned left */
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s ease;
}

.card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.card-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-align: left;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
}

.card:hover .card-label {
  transform: translateY(-2px);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-secondary);
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  animation: modalSlideUp 0.4s ease forwards;
  position: relative;
  margin-top: 0;
}

/* Wide modal for timeline */
.modal.modal-wide {
  max-width: 100vw;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
}

.modal-hero {
  display: none;
}

.modal-body {
  padding: 32px 40px 48px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-meta-tag {
  font-size: 0.85rem;
  color: #46d369;
  font-weight: 600;
}

.modal-meta-tag.muted {
  color: var(--text-muted);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Skills — Categorized Sections */
.skills-section {
  margin-bottom: 40px;
}

.skills-section:last-child {
  margin-bottom: 0;
}

.skills-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.skills-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--netflix-red);
  margin: 8px auto 0;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.skill-card {
  background: #1a1a1a;
  border-radius: 12px;
  width: 180px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card-icon img {
  max-width: 100%;
  max-height: 100%;
  /* Convert ANY SVG to Red #e50914 */
  filter: brightness(0) saturate(100%) invert(21%) sepia(87%) saturate(5833%) hue-rotate(349deg) brightness(97%) contrast(106%);
}

.skill-card-icon.linux-orange img {
  filter: brightness(0) saturate(100%) invert(61%) sepia(61%) saturate(2550%) hue-rotate(1deg) brightness(105%) contrast(106%);
}

.skill-card-icon.no-filter img {
  filter: none;
}

.skill-card-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card-subtitle {
  color: #888;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Experience — Alternating Center Timeline */
.shlok-timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 20px;
}

.shlok-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.tl-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.tl-entry:last-child {
  margin-bottom: 0;
}

/* Dot on the center line */
.shlok-dot {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  transform: translateX(-50%);
  z-index: 2;
}

.shlok-dot.blue {
  background: #1eaaf1;
}

.shlok-dot.pink {
  background: #ff80bf;
}

.shlok-dot.green {
  background: #28c76f;
}

.shlok-dot svg {
  width: 18px;
  height: 18px;
}

/* Left card */
.tl-entry.left .shlok-card {
  width: 45%;
  margin-right: auto;
}

.tl-entry.left .tl-date {
  position: absolute;
  right: 0;
  top: 15px;
  width: 45%;
  text-align: left;
  padding-left: 50px;
}

/* Right card */
.tl-entry.right .shlok-card {
  width: 45%;
  margin-left: auto;
}

.tl-entry.right .tl-date {
  position: absolute;
  left: 0;
  top: 15px;
  width: 45%;
  text-align: right;
  padding-right: 50px;
}

.shlok-card {
  background: #f4f4f4;
  padding: 24px;
  border-radius: 4px;
  position: relative;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shlok-card.bg-pink {
  background: #ffe6eb;
}

/* Tails */
.tl-entry.left .shlok-card::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 24px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #f4f4f4;
}

.tl-entry.left .shlok-card.bg-pink::after {
  border-color: transparent transparent transparent #ffe6eb;
}

.tl-entry.right .shlok-card::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 24px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #f4f4f4 transparent transparent;
}

.tl-entry.right .shlok-card.bg-pink::after {
  border-color: transparent #ffe6eb transparent transparent;
}

.shlok-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.shlok-card .tl-company {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.shlok-card .tl-bullets {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.8;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shlok-card .tl-bullets p {
  margin-bottom: 8px;
}

.tl-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  margin-top: 24px;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .shlok-timeline::before {
    left: 20px;
  }

  .shlok-dot {
    left: 20px;
  }

  .tl-entry.left .shlok-card,
  .tl-entry.right .shlok-card {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-right: 0;
  }

  .tl-entry.left .tl-date,
  .tl-entry.right .tl-date {
    position: relative;
    width: auto;
    text-align: left;
    padding: 0 0 12px 60px;
    top: 0;
  }
}

/* Projects — Grid */
.shlok-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 10px;
}

.shlok-proj-link {
  text-decoration: none;
  display: block;
}

.shlok-proj-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shlok-proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.15);
}

.shlok-proj-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid var(--netflix-red);
}

.shlok-proj-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shlok-proj-content h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.shlok-proj-content p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(229, 9, 20, 0.1);
  color: var(--netflix-red);
  border-radius: 4px;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Certifications — Grid Cards */
.shlok-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.shlok-cert-card {
  background: #202020;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.shlok-cert-card:hover {
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cert-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cert-logo svg,
.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-ext-icon {
  margin-top: 4px;
}

.cert-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cert-middle h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cert-middle p {
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cert-bottom {
  font-size: 0.75rem;
  color: #666;
  min-height: 16px;
}

/* Legacy certs-list (used for music) */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.cert-item:hover {
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateX(4px);
}

.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-info h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Education */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edu-item {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--netflix-red);
  transition: all var(--transition-fast);
}

.edu-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.edu-item h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-item .edu-school {
  color: var(--netflix-red);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.edu-item .edu-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-link:hover {
  border-color: var(--netflix-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.1);
}

.contact-link .contact-icon {
  font-size: 1.8rem;
}

.contact-link .contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-link .contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--netflix-red);
  transition: color var(--transition-fast);
}

.footer-text a:hover {
  color: var(--netflix-red-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .card {
    width: 200px;
    height: 120px;
  }

  .card:hover {
    transform: scale(1.15);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 0 20px 60px;
  }

  .category-row {
    padding: 0 20px;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
  }

  .profiles-grid {
    gap: 20px;
  }

  .card {
    width: 160px;
    height: 95px;
  }

  .card:hover {
    transform: scale(1.1);
  }

  .modal {
    margin-top: 20px;
  }

  .modal-body {
    padding: 24px 20px 36px;
  }

  .modal-hero {
    height: 200px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 70vh;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profiles-grid {
    gap: 16px;
  }

  .profile-name {
    font-size: 0.8rem;
  }

  .card {
    width: 140px;
    height: 85px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utility Animations ---------- */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* Mobile nav menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(16px);
  padding: 20px;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

/* Loading shimmer for cards */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.card.loading {
  background: linear-gradient(90deg,
      var(--bg-card) 25%,
      var(--bg-hover) 50%,
      var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Hire Me */
.shlok-hire-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hire-card {
  background: #202020;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  max-width: 600px;
  margin-bottom: 40px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hire-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 24px;
  background: #333;
}

.hire-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.hire-role {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 8px;
}

.hire-desc {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hire-loc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
}

.hire-btn {
  display: inline-flex;
  align-items: center;
  background: #0077b5;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.hire-contact p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 24px;
}

.hire-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hire-action-btn {
  display: flex;
  align-items: center;
  background: #202020;
  padding: 12px 24px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}

.hire-action-btn:hover {
  background: #333;
}

.hire-icon {
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.email-icon {
  background: #d93025;
  color: #fff;
  font-size: 0.8rem;
}

.phone-icon {
  background: #34a853;
  color: #fff;
  font-size: 0.8rem;
}

/* ============================================
   Books Grid
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.book-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
}
.book-cover {
  height: 120px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.book-cover::after {
  content: '📖';
  font-size: 3rem;
  opacity: 0.5;
}
.book-cover.pheonix { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); }
.book-cover.ghost { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.book-cover.clean { background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%); }
.book-cover.habits { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.book-info h3 { margin: 0 0 4px 0; font-size: 1.1rem; color: #fff; }
.book-info p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }

/* For actual image covers */
.book-card.image-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.book-cover-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card.image-card:hover .book-cover-img {
  transform: scale(1.08);
}
.book-card.image-card .book-info {
  padding: 16px;
  background: var(--bg-card);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   About Me Modals
   ============================================ */
/* Split Layout for About Me */
.about-split-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image-side {
  flex: 0 0 45%;
  height: 100%;
}

.about-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.about-text-side {
  flex: 1;
  padding: 40px 40px 40px 0;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-split-layout {
    flex-direction: column;
  }
  .about-image-side {
    width: 100%;
    flex: none;
  }
  .about-image-side img {
    min-height: 300px;
  }
  .about-text-side {
    padding: 30px;
  }
}