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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;

}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* Magnetic Button */
.magnetic-btn {
  position: relative;
  transition: transform .3s cubic-bezier(.23, 1, .32, 1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid background */
.grid-pattern {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Float */
@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-20px)
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

/* Custom Cursor (desktop) */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(96, 165, 250, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all .15s ease-out;
  transform: translate(-50%, -50%);
}

/* Skill bar */
.skill-bar {
  width: 0%;
  transition: width 1.5s cubic-bezier(.23, 1, .32, 1);
}

/* Cards */
.skill-card {
  transition: all .4s cubic-bezier(.23, 1, .32, 1);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, .2);
}

/* Nav active underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  transition: width .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-2xl img {
  width: 350px;
  height: auto;
}

.text-sm {
  font-size: 1rem;
}

/* Hide custom cursor on smaller screens or reduced motion */
@media (max-width: 1024px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   EMPLOYER TICKER TAPE
   ══════════════════════════════════════════════════════════════════════════ */
.ticker-wrapper {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a, transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a, transparent);
}

.ticker-label {
  position: relative;
  z-index: 3;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 36s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.22);
  padding: 0 2.5rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.ticker-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ticker-sep {
  color: rgba(96, 165, 250, 0.35);
  font-size: 0.6rem;
  flex-shrink: 0;
}


/* ── Portfolio horizontal scroll ── */
.portfolio-featured {
  width: 700px;
  height: auto;
}


.portfolio-scroll-outer {
  position: relative;
  width: 82%;
  margin-left: 134px;
  height: auto;
  overflow: hidden;
}

.portfolio-fade-left,
.portfolio-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.portfolio-fade-left {
  left: 0;
  background: linear-gradient(to right, #0a0a0a, transparent);
}

.portfolio-fade-right {
  right: 0;
  background: linear-gradient(to left, #0a0a0a, transparent);
}

.portfolio-track {
  display: flex;
  gap: 24px;
  padding: 8px 28px 64px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling:auto;
  cursor: grab;
  /* scrollbar-width: none; */
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-track.is-dragging {
  cursor: grabbing;
}

.portfolio-card {
  flex: 0 0 280px;
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.23, 1, .32, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  user-select: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15);
}

.portfolio-card-img {
  aspect-ratio: 16 / 10;
  background: #181818f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-img img {
  width: auto;
  height: 225px;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.portfolio-card:hover .portfolio-card-img img {
  opacity: 0.5;
  transform: scale(1.08);
}

.portfolio-card-body {
  padding: 16px 20px 20px;
}

.portfolio-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 6px;
}

.portfolio-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .portfolio-card {
    flex: 0 0 320px;
  }
}

@media (min-width: 1280px) {
  .portfolio-card {
    flex: 0 0 360px;
  }
}


/* ── Testimonial auto-scroll carousel ── */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

/* Left / right fade edges */
.testimonial-carousel::before,
.testimonial-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.testimonial-carousel::before {
  left: 0;
  background: linear-gradient(to right, #1a1a1a, transparent);
}

.testimonial-carousel::after {
  right: 0;
  background: linear-gradient(to left, #1a1a1a, transparent);
}

/* The sliding row */
.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 4px 2px 8px;
  /* small padding so box-shadows aren't clipped */
}

/* ── Base card ── */
.testimonial-card {
  flex: 0 0 min(680px, 85vw);
  /* one card fills most of the viewport */
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
  transform: translateY(-4px);
}

/* ── Featured (wide) card ── */
.testimonial-card--featured {
  flex: 0 0 min(680px, 85vw);
  /* same width as all others */
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-card--featured:hover {
  border-color: rgba(96, 165, 250, 0.5);
}

.testimonial-card--featured .testimonial-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Typography ── */
.testimonial-card__quote {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.testimonial-card--featured .testimonial-card__quote {
  font-size: 0.95rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.testimonial-card__role {
  font-size: 0.75rem;
  color: #6b7280;
}

.testimonial-card--featured .testimonial-card__role {
  color: #60a5fa;
}

/* ── Footer row (avatar + name) ── */
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* ── Dot indicators ── */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.testimonial-dot.is-active {
  background: #60a5fa;
  width: 24px;
  border-radius: 4px;
  transform: none;
}

@media (max-width: 640px) {

  .testimonial-card,
  .testimonial-card--featured {
    flex: 0 0 85vw;
    flex-direction: column;
    padding: 28px;
  }
}

/* ── Typewriter ── */
@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typewriter-cursor {
  display: inline-block;
  color: #60a5fa;
  font-weight: 300;
  animation: cursorBlink 0.7s ease infinite;
  margin-left: 1px;
}

.typewriter-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROJECT POPUP MODAL
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Layer / backdrop ── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

/* ── Panel ── */
.project-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.08);

  /* entrance animation */
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Top bar ── */
.project-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(10, 10, 10, 0.6);
  gap: 12px;
}

.project-modal__topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.project-modal__nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.modal-nav-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

.modal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.modal-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0 4px;
  min-width: 40px;
  text-align: center;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ── Scrollable body ── */
.project-modal__body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #1a1a1a;
}

.project-modal__body::-webkit-scrollbar {
  width: 6px;
}

.project-modal__body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.project-modal__body::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 3px;
}

/* ── Cover ── */
.project-modal__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
  flex-shrink: 0;
}

.project-modal__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Header ── */
.project-modal__header {
  padding: 28px 32px 0;
}

.project-modal__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.project-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}

.project-modal__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Sections ── */
.project-modal__section {
  padding: 28px 32px 0;
}

.project-modal__section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 14px;
}

.project-modal__text {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.7;
}

/* ── Tools ── */
.project-modal__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-modal__tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s;
}

.project-modal__tool-chip:hover {
  background: rgba(96, 165, 250, 0.2);
}

/* ── Lists ── */
.project-modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-modal__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #9ca3af;
  line-height: 1.55;
}

.project-modal__list li::before {
  content: '→';
  color: #60a5fa;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.project-modal__list--check li::before {
  content: '✓';
  color: #a78bfa;
}

/* ── Outcomes block ── */
.project-modal__outcomes {
  margin: 20px 0 0;
  padding-top: 28px;
  padding-bottom: 36px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(236, 72, 153, 0.06) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 32px;
  padding-right: 32px;
}

/* ── "View Student's Output" button in topbar ── */
.modal-output-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}

.modal-output-btn:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.55);
  color: #93c5fd;
  transform: translateY(-1px);
}

.modal-output-btn[href="#"] {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Fade-out for transitions ── */
.project-modal__panel.is-switching .project-modal__body {
  opacity: 0;
  transition: opacity 0.18s ease;
}

@media (max-width: 600px) {
  .project-modal {
    padding: 0;
    align-items: flex-end;
  }

  .project-modal__panel {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  .project-modal__header,
  .project-modal__section,
  .project-modal__outcomes {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-output-btn span {
    display: none;
  }
}