@import url('https://fonts.googleapis.com/css?family=Poppins');
html {
  scroll-behavior: smooth;
}

/* Landing: hero + Hello There — tight vertical rhythm (avoid extra bottom padding here; it adds page height) */
.landing-stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .landing-stack {
    gap: 0.875rem;
  }
}

/* Hello There — contact rows (icons + links, no pipe separators) */
.hello-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .hello-contact-list {
    gap: 0.75rem;
  }
}

.hello-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: Poppins, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .hello-contact-item {
    font-size: 1rem;
  }
}

.hello-contact-icon {
  flex-shrink: 0;
  width: 1.125rem;
  text-align: center;
  margin-top: 0.15rem;
  color: rgba(167, 139, 250, 0.85);
  font-size: 0.8rem;
}

.hello-contact-link {
  color: rgba(229, 231, 235, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hello-contact-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.hello-contact-text {
  color: rgba(209, 213, 219, 0.92);
}

@media (max-height: 700px) {
  .landing-stack {
    gap: 0.5rem;
  }

  #portfolioSection h2 {
    font-size: 1.5rem;
  }

  #portfolioSection p {
    font-size: 0.8125rem;
  }

  .ascii-terminal--in-hello:not(.ascii-terminal--3d) .ascii-terminal-screen {
    min-height: 5.25rem !important;
    font-size: 0.6rem !important;
    padding: 0.5rem 0.65rem !important;
  }

  .ascii-terminal--3d .ascii-terminal-screen {
    min-height: 5.5rem !important;
    font-size: 0.58rem !important;
    padding: 0.5rem 0.65rem !important;
  }
}

/* Bottom nav sits in full-width flex bar (centered); safe-area on bar */
.bottom-nav-bar {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

/* Stacks carousel (Slick): clip adjacent slides — no bleed / overlap */
#section3 .stacks-carousel {
  width: 100%;
  overflow: hidden;
}

#section3 .stacks-carousel .slick-slider {
  margin-bottom: 0;
  position: relative;
}

#section3 .stacks-carousel .slick-list {
  overflow: hidden !important;
  margin: 0;
  padding: 0;
}

#section3 .stacks-carousel .slick-slide {
  float: left;
  height: auto;
  box-sizing: border-box;
  padding: 0 8px;
}

#section3 .stacks-carousel .slick-slide > div {
  width: 100%;
  min-width: 0;
}

#section3 .stacks-carousel .carousel-slide {
  margin-right: 0;
}

#section3 .stacks-carousel section.p-6 {
  min-width: 0;
}

#section3 .stacks-carousel .language-card {
  min-width: 0;
}

#section3 .stacks-carousel .language-card > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Swiper 8: avoid layout conflicts with utility classes */
.swiper {
  width: 100%;
  box-sizing: border-box;
}
.swiper .swiper-wrapper {
  box-sizing: border-box;
}
.swiper-slide {
  box-sizing: border-box;
}

/* AI project thumbnails: taller frame + top anchor so UI text in screenshots isn’t cropped */
.ai-project-card > .relative:first-child {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 15rem;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}
.ai-project-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (min-width: 768px) {
  .ai-project-card > .relative:first-child {
    max-height: 17rem;
  }
}
@media (min-width: 1024px) {
  .ai-project-card > .relative:first-child {
    max-height: 18rem;
  }
}

/* Three-up row: still readable; slightly shorter cap than single column but not cramped */
@media (min-width: 992px) {
  .ai-projects-swiper .ai-project-card > .relative:first-child {
    max-height: 13.5rem;
  }
}
@media (min-width: 1280px) {
  .ai-projects-swiper .ai-project-card > .relative:first-child {
    max-height: 14.5rem;
  }
}

