/* =========================================================
   Hive fx studioz — Animation & VFX Studio
   Cinematic dark theme, inspired by film-industry poster aesthetics
   ========================================================= */

:root {
  --bg-black: #0B0B10;
  --bg-panel: #14141C;
  --bg-panel-alt: #1A1A24;
  --gold: #C9A227;
  --crimson: #8B1E3F;
  --text-primary: #F2EFE9;
  --text-muted: #9B96A0;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

body{
    background-image: url('./images/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
  }
section{
    background-color: transparent !important;
}
.interior-hero{
  background-color: transparent !important;
}
.filmstrip {
    background-color: #c78410 !important;
}

a {
  text-decoration: none;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.text-body-muted {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-dark {
  background-color: var(--bg-black);
}

.section-black {
  background-color: #08080C;
}

/* ================= NAVBAR ================= */
#mainNav {
  background: linear-gradient(to bottom, rgba(11, 11, 16, 0.95), rgba(11, 11, 16, 0));
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

#mainNav.scrolled {
  background-color: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text-primary) !important;
}

.brand-accent {
  color: var(--gold);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #14140C;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-gold:hover {
  background-color: #DCB53D;
  border-color: #DCB53D;
  color: #14140C;
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #14140C;
}

.btn-outline-light {
  border-width: 1px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ================= HERO ================= */
.hero-home {
  position: relative;
  min-height: 100vh;
  background-image: url("images/Frame\ 43.png");
}

.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 30, 63, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.12), transparent 50%),
    var(--bg-black);
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-size: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0.5rem 0 1.25rem;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

/* ================= FILM STRIP MARQUEE (signature element) ================= */
.filmstrip {
  background-color: var(--crimson);
  border-top: 6px solid var(--bg-black);
  border-bottom: 6px solid var(--bg-black);
  overflow: hidden;
  position: relative;
}

.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background-image: radial-gradient(circle, var(--bg-black) 5px, transparent 5.5px);
  background-size: 34px 100%;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.filmstrip::before {
  top: 0;
  height: 10px;
}

.filmstrip::after {
  bottom: 0;
  height: 10px;
}

.filmstrip-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: scrollstrip 28s linear infinite;
  padding: 0.9rem 0;
}

.filmstrip-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0 1.25rem;
  text-transform: uppercase;
}

.filmstrip-track .dot {
  color: var(--gold);
  font-size: 0.5rem;
  vertical-align: middle;
  margin: 0 0.25rem;
}

@keyframes scrollstrip {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .filmstrip-track {
    animation: none;
  }

  .scroll-cue {
    animation: none;
  }
}

/* ================= ABOUT ================= */
.about-frame {
  position: relative;
}

.about-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 1.5rem;
  z-index: -1;
}

.stat-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* ================= SERVICES ================= */
.service-card {
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 2.25rem 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  text-align: center !important;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.45);
  background-color: #17171F;
}

.service-icon {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: inline-block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ================= PORTFOLIO ================= */
.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 5 / 6.5;
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(35%) brightness(0.85);
}

.poster-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}

.poster-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.poster-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.poster-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ================= TEAM ================= */
.team-card img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  filter: grayscale(40%);
  transition: filter 0.3s ease;
}

.team-card:hover img {
  filter: grayscale(0%);
}

.team-card h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ================= TESTIMONIALS ================= */
.testimonial-slide {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1rem 2rem;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.testimonial-quote {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
}

.testimonial-author {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

.carousel-control-prev,
.carousel-control-next {
  position: relative;
  width: auto;
  opacity: 1;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--text-muted);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
}

.carousel-indicators .active {
  background-color: var(--gold);
  opacity: 1;
}

/* ================= CONTACT ================= */
.contact-info li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.contact-info i {
  color: var(--gold);
  margin-right: 0.6rem;
  width: 1.1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  margin-right: 0.6rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #14140C;
}

.contact-form .form-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.contact-form .form-control,
.contact-form .form-select {
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
}

.contact-form .form-control::placeholder {
  color: #63616B;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background-color: var(--bg-panel);
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

.form-status {
  color: var(--gold);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.logo_items img{
  border-radius: 17px;
  margin: 0 15px;
} 

/* ================= FOOTER ================= */
.footer {
  background-color: #08080C;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
  #mainNav {
    background-color: rgba(11, 11, 16, 0.96);
  }

  .navbar-collapse {
    padding-top: 1rem;
  }
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   INTERIOR PAGES (About, Services, Work, Team, Contact...)
   Shared across every page beyond index.html
   ========================================================= */

.nav-link.active {
  color: var(--text-primary) !important;
}

.interior-hero {
  position: relative;
  padding-top: 9.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 30, 63, 0.32), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(201, 162, 39, 0.10), transparent 55%),
    var(--bg-black);
}

.breadcrumb-trail {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.breadcrumb-trail a {
  color: var(--text-muted);
}

.breadcrumb-trail a:hover {
  color: var(--gold);
}

/* ---- Timeline (About page milestones) ---- */
.timeline {
  position: relative;
  padding-left: 2.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.53rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.timeline-year {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.4rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 520px;
}

/* ---- CTA band (used to link one page to the next) ---- */
.cta-band {
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(139, 30, 63, 0.3), transparent 60%),
    var(--bg-panel);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---- Stat band (About page — full-width horizontal stat strip) ---- */
.stat-band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-band-item {
  text-align: center;
  padding: 2.2rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-band-item:first-child {
  border-left: none;
}

/* ---- Value list (About page — editorial numbered rows) ---- */
.value-list {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.value-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.9rem 0;
  transition: background-color 0.2s ease;
}

.value-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.value-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.value-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Project reel (Work page — horizontal scroll, distinct from home's poster grid) ---- */
.reel-wrap {
  position: relative;
}

.reel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.reel-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-4px);
}

.reel-card-tile {
  aspect-ratio: 3 / 4;
  border-radius: 0.7rem;
  background: linear-gradient(155deg, var(--bg-panel-alt), var(--bg-black));
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}

.reel-card-tile span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.reel-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 2rem;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.reel-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.reel-role {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.reel-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.reel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reel-nav-btn:hover {
  border-color: var(--gold);
  background-color: rgba(201, 162, 39, 0.08);
}

/* ---- Service tabs (Services page — vertical pill nav + detail panel) ---- */
.service-tab-nav .service-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.service-tab-nav .service-tab-btn i {
  color: var(--gold);
  font-size: 1.05rem;
}

.service-tab-nav .service-tab-btn:hover {
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--text-primary);
}

.service-tab-nav .service-tab-btn.active {
  background-color: var(--bg-panel);
  border-color: var(--gold);
  color: var(--text-primary);
}

.service-tab-content {
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 2.5rem;
  min-height: 380px;
}

.service-tab-content h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.service-capabilities {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.service-capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-capabilities li:first-child {
  border-top: none;
}

.service-capabilities li i {
  color: var(--gold);
  margin-top: 0.2rem;
}

/* ---- Process steps (Services page — horizontal numbered flow) ---- */
.process-step {
  position: relative;
  padding: 0 1rem;
}

.process-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: -0.5rem;
  width: 1rem;
  height: 1px;
  background: rgba(201, 162, 39, 0.4);
  display: none;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    display: block;
  }
}

/* ---- Contact tiles (Contact page — clickable method cards) ---- */
.contact-tile {
  display: block;
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-tile:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-4px);
}

.contact-tile-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
}

