@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: #7B2FF7;
  --primary-dark: #5A1FC2;
  --primary-light: #A566FF;
  --secondary: #00E5C7;
  --secondary-dark: #00B8A0;
  --accent: #FF3D9A;
  --accent-2: #FFB020;
  --bg-void: #0B0A18;
  --bg-space: #14122B;
  --bg-nebula: #1E1B3F;
  --bg-light: #F6F4FE;
  --bg-card: #FFFFFF;
  --text-dark: #16142E;
  --text-muted: #5C5A7A;
  --text-light: #F0EEFB;
  --border-glow: rgba(123, 47, 247, 0.35);
  --shadow-glow: 0 8px 32px rgba(123, 47, 247, 0.25);
  --shadow-cyan: 0 8px 32px rgba(0, 229, 199, 0.2);
  --gradient-main: linear-gradient(135deg, #7B2FF7 0%, #00E5C7 100%);
  --gradient-dark: linear-gradient(135deg, #0B0A18 0%, #1E1B3F 100%);
  --gradient-accent: linear-gradient(135deg, #FF3D9A 0%, #FFB020 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bg-void);
  border-bottom: 1px solid rgba(123, 47, 247, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.site-header .logo-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-link {
  position: relative;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--secondary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--bg-space);
  border-top: 1px solid rgba(123, 47, 247, 0.25);
}
.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(123, 47, 247, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: var(--bg-void);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 61, 154, 0.3);
}
.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* Cards */
.tech-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(123, 47, 247, 0.1);
  box-shadow: 0 4px 20px rgba(20, 18, 43, 0.06);
  transition: all 0.35s ease;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-light);
}

.tech-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.dark-card {
  background: var(--bg-nebula);
  border: 1px solid rgba(0, 229, 199, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}
.dark-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-cyan);
}
.dark-card p {
  color: #C9C6E8;
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(123, 47, 247, 0.15);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-card);
}
.accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.25s ease;
}
.accordion-header:hover {
  background: rgba(123, 47, 247, 0.05);
}
.accordion-header .ri-arrow-down-s-line {
  transition: transform 0.3s ease;
  color: var(--primary);
}
.accordion-header.active .ri-arrow-down-s-line {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0 1.5rem 1.25rem;
  display: none;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Forms */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid #E4E1F5;
  border-radius: 0.6rem;
  background: #FBFAFF;
  color: var(--text-dark);
  transition: all 0.25s ease;
  font-size: 0.95rem;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.12);
}
.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #A6A3C4;
}

/* Hero Section */
.hero-gradient {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 229, 199, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Badge */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: rgba(123, 47, 247, 0.15);
  border: 1px solid rgba(123, 47, 247, 0.4);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-void);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
}
.cookie-banner h3 {
  color: #FFFFFF;
}
.cookie-banner p {
  color: #D4D1EE;
}
.cookie-banner a {
  color: #7FD9FF;
  text-decoration: underline;
}
.cookie-banner a:hover {
  color: #A6E6FF;
}

/* Loading Spinner */
.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid rgba(123, 47, 247, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade-in Animation */
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid backgrounds - circuit pattern feel */
.circuit-bg {
  background-image:
    linear-gradient(rgba(123, 47, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 247, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Stats block */
.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;
}

/* Section dividers */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}
.section-dark {
  background-color: var(--bg-void);
  color: var(--text-light);
}
.section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}
.section-dark p {
  color: #C9C6E8;
}

/* Timeline (careers/about) */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(123, 47, 247, 0.25);
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.15);
}

/* Footer */
.site-footer {
  background-color: var(--bg-void);
  color: #C9C6E8;
}
.site-footer h4 {
  color: #FFFFFF;
}
.site-footer a {
  color: #C9C6E8;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--secondary);
}

/* Utility overrides */
.tag-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 229, 199, 0.12);
  color: var(--secondary-dark);
  border: 1px solid rgba(0, 229, 199, 0.3);
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  .tech-card, .dark-card {
    padding: 1.5rem;
  }
}