.ai-project-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.ai-project-scroll::-webkit-scrollbar {
  height: 6px;
}
.ai-project-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}
/* AI project cards: glass / frosted — no solid black panels */
.ai-project-card {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ai-project-card:hover {
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.1);
}
.ai-project-card--fyp {
  border-color: rgba(167, 139, 250, 0.35);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(124, 58, 237, 0.08) 100%
  );
}
.ai-project-card--fyp:hover {
  border-color: rgba(167, 139, 250, 0.5);
}
.ai-project-card-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 120%);
  padding-bottom: 1.1rem;
}
.ai-project-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f5f3ff;
  background: rgba(124, 58, 237, 0.38);
  border: 1px solid rgba(196, 181, 253, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ai-project-badge--muted {
  /* Solid dark pill so label stays readable on light screenshots */
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.55);
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ai-project-badge--fyp {
  border-radius: 0.45rem;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.35;
  background: rgba(99, 102, 241, 0.42);
  border-color: rgba(165, 180, 252, 0.5);
}

.ai-project-badge--product {
  font-size: 0.62rem;
  line-height: 1.35;
  max-width: 100%;
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(45, 212, 191, 0.45);
  color: #ccfbf1;
}
.ai-project-card .ai-project-thumb-img {
  transition: transform 0.28s ease;
}
.ai-project-card:hover .ai-project-thumb-img {
  transform: scale(1.03);
}

/* AI carousel: nav lives below the track — no side padding for overlay arrows */
.ai-projects-carousel-wrap {
  width: 100%;
}

#section1 {
  padding: 0.75rem 0.5rem 1.25rem;
  border-radius: 1rem;
  background: radial-gradient(
      ellipse 100% 80% at 50% 0%,
      rgba(124, 58, 237, 0.12) 0%,
      transparent 58%
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  #section1 {
    padding: 1.25rem 1rem 1.75rem;
  }
}

.ai-projects-swiper {
  position: relative;
  z-index: 1;
  padding: 0 0.25rem;
}
.ai-projects-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.ai-projects-nav {
  margin-top: 1.25rem;
  gap: 0.75rem;
}

.ai-swiper-prev,
.ai-swiper-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f5f3ff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ai-swiper-prev:hover,
.ai-swiper-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(196, 181, 253, 0.45);
}

.ai-swiper-prev:focus-visible,
.ai-swiper-next:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 2px;
}

.ai-swiper-prev.swiper-button-disabled,
.ai-swiper-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Work experience — timeline + glass cards (clean, editorial) */
.work-exp-intro {
  max-width: 42rem;
}

.work-exp-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(79, 244, 205, 0.55);
  margin-bottom: 0.65rem;
}

.work-exp-timeline {
  position: relative;
  padding-left: 1.35rem;
}

@media (min-width: 640px) {
  .work-exp-timeline {
    padding-left: 1.75rem;
  }
}

.work-exp-timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(79, 244, 205, 0.45) 0%,
    rgba(138, 125, 239, 0.35) 45%,
    rgba(138, 125, 239, 0.08) 100%
  );
  border-radius: 9999px;
}

.work-exp-card {
  position: relative;
  padding-bottom: 1.25rem;
}

.work-exp-card:last-child {
  padding-bottom: 0;
}

.work-exp-card::before {
  content: '';
  position: absolute;
  left: -0.95rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ff4cd, #8a7def);
  box-shadow:
    0 0 0 3px rgba(15, 15, 20, 0.85),
    0 0 14px rgba(79, 244, 205, 0.25);
  z-index: 1;
}

.work-exp-card--current::before {
  width: 0.65rem;
  height: 0.65rem;
  left: -1rem;
  top: 1.05rem;
  box-shadow:
    0 0 0 3px rgba(15, 15, 20, 0.85),
    0 0 18px rgba(79, 244, 205, 0.45);
}

.work-exp-card-inner {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.2rem 1.35rem 1.35rem;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease,
    background 0.28s ease;
}

.work-exp-card:hover .work-exp-card-inner {
  border-color: rgba(196, 181, 253, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.work-exp-card--current .work-exp-card-inner {
  border-color: rgba(79, 244, 205, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(79, 244, 205, 0.04) 55%,
    rgba(138, 125, 239, 0.03) 100%
  );
}

.work-exp-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .work-exp-card-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }
}

.work-exp-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.work-exp-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .work-exp-role {
    font-size: 1.125rem;
  }
}

.work-exp-org {
  font-size: 0.875rem;
  color: #cbd5e1;
  font-weight: 400;
}

.work-exp-when {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7d2fe;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.22);
  flex-shrink: 0;
}

.work-exp-copy {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #d1d5db;
}

.work-exp-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #d1d5db;
}

.work-exp-list li {
  position: relative;
  padding-left: 1rem;
}

.work-exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ff4cd, #8a7def);
}

/* Research + credentials (two-column on large screens) */
.research-credentials-grid {
  width: 100%;
}

@media (min-width: 1024px) {
  .research-credentials-grid .research-col,
  .research-credentials-grid .courses-col {
    min-width: 0;
  }
}

#sectionResearchPapers {
  background: radial-gradient(
      ellipse 90% 45% at 50% 0%,
      rgba(124, 58, 237, 0.08) 0%,
      transparent 55%
    ),
    rgba(255, 255, 255, 0.02);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.25rem 2.25rem;
}

@media (min-width: 768px) {
  #sectionResearchPapers {
    padding: 2.25rem 1.75rem 2.75rem;
  }
}

.activities-row {
  width: 100%;
}