.contact-tile h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.contact-tile p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Project-type pill selector (Contact page — replaces a plain <select>) ---- */
.type-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.type-pill-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-pill-group label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.type-pill-group input[type="radio"]:checked+label {
  border-color: var(--gold);
  background-color: rgba(201, 162, 39, 0.1);
  color: var(--gold);
}

.type-pill-group label:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

.ft-social {
  display: flex;
  /* justify-content: end;  */
  flex-direction: column;
  align-items: end;
}

.con-mob{
    display: flex;
    justify-content: end;
  }

/*mobile project grid*/

/* Hide mobile grid on desktop */
.portfolio-mobile-wrap {
    display: none;
}

@media (max-width: 767px) {

    /* Keep desktop honeycomb untouched */
    .portfolio-desktop-wrap {
        display: none !important;
    }

    .portfolio-mobile-wrap {
        display: block;
        width: 100%;
        padding: 10px 0 50px;
        background: transparent;
        overflow: hidden;
    }

    /* Two-column mobile honeycomb */
    .portfolio-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, 175px);
        grid-auto-rows: 150px;
        column-gap: 15px;
        row-gap: 40px;
        justify-content: center;
        align-items: start;
        padding: 0 0 70px;
    }

    /* Individual mobile hexagon */
    .portfolio-mobile-card {
        position: relative;
        display: block;
        width: 180px;
        height: 150px;
        background: #fff;
        clip-path: polygon(
            25% 0,
            75% 0,
            100% 50%,
            75% 100%,
            25% 100%,
            0 50%
        );
        overflow: hidden;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Stagger the right column */
    .portfolio-mobile-card:nth-child(even) {
        transform: translateY(64px);
    }

    /* Image inside hexagon */
    .portfolio-mobile-card img {
        position: absolute;
        inset: 2px;
        width: calc(100% - 4px);
        height: calc(100% - 4px);
        object-fit: cover;
        clip-path: polygon(
            25% 0,
            75% 0,
            100% 50%,
            75% 100%,
            25% 100%,
            0 50%
        );
        transition: transform 0.3s ease;
    }

    /* Mobile tap overlay */
    .portfolio-mobile-overlay {
        position: absolute;
        inset: 2px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.35);
        clip-path: polygon(
            25% 0,
            75% 0,
            100% 50%,
            75% 100%,
            25% 100%,
            0 50%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .portfolio-mobile-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        border: 1px solid #fff;
        border-radius: 50%;
        color: #fff;
        font-size: 20px;
        line-height: 1;
    }

    /* Touch interaction */
    .portfolio-mobile-card:active .portfolio-mobile-overlay,
    .portfolio-mobile-card:focus-visible .portfolio-mobile-overlay {
        opacity: 1;
    }

    .portfolio-mobile-card:active img {
        transform: scale(1.08);
    }

    /* Compact heading spacing */
    #portfolio .row.mb-5 {
        margin-bottom: 25px !important;
    }

    #portfolio .text-center.mt-5 {
        margin-top: 10px !important;
        padding-bottom: 30px;
    }
}

/* Smaller phones */
@media (max-width: 360px) {
    .portfolio-mobile-grid {
        grid-template-columns: repeat(2, 82px);
        grid-auto-rows: 92px;
        column-gap: 12px;
        row-gap: 34px;
    }

    .portfolio-mobile-card {
        width: 82px;
        height: 92px;
    }

    .portfolio-mobile-card:nth-child(even) {
        transform: translateY(58px);
    }
}


/* media query */

@media (max-width: 768px) {
  .con-mob{
    display: flex;
    justify-content: start;
  }

  .mob-cent {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  .ft-social {
    justify-content: left;
    align-items: left;
  }
}