/* Sigita Matrix - Custom Styles */
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: #2c3e50;
  font-weight: 400;
}

/* Color Scheme */
:root {
  --primary-color: #2c5282;
  --primary-dark: #1a365d;
  --secondary-color: #4a5568;
  --accent-color: #38a169;
  --accent-secondary: #805ad5;
  --light-bg: #f7fafc;
  --dark-bg: #2d3748;
  --text-primary: #2c3e50;
  --text-secondary: #718096;
}

/* Header and Navigation */
.bg-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.9rem !important;
  background: linear-gradient(45deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.matrix-hero-gradient {
  background: linear-gradient(135deg, #2c5282 0%, #2d3748 50%, #38a169 100%);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
}

.matrix-hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 40c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm20 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.matrix-hero-gradient .container {
  position: relative;
  z-index: 2;
}

/* Cards */
.matrix-card {
  border-radius: 25px;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(44, 82, 130, 0.08);
}

.matrix-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(44, 82, 130, 0.2);
}

.matrix-herb-card {
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  background: #ffffff;
}

.matrix-herb-card:hover {
  transform: translateY(-8px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 35px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a202c 100%);
  color: white;
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  color: white;
}

/* Color Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.bg-secondary-custom {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
}

.bg-accent-custom {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-secondary) 100%) !important;
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #2f855a 100%) !important;
}

/* Method Cards */
.method-card {
  padding: 30px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.method-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

/* Research Stats */
.research-stat {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.research-stat:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

/* Rating Badges */
.matrix-rating {
  margin-top: 15px;
}

.matrix-rating .badge {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 20px;
}

/* Stats Cards */
.stats-card {
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

/* Cookie Banner */
.matrix-cookie-banner {
  backdrop-filter: blur(15px);
  animation: slideUpMatrix 0.8s ease-out;
  background: rgba(44, 82, 130, 0.95) !important;
}

@keyframes slideUpMatrix {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.border-accent-custom {
  border-color: var(--accent-color) !important;
}

/* Sections */
section {
  padding: 90px 0;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Typography */
.display-3 {
  font-weight: 800;
  line-height: 1.2;
}

.display-4 {
  font-weight: 700;
  line-height: 1.3;
}

.display-5 {
  font-weight: 600;
  line-height: 1.4;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 30px 60px rgba(44, 82, 130, 0.12) !important;
}

/* Border Radius */
.rounded-4 {
  border-radius: 25px !important;
}

/* Footer */
footer {
  border-top: 5px solid var(--primary-color);
  background: var(--dark-bg) !important;
}

footer a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .matrix-hero-gradient {
    min-height: 70vh;
    text-align: center;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .matrix-card {
    margin-bottom: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .stats-card {
    margin-bottom: 1.5rem;
  }
  
  .method-card {
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  .matrix-hero-gradient {
    padding: 40px 0;
    min-height: 60vh;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .btn {
    padding: 12px 24px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .matrix-card {
    border: 2px solid var(--text-primary);
  }
  
  .btn {
    border: 2px solid var(--text-primary);
  }
}

/* Contact Detail Styles */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(44, 82, 130, 0.1);
}

.contact-detail:last-child {
  border-bottom: none;
}

/* Form Styles */
.form-control {
  border-radius: 15px;
  border: 2px solid #e2e8f0;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.3rem rgba(44, 82, 130, 0.25);
  background: #f8fafc;
}

/* Utility Classes */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bg-opacity-20 {
  background-color: rgba(var(--bs-bg-opacity-rgb), 0.2) !important;
}

.border-3 {
  border-width: 3px !important;
}