/* Apple-like minimal motion: drifting stripes + soft shimmer (inside card only) */
.activities-panel--animated .activities-card-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 85% 65% at 12% 8%, rgba(79, 244, 205, 0.09), transparent 58%),
    radial-gradient(ellipse 75% 55% at 92% 88%, rgba(138, 125, 239, 0.08), transparent 52%);
}

.activities-panel--animated .activities-card-stripes {
  position: absolute;
  inset: -55% -35%;
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(
    -14deg,
    transparent 0,
    transparent 70px,
    rgba(255, 255, 255, 0.038) 70px,
    rgba(255, 255, 255, 0.038) 71px
  );
  animation: activities-stripe-drift 26s linear infinite;
  will-change: transform;
}

.activities-panel--animated .activities-card-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 220%;
  mix-blend-mode: overlay;
  animation: activities-shimmer-sweep 16s ease-in-out infinite;
  opacity: 0.45;
}

@keyframes activities-stripe-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(32px, 22px, 0);
  }
}

@keyframes activities-shimmer-sweep {
  0%,
  100% {
    background-position: 0% 40%;
    opacity: 0.32;
  }
  50% {
    background-position: 100% 60%;
    opacity: 0.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activities-panel--animated .activities-card-stripes,
  .activities-panel--animated .activities-card-shimmer {
    animation: none;
    opacity: 0.25;
  }
}

/* Floating chrome after </main>. Keep wrapper low z-index so it never covers <main>;
   fixed children (nav + pill) set their own z-index. */
.site-floating-ui {
  position: relative;
  z-index: 40;
  pointer-events: none;
  isolation: isolate;
}

.site-floating-ui .pointer-events-auto,
.site-floating-ui .site-bottom-nav {
  pointer-events: auto;
}

/* Activities card matches Productivity panel (bg-gray-900/40 + border) — no extra tint */

/* Terminal-style ASCII AI animation */
.ascii-terminal {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1117;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* Nested in Hello There glass card — lighter shadow so it reads as one block */
.ascii-terminal--in-hello:not(.ascii-terminal--3d) {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.ascii-terminal--in-hello .ascii-terminal-chrome {
  padding: 0.45rem 0.75rem;
}

.ascii-terminal--in-hello:not(.ascii-terminal--3d) .ascii-terminal-screen {
  min-height: 6.25rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.65rem;
  line-height: 1.35;
}

/* 3D “neural console” — perspective, depth grid, glow */
.ascii-terminal-3d-wrap {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 35%;
}

.ascii-terminal-3d-glow {
  position: absolute;
  inset: -18% -12% -8%;
  background:
    radial-gradient(ellipse 70% 50% at 45% 25%, rgba(79, 244, 205, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 72% 75%, rgba(138, 125, 239, 0.22), transparent 55%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  animation: ascii-glow-pulse 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ascii-terminal-3d-glow {
    animation: none;
  }
}

@keyframes ascii-glow-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.ascii-terminal-3d-inner {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(5.5deg) rotateY(-3.5deg) translateZ(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ascii-terminal-3d-wrap:hover .ascii-terminal-3d-inner {
  transform: rotateX(2deg) rotateY(-1.5deg) translateZ(12px);
}

@media (prefers-reduced-motion: reduce) {
  .ascii-terminal-3d-inner {
    transform: none;
    transition: none;
  }

  .ascii-terminal-3d-wrap:hover .ascii-terminal-3d-inner {
    transform: none;
  }
}

.ascii-terminal--3d.ascii-terminal--in-hello {
  box-shadow:
    0 0 0 1px rgba(79, 244, 205, 0.28),
    0 0 40px rgba(79, 244, 205, 0.08),
    0 28px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
  background: linear-gradient(155deg, rgba(20, 26, 34, 0.98) 0%, rgba(10, 12, 18, 0.99) 100%);
  border-radius: 0.85rem;
  border: none;
  overflow: hidden;
}

.ascii-terminal-viewport {
  position: relative;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(79, 244, 205, 0.06), transparent 50%),
    #070a0d;
}

.ascii-terminal-grid {
  position: absolute;
  inset: -15% -5% 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(88, 214, 163, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 125, 239, 0.35) 1px, transparent 1px);
  background-size: 11px 11px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center bottom;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

.ascii-terminal-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.2) 2px,
    rgba(0, 0, 0, 0.2) 3px
  );
  pointer-events: none;
  opacity: 0.4;
  z-index: 2;
}

.ascii-terminal--3d .ascii-terminal-screen {
  position: relative;
  z-index: 3;
  min-height: 6.5rem;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.65rem;
  line-height: 1.38;
  color: #5ee9b5;
  text-shadow:
    0 0 12px rgba(94, 233, 181, 0.45),
    0 0 28px rgba(79, 244, 205, 0.15);
}

.ascii-terminal--3d .ascii-terminal-chrome {
  background: linear-gradient(180deg, rgba(38, 48, 62, 0.98), rgba(22, 28, 35, 0.96));
  border-bottom: 1px solid rgba(79, 244, 205, 0.14);
}

.ascii-terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ascii-terminal-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.ascii-terminal-dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #484f58;
}

.ascii-terminal-dots span:first-child {
  background: #ff5f56;
}

.ascii-terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}

.ascii-terminal-dots span:nth-child(3) {
  background: #27c93f;
}

.ascii-terminal-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #8b949e;
}

