@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css');

:root {
  --color-primary: #6C1AFF;
  --color-primary-dark: #4A0FCC;
  --color-primary-light: #9B5CFF;
  --color-secondary: #0A0E27;
  --color-secondary-light: #151B3D;
  --color-accent: #00E8C6;
  --color-accent-warm: #FF3D7F;
  --color-bg: #0A0E27;
  --color-bg-light: #F4F2FF;
  --color-text-dark: #14162E;
  --color-text-light: #E8E6FF;
  --gradient-main: linear-gradient(135deg, #6C1AFF 0%, #00E8C6 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #151B3D 100%);
  --shadow-glow: 0 0 30px rgba(108, 26, 255, 0.35);
  --shadow-glow-cyan: 0 0 25px rgba(0, 232, 198, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--color-text-dark);
  background-color: #FBFAFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A0E27;
  border-bottom: 1px solid rgba(108, 26, 255, 0.25);
  box-shadow: 0 4px 20px rgba(10, 14, 39, 0.5);
  transition: all 0.3s ease;
}

.logo-glow {
  filter: drop-shadow(0 0 8px rgba(108, 26, 255, 0.6));
}

.nav-link {
  position: relative;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* Mobile Menu */
.mobile-menu {
  background-color: #0A0E27;
  border-top: 1px solid rgba(108, 26, 255, 0.25);
}

.mobile-menu a {
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:hover {
  color: var(--color-accent);
  background-color: rgba(108, 26, 255, 0.1);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(108, 26, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-accent);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--color-secondary);
  border-color: #ffffff;
}

/* Cards */
.tech-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #EDE9FF;
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(108, 26, 255, 0.15);
  border-color: rgba(108, 26, 255, 0.3);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-glow);
}

/* Dark section */
.section-dark {
  background: var(--gradient-dark);
  color: var(--color-text-light);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(108,26,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,232,198,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: var(--color-text-light);
}

.section-dark a.text-link {
  color: var(--color-accent);
}

/* Accordion */
.accordion-item {
  border: 1px solid #E5E0FF;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-dark);
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #F6F3FF;
}

.accordion-header .accordion-icon {
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.5rem 1.2rem;
  color: #4B4B63;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid #E5E0FF;
  border-radius: 8px;
  background-color: #FBFAFF;
  color: var(--color-text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(108, 26, 255, 0.12);
  background-color: #ffffff;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

textarea.form-input {
  resize: vertical;
  min-height: 130px;
}

/* Pricing */
.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #EDE9FF;
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: #0A0E27;
  border-top: 2px solid var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.cookie-banner h3 {
  color: #ffffff;
}

.cookie-banner p {
  color: #C9C4E8;
}

.cookie-banner a {
  color: #7FE0FF;
  text-decoration: underline;
}

/* Loading Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(108, 26, 255, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade / Slide animations */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 26, 255, 0.3); }
  50% { box-shadow: 0 0 35px rgba(0, 232, 198, 0.4); }
}

/* Section Divider Wave */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blog cards */
.blog-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #EDE9FF;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 15px 35px rgba(108, 26, 255, 0.15);
  transform: translateY(-5px);
}

.blog-tag {
  display: inline-block;
  background-color: rgba(0, 232, 198, 0.12);
  color: #007A69;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid #E5E0FF;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: var(--shadow-glow);
}

/* Responsive helpers */
@media (max-width: 768px) {
  .stat-number {
    font-size: 1.8rem;
  }
  .pricing-card.featured {
    transform: none;
  }
}