:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #0088D2;
  --accent-hover: #006BA8;
  --accent-light: #E6F4FB;
  --accent-secondary: #FFBA00;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dark Mode */
:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --card: #1e293b;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-light: rgba(0, 136, 210, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Theme: Blue + Yellow Classic (Default) */
:root[data-color-theme="blue-yellow"] {
  --accent: #0088D2;
  --accent-hover: #006BA8;
  --accent-secondary: #FFBA00;
}

:root[data-theme="dark"][data-color-theme="blue-yellow"] {
  --accent-light: rgba(0, 136, 210, 0.15);
}

/* Theme: Blue + Green Modern */
:root[data-color-theme="blue-green"] {
  --accent: #0088D2;
  --accent-hover: #006BA8;
  --accent-secondary: #00B345;
}

:root[data-theme="dark"][data-color-theme="blue-green"] {
  --accent-light: rgba(0, 136, 210, 0.15);
}

/* Theme: Purple Premium */
:root[data-color-theme="purple-premium"] {
  --accent: #645DAC;
  --accent-hover: #524C8F;
  --accent-secondary: #FFBA00;
}

:root[data-theme="dark"][data-color-theme="purple-premium"] {
  --accent-light: rgba(100, 93, 172, 0.15);
}

/* Theme: Yellow Energy */
:root[data-color-theme="yellow-energy"] {
  --accent: #FFBA00;
  --accent-hover: #E6A800;
  --accent-secondary: #0088D2;
}

:root[data-theme="dark"][data-color-theme="yellow-energy"] {
  --accent-light: rgba(255, 186, 0, 0.15);
}

/* Theme: Green Fresh */
:root[data-color-theme="green-fresh"] {
  --accent: #00B345;
  --accent-hover: #009638;
  --accent-secondary: #0088D2;
}

:root[data-theme="dark"][data-color-theme="green-fresh"] {
  --accent-light: rgba(0, 179, 69, 0.15);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Navbar */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.navbar__links {
  display: flex;
  gap: 2rem;
}

.navbar__links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--text);
}

.navbar__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.theme-picker-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s;
}

.theme-toggle:hover,
.theme-picker-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-picker {
  position: fixed;
  top: 80px;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 250px;
}

.theme-picker.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-picker h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.theme-option:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateX(3px);
}

.theme-option.active {
  background: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.theme-option__colors {
  display: flex;
  gap: 4px;
}

.theme-option__colors span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-option__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tools Section */
.tools-section {
  margin-top: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input,
.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.results-info {
  margin-bottom: 1.5rem;
}

.results-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Add Tool Button */
.btn-add-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-tool:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-add-tool__icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tool-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.tool-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-card__tags span {
  padding: 0.25rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Team Section */
.team-section {
  margin-top: 5rem;
  padding: 3rem 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.team-carousel {
  position: relative;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-carousel__viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

.team-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
  padding: 0.5rem 0;
}

.team-member {
  flex: 0 0 calc(25% - 1.125rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  min-width: 220px;
}

.team-member:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.team-member__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.team-member__name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.team-member__role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  min-height: 2.8rem;
}

.team-member__email {
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-word;
}

.carousel-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--text-muted);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

/* Contact Section */
.contact-section {
  margin-top: 5rem;
  padding: 3rem 0;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  max-width: 800px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.contact-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.contact-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  min-height: 40px;
}

.contact-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-link:hover {
  color: var(--accent-hover);
}

.contact-card__time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal__close:hover {
  background: var(--surface);
  color: var(--text);
}

.modal__form {
  padding: 2rem;
}

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

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

.modal__form input,
.modal__form select,
.modal__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}

.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}

.modal__form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    flex: 0 0 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .theme-picker {
    right: 1rem;
    left: 1rem;
    top: 70px;
    min-width: unset;
  }

  .navbar__controls {
    gap: 0.25rem;
  }

  .theme-toggle,
  .theme-picker-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .navbar__container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .container {
    padding: 2rem 1rem;
  }

  .modal__content {
    width: 95%;
    max-height: 85vh;
  }

  .modal__form {
    padding: 1.5rem;
  }

  .modal__header {
    padding: 1rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
