@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display.swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff7ed;
  color: #1c1917;
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* --- Page Load Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* --- Timeline Card Animations --- */
.timeline-card {
  opacity: 0;
  transition:
    transform 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animate-slide-in-1 { animation: slideInFromLeft 0.7s ease-out 0.8s forwards; }
.animate-slide-in-2 { animation: slideInFromRight 0.7s ease-out 1.1s forwards; }
.animate-slide-in-3 { animation: slideInFromLeft 0.7s ease-out 1.4s forwards; }
.animate-slide-in-4 { animation: slideInFromRight 0.7s ease-out 1.7s forwards; }

.card-icon { transition: transform 0.2s ease-out; }
.timeline-card:hover .card-icon { transform: scale(1.15); }

/* --- 3D Parallax Style --- */
#timeline-visual {
  perspective: 1000px;
  transition: transform 0.1s ease-out;
}

/* --- Subtle Floating Icon Animation --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes breathe {
  0% { opacity: 0.3; }
  50% { opacity: 0.5; }
  100% { opacity: 0.3; }
}
.animate-float {
  animation: float 6s ease-in-out infinite, breathe 5s ease-in-out infinite;
}

/* --- Blob Animation --- */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
  animation: blob 7s infinite;
}
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* --- Typing Animation --- */
#typing-prompt {
  border-right: 2px solid #f97316;
  animation: typing 2.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #f97316; }
}

/* --- Pulsing Glow --- */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0px rgba(165, 138, 115, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(165, 138, 115, 0); }
  100% { box-shadow: 0 0 0 0px rgba(165, 138, 115, 0); }
}
.smart-bar-glow {
  animation: pulse-glow 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* --- Shimmer Animation --- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.animate-shimmer {
  animation: shimmer 2.5s infinite linear;
  background: linear-gradient(to right, #faf5f1 8%, #fed7aa 18%, #faf5f1 33%);
  background-size: 2000px 104px;
}

/* --- Flowing Timeline Animation --- */
@keyframes flow {
  from { background-position: 0 0; }
  to { background-position: 0 20px; }
}
.animate-flow {
  animation: flow 1s linear infinite;
  background-image: linear-gradient(to bottom, #c9b6a4 60%, transparent 40%);
  background-size: 2px 20px;
  background-repeat: repeat-y;
  width: 2px;
  left: calc(50% - 1px);
}

/* --- Shimmering Text Animation --- */
.shimmer-text {
  background-image: linear-gradient(90deg, #f97316, #1c1917, #f97316);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer-text 3s linear infinite;
}
@keyframes shimmer-text {
  from { background-position: 200% center; }
  to { background-position: 0% center; }
}

/* --- Breathing Header Animation --- */
.text-breathing {
  animation: breathing 3s ease-in-out infinite;
}
@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* --- Feature Container --- */
.feature-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .feature-container { gap: 3rem; }
}
@media (min-width: 1024px) {
  .feature-container {
    grid-template-columns: 35% 65%;
    background-color: white;
    border: 1px solid #fed7aa;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(109, 88, 72, 0.08);
    min-height: 650px;
    overflow: hidden;
    gap: 0;
  }
}

/* --- Vertical Tab Stepper --- */
.feature-stepper {
  padding: 1rem;
  position: relative;
}
@media (min-width: 768px) { .feature-stepper { padding: 1.5rem; } }
@media (min-width: 1024px) {
  .feature-stepper {
    border-right: 1px solid #fed7aa;
    padding: 2rem;
  }
}

#stepper-tracker {
  position: absolute;
  left: 70px;
  top: 3.5rem;
  width: 2px;
  height: 30px;
  background-color: #f97316;
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.feature-stepper-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) { .feature-stepper-stack { gap: 0.5rem; } }

.feature-tab {
  width: 100%;
  text-align: left;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 2px solid #fed7aa;
  background-color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  opacity: 0.7;
  margin-bottom: 0;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .feature-tab {
    border-color: transparent;
    background-color: transparent;
  }
}
.feature-tab:hover {
  background-color: #faf5f1;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 88, 72, 0.08);
}
.feature-tab.active {
  background-color: #faf5f1;
  opacity: 1;
  color: #1c1917;
  border-color: #fb923c;
  box-shadow: 0 8px 30px rgba(109, 88, 72, 0.12);
  transform: translateY(-3px) scale(1.01);
}
.feature-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(165, 138, 115, 0.2);
}
.feature-tab h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1917;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.feature-tab p {
  font-size: 0.95rem;
  color: #1c1917;
  opacity: 0;
  margin-top: 0.5rem;
  padding-left: 2.75rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.6;
}
.feature-tab.active p {
  opacity: 0.8;
  max-height: 100px;
}
.feature-tab .icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eae3d9;
  color: #f97316;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  font-size: 0.9rem;
}
.feature-tab:hover .icon-wrapper {
  transform: scale(1.15) rotate(-8deg);
  background-color: #fb923c;
}
.feature-tab.active .icon-wrapper {
  background-color: #f97316;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(165, 138, 115, 0.3);
}

/* --- Visualizer Window --- */
.visualizer-window {
  position: relative;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #fed7aa;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(109, 88, 72, 0.08);
  min-height: 500px;
  overflow: hidden;
  perspective: 1000px;
}
@media (min-width: 1024px) {
  .visualizer-window {
    padding: 2rem;
    border: none;
    box-shadow: none;
    background-color: transparent;
    overflow: visible;
  }
}

/* --- High-Fidelity Mock UI --- */
.mock-ui-container {
  height: 100%;
  min-height: 580px;
  width: 100%;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 1.25rem;
  display: flex;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0) rotateY(0);
  transition: transform 0.1s linear;
  box-shadow: 0 20px 40px rgba(109, 88, 72, 0.12);
}
.mock-ui-container:hover {
  box-shadow: 0 25px 50px rgba(109, 88, 72, 0.15);
}
.mock-sidebar {
  width: 35%;
  min-width: 200px;
  border-right: 1px solid #fed7aa;
  padding: 1.5rem;
  background: #fff7ed;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.mock-main {
  width: 65%;
  position: relative;
  background: #faf5f1;
  display: flex;
  flex-direction: column;
}
.mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #f97316;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.25rem;
}
.mock-sidebar-item:hover {
  background-color: rgba(249, 115, 22, 0.1);
}
.mock-sidebar-item.active {
  background-color: #f97316;
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* Layout utilities for non-index pages */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1c1917;
}

.card-simple {
    background: white;
    border: 1px solid #fed7aa;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.card-simple:hover {
    box-shadow: 0 10px 30px rgba(109, 88, 72, 0.08);
    transform: translateY(-2px);
}

