/* ১. ফন্ট ডিক্লেয়ারেশন */
@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/archivo_Black/ArchivoBlack-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif; /* প্যারাগ্রাফ ও বাকি সব কিছুর জন্য */
  background: hsl(0 0% 100%);
  color: hsl(0 0% 8%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Archivo Black", sans-serif; /* হেডিং এর জন্য */
  letter-spacing: -0.025em;
}

/* মেনু ও লিঙ্কের জন্য স্পেশাল ক্লাস (ঐচ্ছিক) */
.nav-link, nav a {
  font-family: "Montserrat", sans-serif;
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 3rem;
  }
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7rem 0;
  }
}

.heading-xl {
  font-size: 1.75rem;
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 768px) {
  .heading-xl {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .heading-xl {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .heading-xl {
    font-size: 4.5rem;
  }
}

.heading-lg {
  font-size: 1.875rem;
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 768px) {
  .heading-lg {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .heading-lg {
    font-size: 3rem;
  }
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .body-lg {
    font-size: 1.25rem;
  }
}

.flat-card {
  background: hsl(0 0% 98%);
  border: 1px solid hsl(0 0% 90%);
  transition: all 0.3s ease;
}

.flat-card-hover:hover {
  background: hsl(193 72% 67%);
}

.flat-card-hover:hover .card-icon,
.flat-card-hover:hover .card-title,
.flat-card-hover:hover .card-desc {
  color: hsl(0 0% 8%);
}

.flat-card-hover:hover .card-desc {
  opacity: 0.8;
}

.flat-input {
  width: 100%;
  background: transparent;
  border: 1px solid hsl(0 0% 90%);
  padding: 0.75rem 1rem;
  color: hsl(0 0% 8%);
  transition: border-color 0.3s ease;
  font-family: "Space Grotesk", sans-serif;
}

.flat-input::placeholder {
  color: hsl(0 0% 45%);
}

.flat-input:focus {
  outline: none;
  border-color: hsl(193 72% 67%);
}

.accent-line {
  width: 4rem;
  height: 2px;
  background: hsl(193 72% 67%);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Slider transition */
.slide-transition {
  transition: opacity 0.7s ease;
}

/* Portfolio filter transition */
.portfolio-item {
  transition: all 0.4s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

/* Mobile menu animation */
.mobile-menu {
  animation: fadeIn 0.3s ease-out forwards;
}

/* time_line_css =============================================
    ========================================================= */

/* Scoped Fonts */
#timeline-section {
  font-family: "Manrope", sans-serif;
}

#timeline-section .font-serif {
  font-family: "Cormorant Garamond", serif;
}

/* Background Effects */
.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 40%,
    transparent 80%
  );
  pointer-events: none;
}

.ambient-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(197, 160, 89, 0.1),
    transparent 60%
  );
  filter: blur(60px);
  animation: spotlight 10s infinite alternate ease-in-out;
  pointer-events: none;
}

.vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* background: radial-gradient(circle at 50% 50%, transparent 50%, #f4f2ee 100%); */
  pointer-events: none;
}

@keyframes spotlight {
  0% {
    transform: translate(-10%, -10%) scale(1);
  }

  100% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

/* SVG Track */
#track-container {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Easing একটু ফাস্ট করা হয়েছে */
  will-change: transform; /* ব্রাউজারকে আগে থেকেই প্রস্তুত রাখে */
  transform: translate3d(0, 0, 0); /* 3D Force করে GPU অন করে */
  backface-visibility: hidden;
  perspective: 1000px;
  z-index: 10;
}

/* Node Styles */
.node-diamond-outer {
  transition: all 0.4s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.node-group:hover .node-diamond-outer {
  transform: scale(1.3) rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

.node-group.active .node-diamond-outer {
  transform: scale(1.6) rotate(0deg);
  stroke-width: 3;
  stroke: #1c1917;
  fill: #ffffff;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Mesh styles */
.mesh-poly {
  transition: all 0.5s ease;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Popover Card */
/* Popover Card Optimized */
.popover-card {
  position: absolute;
  width: 340px;

  /* Backdrop filter ল্যাগের প্রধান কারণ। ডেক্সটপে স্মুথ করার জন্য এটা একটু কমানো হলো অথবা সলিড কালার দেওয়া হলো */
  /* যদি খুব বেশি ল্যাগ করে, তবে backdrop-filter লাইনটি মুছে দিবেন */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: rgba(
    255,
    255,
    255,
    0.95
  ); /* একটু বেশি সলিড করা হলো যাতে ব্লার কম লাগে */
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 50px -10px rgba(168, 162, 158, 0.3); /* শ্যাডো হালকা করা হয়েছে */
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 100 !important;
  opacity: 0;
  transform: scale(0.95) translateZ(0); /* 3D hack */
  transition: opacity 0.4s ease, transform 0.4s ease;

  pointer-events: auto !important;
  user-select: text !important;
}

.popover-card.visible {
  opacity: 1;
  transform: scale(1);
}

/* Nav Buttons */
.tl-nav-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  color: #57534e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tl-nav-btn:hover {
  background: #68cedf;
  color: white;
  scale: 1.1;
  border-color: #68cedf;
}

.tl-nav-btn.disabled {
  opacity: 0;
  pointer-events: none;
}
