@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 {
  --primary: #6C2BD9;
  --primary-dark: #4C1D95;
  --primary-light: #A78BFA;
  --accent: #00E5C7;
  --accent-dark: #00A896;
  --molten: #FF6B35;
  --molten-dark: #E64A19;
  --bg-dark: #0F0B1E;
  --bg-darker: #08050F;
  --surface: #1A1330;
  --surface-light: #251C42;
  --text-light: #F3F0FF;
  --text-muted: #B4AAD1;
  --border-glow: rgba(108, 43, 217, 0.4);
  --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-molten: linear-gradient(135deg, var(--molten) 0%, var(--primary) 100%);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #1A1330;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 2px 20px rgba(108, 43, 217, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(108, 43, 217, 0.15);
}

.nav-link {
  position: relative;
  color: #1A1330;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-link:hover {
  color: var(--primary);
}

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

.nav-link.active {
  color: var(--primary);
}

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

/* MOBILE MENU */
.mobile-menu {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-glow);
}

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

.mobile-menu a:hover {
  color: var(--accent);
  background-color: var(--surface);
}

.mobile-menu-toggle {
  color: var(--primary);
  font-size: 1.75rem;
  cursor: pointer;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--gradient-main);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(108, 43, 217, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 199, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 0.8rem 1.9rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(108, 43, 217, 0.3);
}

.btn-molten {
  display: inline-block;
  background: var(--gradient-molten);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-molten:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* CARDS */
.tech-card {
  background: #ffffff;
  border: 1px solid #E5E0F5;
  border-radius: 14px;
  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;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(108, 43, 217, 0.15);
  border-color: var(--primary-light);
}

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

.dark-card {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 2rem;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 229, 199, 0.2);
  border-color: var(--accent);
}

.dark-card h3,
.dark-card h4 {
  color: #ffffff;
}

.dark-card p {
  color: var(--text-muted);
}

/* GRID */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* FORMS */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid #E5E0F5;
  border-radius: 10px;
  background-color: #FAF9FF;
  color: #1A1330;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  font-size: 0.95rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #1A1330;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #A8A0C4;
}

/* ACCORDION */
.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: #ffffff;
  border: 1px solid #E5E0F5;
  border-radius: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-weight: 600;
  color: #1A1330;
}

.accordion-header:hover {
  border-color: var(--primary-light);
  background-color: #FAF9FF;
}

.accordion-header.active {
  background: var(--gradient-main);
  color: #ffffff;
  border-color: var(--primary);
}

.accordion-header i {
  transition: transform 0.3s ease;
}

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

.accordion-content {
  display: none;
  padding: 1.2rem 1.5rem;
  background: #FAF9FF;
  border-radius: 0 0 10px 10px;
  color: #1A1330;
  border: 1px solid #E5E0F5;
  border-top: none;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
  border-top: 2px solid var(--accent);
}

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

.cookie-banner p {
  color: var(--text-muted);
}

.cookie-banner a {
  color: #5EEAD4;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: var(--accent);
}

/* HERO / GRADIENT SECTIONS */
.hero-gradient {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary-dark) 50%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 229, 199, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient h1,
.hero-gradient h2 {
  color: #ffffff;
}

.hero-gradient p {
  color: var(--text-muted);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 229, 199, 0.5);
}

/* BADGE */
.badge-popular {
  display: inline-block;
  background: var(--gradient-molten);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* SPINNER */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--surface-light);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 229, 199, 0.3); }
  50% { box-shadow: 0 0 35px rgba(0, 229, 199, 0.6); }
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in.loaded {
  opacity: 1;
}

/* SECTION DIVIDERS */
.section-divider {
  height: 3px;
  width: 80px;
  background: var(--gradient-main);
  border-radius: 3px;
  margin: 0 auto;
}

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

/* FOOTER */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* TAB NAV */
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

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

.border-glow {
  border: 1px solid var(--border-glow);
}