/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

iframe {
  margin: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #06b6d4;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0891b2;
}

/* Smooth Transitions */
a,
button {
  transition: all 0.3s ease;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text Selection */
::selection {
  background-color: #06b6d4;
  color: #ffffff;
}

/* Accessibility */
button:focus,
a:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Mobile First Approach */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }
}

/* Print Styles */
@media print {
  nav,
  footer,
  button,
  .toggle-menu {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Solid Color Theme */
.bg-gradient-cyan {
  background: #06b6d4;
}

.gradient-text {
  color: #06b6d4;
}

/* Custom Shadows */
.shadow-sm-custom {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-lg-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Link Styles */
a {
  color: #06b6d4;
  text-decoration: none;
}

a:hover {
  color: #0891b2;
}

/* Button Styles */
button {
  cursor: pointer;
  border: none;
  font-weight: 600;
  border-radius: 0.5rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Lists */
ul,
ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #06b6d4;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

/* Code Blocks */
code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  color: #dc2626;
}

pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: #0f172a;
}

tr:hover {
  background: #f9fafb;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-primary {
  background: #cffafe;
  color: #0c4a6e;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.mb-auto {
  margin-bottom: auto;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .hidden-sm {
    display: none;
  }

  .visible-sm {
    display: block;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hidden-md {
    display: none;
  }

  .visible-md {
    display: block;
  }
}

@media (min-width: 1025px) {
  .hidden-lg {
    display: none;
  }

  .visible-lg {
    display: block;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Prose Styling */
.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary i {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

details summary i {
  transition: transform 0.3s ease;
}

/* Star Rating */
.fa-star {
  font-size: 1.2rem;
}

/* Testimonial Avatars */
.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #06b6d4;
  color: white;
  font-weight: bold;
}

/* Stat Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-box {
  animation: countUp 0.6s ease-out;
}

/* Hover Effects for Cards */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* News Card Border */
.news-card {
  border-left: 4px solid #06b6d4;
}