.ascii-terminal-screen {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 11.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #58d6a3;
  text-shadow: 0 0 12px rgba(88, 214, 163, 0.35);
  white-space: pre;
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  .ascii-terminal-screen {
    font-size: 0.78rem;
    padding: 1.5rem 1.5rem 1.75rem;
    min-height: 12rem;
  }

  .ascii-terminal--in-hello:not(.ascii-terminal--3d) .ascii-terminal-screen {
    min-height: 7rem;
    font-size: 0.72rem;
    padding: 0.75rem 1rem 0.85rem;
  }

  .ascii-terminal--3d .ascii-terminal-screen {
    min-height: 7.25rem;
    font-size: 0.72rem;
    padding: 0.8rem 1rem 0.95rem;
  }
}

@media (min-width: 768px) {
  .ascii-terminal--in-hello:not(.ascii-terminal--3d) .ascii-terminal-screen {
    min-height: 7.25rem;
  }

  .ascii-terminal--3d .ascii-terminal-screen {
    min-height: 7.5rem;
  }
}

.cert-courses-carousel-wrap {
  width: 100%;
}

.cert-courses-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.cert-total-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.cert-slide-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  font-variant-numeric: tabular-nums;
}

.cert-swiper-box {
  position: relative;
  padding-bottom: 2.25rem;
}

.cert-swiper-box .cert-swiper-pagination {
  bottom: 0 !important;
}

.cert-swiper-box .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.cert-swiper-box .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #4ff4cd, #8a7def);
}

.cert-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cert-swiper-prev,
.cert-swiper-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f5f3ff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cert-swiper-prev:hover,
.cert-swiper-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(196, 181, 253, 0.45);
}

.cert-swiper-prev.swiper-button-disabled,
.cert-swiper-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cert-course-card {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(167, 139, 250, 0.45);
  transition: border-color 0.25s ease, background 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}

.cert-course-card:hover {
  border-color: rgba(196, 181, 253, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.cert-course-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .cert-course-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
}

.cert-course-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.4;
  flex: 1;
}

.cert-course-date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-course-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #d1d5db;
}
.activities-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activities-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ff4cd, #8a7def);
}

  /* Additional styles — neutral base; full UI from body.page-v2 in portfolio.css */
  body {
    margin: 0;
    background-color: #07070d;
  }

/* Wrapper for fixed bottom UI — do not use flex min-height that shifts layout */
.center {
  display: block;
  min-height: 0;
}

section {
  margin-bottom: 20px;
}

        .rounded-lg {
            border-radius: 10px;
        }
        #profileOptions {
            z-index: 100000; /* Above bottom nav when open */
        }
        .footer {
            background-color: transparent;
            color: #fff;
            padding: 20px;
            margin-top: auto;
        }
/* Swiper 8 navigation: keep default positioning; only tune color */
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
  color: #f0f0f0;
}
.swiper .swiper-button-next::after,
.swiper .swiper-button-prev::after {
  font-size: 1.35rem;
}

  .nav {
        position: fixed;
        bottom: 4rem; /* Adjust as needed */
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999; /* Set a higher z-index */   
        /* Other styles */
    }

    .swiper-container,
    .swiper {
        position: relative;
        z-index: 1;
    }

    .swiper .swiper-slide {
        position: relative;
        overflow: hidden;
    }

    .swiper .swiper-slide img {
        width: 100%;
        transition: transform 0.3s ease-in-out;
    }

    .swiper:not(.ai-projects-swiper) .swiper-slide:hover img {
        transform: scale(1.02);
    }

    /* CSS class for hover effect */
    .project-card .bg-gray-700 {
        transition: background-color 0.3s ease-in-out;
    }

    .project-card .text-white {
        transition: color 0.3s ease-in-out;
    }

    .project-card:hover .bg-gray-700 {
        background-color: rgba(91, 39, 85, 0.488); /* Change background color on hover */
         transform: scale(1.01);
        transition: transform 0.3s ease-in-out;
    }

    .project-card:hover .text-white {
        color: #dcdcdc; /* Change text color on hover */
    }
