/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'General Sans', sans-serif;
  background: #020617;
  color: #fff;
  overflow-x: hidden;
}

/* ===== CUSTOM CURSOR WITH TRAIL ===== */
.cursor {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s, visibility 1s;
}

.loader-content {
  text-align: center;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #3b82f6;
  animation: pulse 2s infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, #020617 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  color: rgba(59, 130, 246, 0.2);
  font-size: 2rem;
  animation: float 6s infinite;
}

.float-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.float-icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; }
.float-icon:nth-child(4) { top: 30%; right: 25%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-badge {
  padding: 10px 30px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 60px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 1s forwards 0.5s;
}

.hero-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 1s forwards 0.8s;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(135deg, #fff, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.3rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 40px;
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 1s forwards 1.1s;
}

.hero-cta {
  display: flex;
  gap: 20px;
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 1s forwards 1.4s;
}

.btn-primary, .btn-secondary {
  padding: 16px 40px;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}

@keyframes slideUpFade {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  z-index: 1000;
  transition: width 0.1s;
  box-shadow: 0 0 20px #3b82f6;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}

.about-bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.about-visual {
  position: relative;
}

.morph-container {
  position: relative;
  width: 100%;
  height: 600px;
}

#morph-canvas {
  width: 100%;
  height: 100%;
}

.exp-badge-3d {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 150px;
  height: 150px;
  animation: rotate3d 10s linear infinite;
}

@keyframes rotate3d {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}

.exp-badge-3d svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px #3b82f6);
}

.about-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 60px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.about-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 30px;
}

.about-title span {
  color: #3b82f6;
  position: relative;
  display: inline-block;
}

.about-title span::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(59, 130, 246, 0.2);
  z-index: -1;
  animation: widthPulse 2s infinite;
}

@keyframes widthPulse {
  0%, 100% { width: 100%; }
  50% { width: 120%; left: -10%; }
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  padding: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #3b82f6;
}

.founder-showcase {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.founder-image {
  position: relative;
  cursor: pointer;
}

.founder-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  transition: transform 0.3s;
}

.founder-image:hover img {
  transform: scale(1.1);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { width: 100px; height: 100px; opacity: 1; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

.founder-quote {
  font-style: italic;
  color: #94a3b8;
  font-size: 1.1rem;
}

/* ===== OFFERING SECTION ===== */
.offering-section {
  padding: 120px 40px;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.offering-grid-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  perspective: 2000px;
}

.offering-card-3d {
  height: 300px;
  transform-style: preserve-3d;
  animation: cardFloat 6s infinite;
  cursor: pointer;
}

.offering-card-3d:nth-child(2) { animation-delay: 1s; }
.offering-card-3d:nth-child(3) { animation-delay: 2s; }
.offering-card-3d:nth-child(4) { animation-delay: 3s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(2deg); }
}

.card-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.offering-card-3d:hover .card-3d-inner {
  transform: rotateY(180deg) rotateX(10deg);
}

.card-3d-front, .card-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-3d-front {
  transform: rotateY(0deg);
}

.card-3d-front i {
  font-size: 4rem;
  color: #3b82f6;
  margin-bottom: 20px;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #3b82f6); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px #3b82f6); }
}

.card-3d-front h3 {
  font-size: 2rem;
  font-family: 'Clash Display', sans-serif;
  background: linear-gradient(135deg, #fff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-3d-back {
  transform: rotateY(180deg);
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid #3b82f6;
}

.card-3d-back h4 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #3b82f6;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  padding: 120px 40px;
  position: relative;
}

.timeline-scroll {
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 40px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.timeline-scroll::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 0 20px;
}

.timeline-item-3d {
  min-width: 350px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}

.timeline-content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.timeline-item-3d:hover .timeline-content {
  transform: rotateX(180deg);
}

.timeline-front, .timeline-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

.timeline-back {
  transform: rotateX(180deg);
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid #3b82f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 30px;
  animation: rotateIcon 10s linear infinite;
}

@keyframes rotateIcon {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid-3d {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  perspective: 2000px;
}

.stat-item-3d {
  height: 300px;
  transform-style: preserve-3d;
  animation: statFloat 4s infinite;
  cursor: pointer;
}

.stat-item-3d:nth-child(2) { animation-delay: 0.5s; }
.stat-item-3d:nth-child(3) { animation-delay: 1s; }
.stat-item-3d:nth-child(4) { animation-delay: 1.5s; }

@keyframes statFloat {
  0%, 100% { transform: translateZ(0) rotateY(0deg); }
  50% { transform: translateZ(50px) rotateY(5deg); }
}

.stat-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.stat-item-3d:hover .stat-3d-inner {
  transform: rotateY(180deg);
}

.stat-3d-front, .stat-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

.stat-3d-back {
  transform: rotateY(180deg);
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid #3b82f6;
}

.stat-number-3d {
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Clash Display', sans-serif;
  color: #3b82f6;
  margin-bottom: 10px;
  animation: countPulseSoft 1s infinite;
}

@keyframes countPulseSoft {
  0%, 100% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.3); }
  50% { text-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
}

/* ===== PARALLAX BACKGROUND ===== */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  mix-blend-mode: screen;
}

/* ===== MODAL / TOAST STYLES FOR BUTTON ACTIONS ===== */
.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid #3b82f6;
  border-radius: 60px;
  padding: 16px 32px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  z-index: 10001;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-message i {
  color: #3b82f6;
  font-size: 1.4rem;
}

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #0f172a;
  border: 1px solid #3b82f6;
  border-radius: 40px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
  transform: scale(0.9);
  transition: transform 0.3s;
}
.modal-backdrop.show .modal-content {
  transform: scale(1);
}
.modal-content i {
  font-size: 4rem;
  color: #3b82f6;
  margin-bottom: 20px;
}
.modal-content h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem;
  margin-bottom: 15px;
}
.modal-content p {
  color: #94a3b8;
  margin-bottom: 30px;
}
.modal-close {
  background: #3b82f6;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .offering-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  .offering-grid-3d {
    grid-template-columns: 1fr;
  }
  .stats-grid-3d {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
}