:root {
  --hot-pink: #ff2a6d;
  --cyan: #05d9e8;
  --dark-bg: #0d0f14;
  --dark-surface: #1a1c23;
  --text-main: #e0e0e0;
  --text-dim: #a0a0a0;
  --neon-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
  --border-glow: 1px solid rgba(5, 217, 232, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  color: var(--cyan);
  font-weight: 600;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hot-pink);
  text-shadow: var(--neon-shadow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
  padding-left: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  background: var(--dark-surface);
  padding: 1rem 0;
  border-bottom: var(--border-glow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--hot-pink) !important;
  letter-spacing: 1px;
  text-shadow: var(--neon-shadow);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  padding: 0.5rem 0.2rem;
  position: relative;
}

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

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

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-main);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1c2f 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: var(--border-glow);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--cyan), var(--hot-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== MAIN SECTIONS ===== */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--hot-pink);
  border-radius: 2px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow), 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--hot-pink);
}

.card h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.card-cta:hover {
  border-bottom-color: var(--hot-pink);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--hot-pink);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 217, 232, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan) !important;
}

.btn-outline:hover {
  background: rgba(5, 217, 232, 0.1);
  border-color: var(--hot-pink);
  color: var(--hot-pink) !important;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--text-dim);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(5, 217, 232, 0.2);
}

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

input[type="search"] {
  padding: 0.75rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--text-dim);
  background: var(--dark-surface);
  color: var(--text-main);
  width: 300px;
  max-width: 100%;
}

/* ===== REVIEW & RANKING ===== */
.rating-stars {
  color: gold;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.rank-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--hot-pink), #ff506e);
  color: #fff;
  font-weight: bold;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  background: rgba(5, 217, 232, 0.2);
  color: var(--cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(5, 217, 232, 0.3);
}

/* ===== FILTERS ===== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--dark-surface);
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: var(--hot-pink);
  border-color: var(--hot-pink);
  color: #fff;
  box-shadow: var(--neon-shadow);
}

/* ===== PROGRESS & SKILLS ===== */
.progress {
  background: var(--dark-bg);
  border-radius: 20px;
  height: 10px;
  margin: 0.75rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hot-pink), var(--cyan));
  border-radius: 20px;
  width: 0;
  transition: width 0.5s ease-out;
}

/* ===== TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.generic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.generic-table th,
.generic-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.generic-table th {
  background: var(--dark-surface);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.generic-table tbody tr {
  background: var(--dark-bg);
  transition: background 0.3s ease;
}

.generic-table tbody tr:hover {
  background: rgba(255, 42, 109, 0.1);
  border-left: 3px solid var(--hot-pink);
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--dark-surface);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--hot-pink);
  position: relative;
}

.testimonial::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--hot-pink);
  opacity: 0.5;
  line-height: 1;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 15, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--dark-surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(50px);
  transition: transform 0.4s ease;
  border: 1px solid rgba(5, 217, 232, 0.2);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 5px;
}

.modal-close:hover {
  color: var(--hot-pink);
}

/* ===== ACCORDION / FAQ ===== */
.accordion-item {
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
  background: var(--dark-surface);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #1f222b;
}

.accordion-body {
  background: var(--dark-bg);
  padding: 1.5rem;
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--cyan);
}

.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--hot-pink);
}

.tab-content-pane {
  display: none;
  padding-top: 1.5rem;
}

.tab-content-pane.active {
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-surface);
  padding: 3rem 0 1rem;
  margin-top: auto;
  border-top: var(--border-glow);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--hot-pink);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-shadow: var(--neon-shadow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.flex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.text-gradient {
  background: linear-gradient(45deg, var(--cyan), var(--hot-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.hidden { display: none !important; }

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 42, 109, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.8), 0 0 40px rgba(5, 217, 232, 0.3);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark-surface);
  border-left: 4px solid var(--hot-pink);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  transition: opacity 0.3s ease;
}

.toast.success {
  border-left-color: #4caf50;
}

.toast.error {
  border-left-color: #f44336;
}

.toast.info {
  border-left-color: var(--cyan);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.5rem;
  }
  
  .nav.open {
    transform: translateX(0);
  }
  
  .burger {
    display: block;
  }
  
  .burger.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.open .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  input[type="search"] {
    width: 100%;
  }
  
  .modal {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .header-inner {
    padding: 0 10px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
}

/* ===== THEME & DARK MODE FALLBACK ===== */
@media (prefers-color-scheme: light) {
  :root {
    --text-main: #333;
    --text-dim: #666;
  }
  
  body {
    background: #f5f5f5;
  }
  
  .card, .footer, .header, .modal {
    background: #fff;
  }
  
  .form-input, .form-textarea, .form-select, .progress, .generic-table tbody tr {
    background: #fff;
  }
  
  .toast {
    background: #fff;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--dark-surface);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== PRINT ===== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .header, .footer, .btn, .modal, .toast-container, .burger {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}