.blob-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  
  .blob {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(
      circle,
      rgba(13,110,253,0.9),
      rgba(102,16,242,0.9)
    );
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.85;
    animation: float 10s ease-in-out infinite;
  }
  
  .blob.one {
    top: -120px;
    left: -120px;
  }
  
  .blob.two {
    bottom: -140px;
    right: -120px;
    animation-delay: -5s;
  }
  
  .blob.three {
    top: 45%;
    left: 60%;
    width: 260px;
    height: 260px;
    animation-delay: -8s;
  }
  
  
  @keyframes float {
    0% { transform: translate(0,0); }
    50% { transform: translate(40px,-40px); }
    100% { transform: translate(0,0); }
  }

/* ================= SERVICE CARD HOVER ================= */

.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13,110,253,0.2);
  }
  

/* ================= ABOUT PAGE EFFECTS ================= */

/* Soft glow behind timeline items */
.timeline-item::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(
      circle,
      rgba(13,110,253,0.15),
      transparent 70%
    );
    opacity: 0;
    transition: opacity .6s ease;
    z-index: -1;
  }
  
  .timeline-item:hover::before {
    opacity: 1;
  }
  
  /* Slight hover lift */
  .timeline-item {
    transition: transform .4s ease;
  }
  
  .timeline-item:hover {
    transform: translateY(-6px);
  }

/* ================= PRODUCT HOVER EFFECT ================= */

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(13,110,253,0.25);
  }
  
  .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(
      135deg,
      rgba(13,110,253,0.15),
      transparent
    );
    opacity: 0;
    transition: opacity .4s ease;
  }
  
  .product-card:hover::after {
    opacity: 1;
  }
/* ================= CONTACT EFFECTS ================= */

.contact-form-card {
    transition: transform .5s ease, box-shadow .5s ease;
  }
  
  .contact-form-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(13,110,253,0.25);
  }
  
  .map-wrapper {
    transition: transform .6s ease, box-shadow .6s ease;
  }
  
  .map-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 35px 70px rgba(0,0,0,0.4);
  }
  

  :root {
    --nav-offset: 120px;
  }
  
  /* ================= RICE VIDEO SCROLL ================= */
  
  .rice-scroll-section {
    position: relative;
    height: 600vh; /* controls scroll length */
    background: #050505;
  }
  
  .rice-video-wrapper {
    position: sticky;
    top: var(--nav-offset);
    height: calc(100vh - var(--nav-offset));
    width: 100%;
    background: #050505;
    overflow: hidden;
    }
  
  #riceVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
  }
  
  /* Overlay container */
  .rice-overlay-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }
  
  /* Base overlay text */
  .rice-overlay {
    position: absolute;
    top: 50%;
    max-width: 720px;
  
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
  
    color: rgba(255,255,255,0.95);
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
  
    opacity: 0;
    transform: translateY(-50%) scale(0.98);
  
    transition:
      opacity 0.35s ease,
      transform 0.6s cubic-bezier(.22,.61,.36,1);
  }
  
  /* Visible state */
  .rice-overlay.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  
  /* Alignment */
  .rice-overlay.center {
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
  }
  
  .rice-overlay.center.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .rice-overlay.left {
    left: clamp(40px, 6vw, 120px);
  }
  
  .rice-overlay.right {
    right: clamp(40px, 6vw, 120px);
    text-align: right;
  }
  
  /* Mobile */
  @media (max-width: 768px) {
    :root {
      --nav-offset: 80px;
    }
  
    .rice-overlay {
      font-size: clamp(1.8rem, 6vw, 2.4rem);
      left: 20px !important;
      right: 20px !important;
      text-align: center;
      max-width: none;
    }
  }
  /* ================= SCROLL HINT ================= */

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;

  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.75);
  font-weight: 500;

  pointer-events: none; /* prevents blocking video scroll */
  animation: scrollPulse 2s infinite ease-in-out;
}

/* subtle animation */
@keyframes scrollPulse {
  0%   { opacity: 0.4; transform: translateY(0); }
  50%  { opacity: 1;   transform: translateY(4px); }
  100% { opacity: 0.4; transform: translateY(0); }
}

/* ===== MOBILE ADJUSTMENT ===== */
@media (max-width: 768px) {
  .scroll-hint {
    bottom: 16px;
    left: 16px;
    font-size: 0.75rem;
  }
}

  /* ================= SPLINE D ================= */
  .spline-section {
    background: #000;
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
  }
  
  /* Wrapper */
  .spline-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 520px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
  }
  
  /* Iframe */
  .spline-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* ===== MOBILE FIX ===== */
  @media (max-width: 768px) {
    .spline-section {
      padding: 80px 0 100px;
    }
  
    .spline-wrapper {
      height: 320px;              /* MUCH better on phones */
      border-radius: 20px;
      margin: 0 16px;             /* breathing space */
    }
  }
  
  /* Extra-small devices */
  @media (max-width: 480px) {
    .spline-wrapper {
      height: 260px;
    }
  }
  
/* ================= GLOBAL ================= */
body {
  background: #0b0b0b;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.book-scroll {
  background: #0b0b0b;
  padding: 120px 0 200px;
}

.about-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 100px;
  color: #fff;
}

.card-stack {
  position: relative;
}

.about-card {
  position: sticky;
  top: 120px;

  /* UNIFORM SIZE */
  min-height: 380px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;

  background: #111;
  border-radius: 22px;
  padding: 48px 56px;
  margin-bottom: 140px;

  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
  transform-origin: left center;
  transition: transform 0.6s ease, opacity 0.6s ease;

  /* CONTENT ALIGNMENT */
  display: flex;
  align-items: center;
}


.about-card p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none;
}




/* Depth effect */
.about-card:nth-child(1) { z-index: 1; }
.about-card:nth-child(2) { z-index: 2; }
.about-card:nth-child(3) { z-index: 3; }
.about-card:nth-child(4) { z-index: 4; }
.about-card:nth-child(5) { z-index: 5; }
.about-card:nth-child(6) { z-index: 6; }
.about-card:nth-child(7) { z-index: 7; }
.about-card:nth-child(8) { z-index: 8; }

@media (max-width: 768px) {
  .about-card {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 32px 28px;
    margin-bottom: 40px;

    transform: none !important;
    opacity: 1 !important;
  }

  .about-title {
    font-size: 2rem;
  }
}



/* ================= TIMELINE ================= */
.curved-timeline {
  padding: 100px 20px 140px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.timeline-step.left {
  justify-content: flex-start;
}

.timeline-step.right {
  justify-content: flex-end;
}

.node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e06c6c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.content {
  max-width: 420px;
}

.content h4 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

/* ================= CONNECTORS ================= */
.connector {
  width: 100%;
  height: 80px;
  position: relative;
}

.right-curve::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  width: calc(100% - 80px);
  height: 80px;
  border-top: 2px solid #e06c6c;
  border-right: 2px solid #e06c6c;
  border-radius: 0 60px 0 0;
}

.left-curve::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 0;
  width: calc(100% - 80px);
  height: 80px;
  border-top: 2px solid #e06c6c;
  border-left: 2px solid #e06c6c;
  border-radius: 60px 0 0 0;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .timeline-step,
  .timeline-step.left,
  .timeline-step.right {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .connector {
    display: none;
  }
}