/* CSS class for hover effect on language cards */
.language-card {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.language-card:hover {
    transform: scale(1.06); /* Scale up the card on hover */
    color: #dcdcdc; /* Change text color on hover */
}

.gradient-bg {
    background-image: linear-gradient(-225deg, #4ff4cd 0%, #EACCF8 48%, rgb(138, 125, 239) 100%);
    /* background-image: linear-gradient(-225deg, #D4FFEC 0%, #57F2CC 48%, #4596FB 100%); */
    /* background-image: linear-gradient( 117deg,  rgba(123,216,96,1) 39.2%, rgba(255,255,255,1) 156.2% ); */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.font-poppins{
  font-family: Poppins;
}
.gradient-icon {
    background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);
    /* background-image: linear-gradient(-225deg, #D4FFEC 0%, #57F2CC 48%, #4596FB 100%); */
    /* background-image: linear-gradient( 117deg,  rgba(123,216,96,1) 39.2%, rgba(255,255,255,1) 156.2% ); */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
   .border-orange-gradient {
    border: 2px solid transparent;
    background: linear-gradient(to right, #f83600 0%, #f9d423 100%);
    background-clip: padding-box;
    border-radius: 9999px; /* Adjust this value for the desired roundness */
  }
/* Base styles for the button */
.swiper-button-next2,
.swiper-button-prev2 {
  all: revert;
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: transparent; /* Transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  color: #333; /* Text color */
  cursor: pointer;
  transition: color 0.3s; /* Smooth text color transition */
}

/* Pseudo-elements for arrow shapes */
.swiper-button-next2::after,
.swiper-button-prev2::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Right arrow style */
.swiper-button-next2::after {
  border-width: 0.625rem 0 0.625rem 1.25rem;
  border-color: transparent transparent transparent #f5f5f5; /* Arrow color */
  right: 0.625rem;
  transition: border-color 0.3s; /* Smooth arrow color transition */
}

/* Left arrow style */
.swiper-button-prev2::after {
  border-width: 0.625rem 1.25rem 0.625rem 0;
  border-color: transparent rgb(255, 255, 255) transparent transparent; /* Arrow color */
  left: 0.625rem;
  transition: border-color 0.3s; /* Smooth arrow color transition */
}

/* Hover effect */
.swiper-button-next2:hover,
.swiper-button-prev2:hover {
  color: #fff; /* Text color on hover */
}

.swiper-button-next2:hover::after {
  border-color: transparent transparent transparent #fff; /* Arrow color on hover */
}

.swiper-button-prev2:hover::after {
  border-color: transparent #fff transparent transparent; /* Arrow color on hover */
}


    /* Set a lower z-index for the swiper container */
      .swiper-container2 {
         height: auto; 
        position: relative;
        z-index: 1; /* Set a lower z-index */
    }

    /* swiper hovering */
    .swiper-slide2 {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    
    }

    .swiper-slide2:hover {
        transform: scale(1.02); /* Increase the scale on hover */
    }

    /* Additional styles to maintain layout */
    .swiper-wrapper2 {
        display: flex;
        gap: 4px;
    }
 .carousel-slide {
    margin-right: 10px; /* Adjust the margin to create a gap between slides */
  }
  @media (prefers-color-scheme: dark){
  .dark\:border-gray-700{
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity));
  }
  
  .dark\:bg-blue-900{
    --tw-bg-opacity: 1;
    background-color: rgb(30 58 138 / var(--tw-bg-opacity));
  }

  .dark\:bg-blue-200{
    --tw-bg-opacity: 1;
    background-color: rgb(191 219 254 / var(--tw-bg-opacity));
  }

  .dark\:text-white{
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
  }

  .dark\:text-blue-800{
    --tw-text-opacity: 1;
    color: rgb(30 64 175 / var(--tw-text-opacity));
  }

  .dark\:text-gray-500{
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity));
  }

  .dark\:text-gray-400{
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity));
  }

  .dark\:ring-gray-900{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
  }
}

/* Readable subheaders & secondary copy (Tailwind gray-500/400 too dim on dark bg) */
main p.text-gray-500,
main .text-gray-500.font-poppins,
main time.text-gray-400,
main time.text-gray-300,
main section p.text-gray-400.font-poppins,
main article p.text-gray-400 {
  color: #d1d5db !important;
}

main .language-card .text-gray-400 {
  color: #d1d5db !important;
}
