/* Projects page showcase */
.projects-page {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.marquee-hero {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 5vw, 40px);
  padding: clamp(2.5rem, 6vw, 5rem);
  min-height: clamp(26rem, 70vh, 40rem);
  background: radial-gradient(120% 120% at 50% 50%, rgba(21, 34, 45, 0.85), rgba(8, 12, 18, 0.92));
  display: grid;
  place-items: center;
  isolation: isolate;
}

html.light .marquee-hero {
  background: radial-gradient(120% 120% at 50% 50%, rgba(211, 245, 236, 0.85), rgba(230, 248, 242, 0.92));
}

.marquee-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15, 23, 32, 0.65), rgba(9, 12, 19, 0.85));
  mix-blend-mode: multiply;
}

html.light .marquee-overlay {
  background: linear-gradient(145deg, rgba(22, 43, 51, 0.35), rgba(8, 81, 83, 0.25));
}

.marquee-content {
  position: relative;
  z-index: 2;
  max-width: min(720px, 90vw);
  display: grid;
  gap: 1.4rem;
  text-align: center;
  color: #e6f8f0;
  background: rgba(8, 12, 18, 0.75);
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(82, 113, 140, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.light .marquee-content {
  color: #0f2b26;
  background: rgba(230, 248, 242, 0.85);
  border-color: rgba(12, 133, 98, 0.2);
  box-shadow: 0 8px 32px rgba(11, 76, 63, 0.15);
}

.marquee-kicker {
  display: inline-flex;
  justify-self: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(12, 133, 98, 0.18);
  color: var(--mint, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

html.light .marquee-kicker {
  background: rgba(16, 185, 129, 0.16);
  color: #0b7354;
}

.marquee-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 0;
}

/* Ensure headline sits on a semi-transparent pill for legibility */
.marquee-content h1 {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.marquee-description {
  margin: 0;
  color: rgba(226, 242, 239, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

/* Add a subtle panel behind the description text for contrast */
.marquee-description {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-block;
}

html.light .marquee-description {
  color: rgba(15, 41, 38, 0.72);
}

.marquee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* =============================================================================
   BUTTON STYLES - General Page Buttons
   NOTE: These styles apply to buttons OUTSIDE the 3D marquee.
   For marquee buttons ("Try our platform", "View our Projects"), see:
   → static/marquee-3d.css (.marquee-3d-overlay .btn-primary/secondary)
   ============================================================================= */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Primary Button (Filled Mint) */
.btn-primary {
  background: var(--mint);
  color: #051e14;
  border-color: color-mix(in oklab, var(--mint) 30%, transparent);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-4px) scale(1.02);
  background: color-mix(in oklab, var(--mint) 90%, #ffffff);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
  outline: none;
}

/* Secondary Button (Outlined/Ghost) */
.btn-secondary {
  background: rgba(30, 40, 50, 0.95);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-4px) scale(1.02);
  background: rgba(40, 55, 65, 1);
  color: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  outline: none;
}

/* No light mode overrides - buttons look the same in both themes */

.marquee-plane {
  position: absolute;
  inset: -40% -5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5rem;
  opacity: 0.4;
  pointer-events: none;
  filter: blur(0.8px);
  z-index: 1;
}

html.light .marquee-plane {
  opacity: 0.5;
  filter: blur(0.6px);
}

.marquee-row {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.marquee-row-a {
  animation: marquee-slide-slow 80s linear infinite;
}

.marquee-row-b {
  animation: marquee-slide-slow-alt 90s linear infinite;
}

.marquee-card {
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(12, 19, 27, 0.6);
  border: 1px solid rgba(82, 113, 140, 0.35);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

html.light .marquee-card {
  background: rgba(214, 236, 230, 0.65);
  border-color: rgba(12, 133, 98, 0.35);
  box-shadow: 0 24px 36px rgba(11, 76, 63, 0.18);
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee-slide-slow {
  from {
    transform: translateX(0);
  }

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

@keyframes marquee-slide-slow-alt {
  from {
    transform: translateX(-25%);
  }

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

.portfolio-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.section-heading {
  max-width: 720px;
  display: grid;
  gap: 0.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 20px 38px rgba(4, 7, 11, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

html.light .project-card {
  box-shadow: 0 22px 36px rgba(13, 23, 34, 0.16);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 32px 48px rgba(4, 7, 11, 0.5);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: color-mix(in oklab, var(--mint) 65%, rgba(7, 14, 18, 0.85));
}

html.light .project-icon {
  background: color-mix(in oklab, var(--mint) 55%, #f0fdf6);
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-card p {
  margin: 0;
  color: rgba(220, 232, 230, 0.82);
}

html.light .project-card p {
  color: rgba(10, 30, 28, 0.74);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--mint);
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
}

.project-poster {
  margin: 1rem 0 1.5rem;
}

.poster-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border-radius: 12px;
  background: rgba(82, 113, 140, 0.1);
  border: 2px dashed rgba(82, 113, 140, 0.3);
}

html.light .poster-placeholder {
  background: rgba(8, 81, 83, 0.08);
  border-color: rgba(8, 81, 83, 0.2);
}

.poster-placeholder span {
  font-size: 3rem;
}

.poster-placeholder p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.platform-description {
  background: rgba(82, 113, 140, 0.15);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(82, 113, 140, 0.2);
}

html.light .platform-description {
  background: rgba(8, 81, 83, 0.12);
  border-color: rgba(8, 81, 83, 0.25);
}

.platform-description p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.16);
  color: var(--mint);
}

.project-note {
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: color-mix(in oklab, var(--mint) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--mint) 35%, var(--border));
  color: var(--text);
}

.project-note a {
  color: var(--mint);
}

.insights-section {
  display: grid;
  gap: 2rem;
}

.insights-section.blogs-page {
  padding: 0;
}

.insights-section .blog-grid {
  margin-top: 0;
}

.blogs-hero h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.blogs-hero p {
  font-size: 1rem;
}

.blog-submit {
  margin-top: 0.5rem;
}

.cta-panel {
  border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(125deg, rgba(16, 185, 129, 0.16), rgba(6, 94, 70, 0.45));
  border: 1px solid color-mix(in oklab, var(--mint) 40%, var(--border));
}

html.light .cta-panel {
  background: linear-gradient(125deg, rgba(16, 185, 129, 0.18), rgba(5, 67, 60, 0.12));
}

.cta-content {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.cta-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.cta-content p {
  margin: 0;
  color: rgba(230, 246, 240, 0.86);
}

html.light .cta-content p {
  color: rgba(16, 44, 40, 0.7);
}

@media (max-width: 720px) {
  .marquee-plane {
    inset: -55% -25%;
    opacity: 0.35;
  }

  .marquee-card {
    width: clamp(140px, 45vw, 180px);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}