/* Landing Page 2025 Redesign */

:root {
  --landing-primary: #656096;
  --landing-primary-rgb: 101, 96, 150;
  --landing-secondary: #8592a3;
  --landing-dark: #232333;
  --landing-light: #fff;
  --landing-bg: #f5f5f9;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer-effect {
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite linear;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 20px;
}

.shimmer-effect--off {
  animation: none !important;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dark-style .shimmer-effect {
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Hero Section */
.landing-hero-2025 {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(101, 96, 150, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.landing-hero-2025 .btn-primary {
  background: #656096;
  border-color: #656096;
  color: #fff;
  box-shadow: 0 12px 30px rgba(101, 96, 150, 0.35);
}

.landing-hero-2025 .btn-primary:hover,
.landing-hero-2025 .btn-primary:focus {
  background: #7973b4;
  border-color: #7973b4;
  box-shadow: 0 14px 34px rgba(101, 96, 150, 0.45);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  background: rgba(101, 96, 150, 0.1);
  color: var(--landing-primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(101, 96, 150, 0.2);
}

.hero-title-2025 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #232333 0%, #656096 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-2025 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--landing-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Blinking Cursor */
.blinking-cursor {
  display: inline-block;
  font-weight: 400;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
  color: var(--landing-primary);
  -webkit-text-fill-color: var(--landing-primary);
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 3D Video Container */
.hero-video-container {
  perspective: 1000px;
  margin-top: 2rem;
}

.hero-video-wrapper {
  position: relative;
  border-radius: 20px;
  transform: rotateX(10deg) scale(0.95);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 30px rgba(101, 96, 150, 0.3);
  animation: hero-video-entry 1.5s ease-out forwards;
}

/* Removed .hero-video-wrapper::before border effect */

.hero-video-wrapper:hover {
  transform: rotateX(0deg) scale(1);
}

/* Custom Play Button */
.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-video-play-btn i {
    margin-left: 4px; /* Visual centering for play icon */
}

.hero-video-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.hero-video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

@keyframes hero-video-entry {
  from {
    transform: rotateX(20deg) translateY(50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotateX(10deg) translateY(0) scale(0.95);
    opacity: 1;
  }
}

@keyframes border-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
  padding: 2rem 0;
}

.bento-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(101, 96, 150, 0.15);
  border-color: rgba(101, 96, 150, 0.3);
}

.bento-card-large {
  grid-column: span 12;
}

.bento-card-medium {
  grid-column: span 12;
}

.bento-card-small {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-card-medium {
    grid-column: span 6;
  }
  .bento-card-small {
    grid-column: span 4;
  }
}

@media (min-width: 992px) {
  .bento-card-large {
    grid-column: span 8;
  }
  .bento-card-medium-vertical {
    grid-column: span 4;
    grid-row: span 2;
  }
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(101, 96, 150, 0.1);
  color: var(--landing-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--landing-dark);
}

.bento-desc {
  color: var(--landing-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-visual {
  margin-top: auto;
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative; /* Ensure positioning context for children */
}

/* Marquee Animation */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2; /* Ensure badges are above SVG */
}

.marquee-track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark Mode Support */
.dark-style .landing-hero-2025 {
  background: radial-gradient(circle at 50% 0%, rgba(101, 96, 150, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.dark-style .hero-title-2025 {
  background: linear-gradient(135deg, #ffffff 20%, #b0abd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(101, 96, 150, 0.4);
}

.dark-style .hero-subtitle-2025 {
  color: #a3a4cc;
}

.dark-style .bento-card {
  background: rgba(20, 21, 35, 0.6);
  backdrop-filter: blur(20px);
  border-color: rgba(101, 96, 150, 0.3);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4);
}

.dark-style .bento-card:hover {
  background: rgba(30, 31, 45, 0.7);
  border-color: rgba(101, 96, 150, 0.6);
  box-shadow: 0 8px 32px 0 rgba(101, 96, 150, 0.15);
}

.dark-style .bento-title {
  color: #ffffff;
}

.dark-style .bento-desc {
  color: rgba(255, 255, 255, 0.8);
}

.dark-style .bento-visual {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(101, 96, 150, 0.1);
}

/* Reduce arrow visibility in dark mode */
.dark-style .bento-card .ti-arrow-right {
  opacity: 0.5;
}

.dark-style .bento-card:hover .ti-arrow-right {
  opacity: 0.8;
}

/* Coming Soon Section */
.landing-coming-soon {
  background: linear-gradient(180deg, #f5f5f9 0%, #ffffff 100%);
}

.dark-style .landing-coming-soon {
  background: linear-gradient(180deg, #1a1b2e 0%, #232333 100%);
}

.coming-soon-card {
  opacity: 0.7;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.coming-soon-card:hover {
  opacity: 0.85;
  filter: grayscale(10%);
  transform: translateY(-3px);
}

.dark-style .coming-soon-card {
  opacity: 0.6;
  background: rgba(47, 51, 73, 0.5);
}

.dark-style .coming-soon-card:hover {
  opacity: 0.75;
}

/* Documents Section Modernization */
.doc-tabs-wrapper {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50rem;
    padding: 0.5rem;
    display: inline-flex;
    border: 1px solid rgba(101, 96, 150, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.doc-tab-btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem !important;
    color: var(--landing-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.doc-tab-btn.active {
    background: white;
    color: var(--landing-primary);
    box-shadow: 0 4px 15px rgba(101, 96, 150, 0.15);
}

.doc-content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 10px 40px -5px rgba(0,0,0,0.05);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative blur elements */
.doc-content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(101, 96, 150, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.doc-item-wrapper {
    height: 100%;
    position: relative;
    z-index: 1;
}

.doc-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5);
    border: 1px solid transparent;
    height: 100%;
    text-decoration: none !important;
    cursor: pointer;
}

.doc-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: rgba(101, 96, 150, 0.1);
}

.doc-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(101, 96, 150, 0.1);
    color: var(--landing-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.doc-item:hover .doc-icon {
    background: var(--landing-primary);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.doc-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--landing-dark);
}

.doc-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--landing-secondary);
    line-height: 1.4;
}

/* Dark mode adjustments */
.dark-style .doc-tabs-wrapper {
    background: rgba(35, 35, 51, 0.5);
    border-color: rgba(255,255,255,0.05);
}

.dark-style .doc-tab-btn.active {
    background: rgba(101, 96, 150, 0.2);
    color: #fff;
}

.dark-style .doc-content-card {
    background: rgba(35, 35, 51, 0.6);
    border-color: rgba(255,255,255,0.05);
}

.dark-style .doc-content-card::before {
    background: radial-gradient(circle, rgba(101, 96, 150, 0.15) 0%, transparent 70%);
}

.dark-style .doc-item {
    background: rgba(255,255,255,0.03);
}

.dark-style .doc-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.dark-style .doc-info h5 {
    color: #e4e6eb;
}

.dark-style .doc-info p {
    color: #b4b7bd;
}

/* SVG Adjustments for Dark Mode */
.bubble-border {
    stroke: #FFFFFF;
    transition: stroke 0.3s ease;
}

.dark-style .bubble-border {
    stroke: #2b2c40; /* Match the dark background color to create a "cutout" effect */
}

.icon-stroke {
    stroke: #9CA3AF; /* Default icon color (grey) */
    transition: stroke 0.3s ease;
}

.dark-style .icon-stroke {
    stroke: #656096; /* Purple in dark mode */
}