:root {
  --accent-color: #FF9800;
  --accent2-color: #3F51B5;
  --accent3-color: #009688;
  --accent4-color: #FFC107;
  --primary-color: #4CAF50;
  --dark-text-color: #212121;
  --gray-text-color: #757575;
  --button-padding-x: 16px;
  --button-padding-y: 10px;
  --font-family-body: 'Roboto', sans-serif;
  --light-text-color: #FFFFFF;
  --dark-border-color: #616161;
  --light-border-color: #E0E0E0;
  --font-family-heading: 'Nunito', sans-serif;
  --button-rounded-radius: 8px;
  --dark-background-color: #303030;
  --light-background-color: #C8FACD;
  --medium-background-color: #A5ECA8;
  --primary-button-text-color: #FFFFFF;
  --secondary-button-bg-color: #E0E0E0;
  --secondary-button-text-color: #4CAF50;
  --primary-button-hover-bg-color: #45A043;
  --primary-button-hover-text-color: #FFFFFF;
  --secondary-button-hover-bg-color: #D5D5D5;
  --secondary-button-hover-text-color: #4CAF50;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  color: var(--dark-text-color);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1280px;
}

/* Hovered and Clicked Elements */
.hovered-element {
  outline: #3871E0 dashed 2px;
}

.clicked-element {
  outline: #3871E0 solid 2px;
}

.clicked-code-section {
  border: #3B82F6 solid 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  font-family: var(--font-family-body);
}

/* Forms */
input, select, textarea {
  font-family: var(--font-family-body);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: var(--button-padding-y) var(--button-padding-x);
  border: 2px solid var(--light-border-color);
  border-radius: var(--button-rounded-radius);
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* Sections */
section {
  position: relative;
}

/* Header Sticky */
header {
  will-change: transform;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  #mobile-menu.hidden {
    display: none !important;
  }

  #mobile-menu:not(.hidden) {
    display: block !important;
  }
}

/* Responsive Images */
@media (max-width: 768px) {
  img {
    width: 100%;
  }

  /* Header responsive */
  header {
    padding: 0.5rem 0;
  }

  header .flex.items-center {
    height: auto;
    min-height: 3.5rem;
    gap: 1rem;
  }

  header a.flex-shrink-0 {
    flex-shrink: 1 !important;
    min-width: 0;
  }

  header img {
    height: auto !important;
    max-height: 60px !important;
    padding: 0.25rem 0 !important;
    width: auto !important;
  }

  header #mobile-menu-toggle {
    flex-shrink: 0 !important;
    padding: 0.5rem !important;
  }

  /* Hero section responsive */
  .grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 2rem !important;
  }

  .order-2.lg\:order-1 {
    order: 1 !important;
  }

  .order-1.lg\:order-2 {
    order: 2 !important;
  }

  h1 {
    font-size: 1.875rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  /* Process section responsive */
  .relative.flex.gap-6 {
    gap: 1rem !important;
    flex-direction: column !important;
  }

  .relative.flex.gap-6 .flex-shrink-0 {
    position: relative !important;
    margin-bottom: 0.5rem !important;
  }

  .relative.flex.gap-6 .absolute.right-7.top-20 {
    display: none !important;
  }

  .flex-1.bg-white.border-2,
  .flex-1.bg-\[var\(--light-background-color\)\] {
    padding: 1.5rem !important;
    border-radius: 1rem !important;
  }

  /* About section stats */
  .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Achievement badge repositioning */
  .absolute.-bottom-6.-right-6 {
    position: static !important;
    margin-top: 1rem !important;
  }

  /* Benefits grid */
  .grid.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Modal/Card spacing */
  .p-8 {
    padding: 1.5rem !important;
  }

  /* Who section grid */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact form spacing */
  .grid.gap-6 {
    gap: 1rem !important;
  }

  /* Typography on mobile */
  .text-lg {
    font-size: 1rem !important;
  }

  .sm\:text-2xl {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  header img {
    max-height: 48px !important;
  }

  header .flex.items-center {
    min-height: 3rem;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  .w-16.h-16 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1rem !important;
  }

  .gap-6 {
    gap: 0.5rem !important;
  }

  .mb-12 {
    margin-bottom: 2rem !important;
  }

  .p-8 {
    padding: 1rem !important;
  }

  .absolute.-inset-4 {
    display: none !important;
  }
}

/* Text Utilities */
.text-right {
  text-align: right;
}

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

.text-left {
  text-align: left;
}

/* Spacing Utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

.mr-2 { margin-right: 0.5rem; }

/* Padding Utilities */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Display Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }

/* Colors */
.bg-white { background-color: #FFFFFF; }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: #FFFFFF; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Rounded Corners */
.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

/* Hover Effects */
.hover\:-translate-y-1:hover {
  transform: translateY(-4px);
}

.hover\:-translate-y-2:hover {
  transform: translateY(-8px);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:-translate-y-2 {
  transform: translateY(-8px);
}

/* Gradient Utilities */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--primary-color), var(--accent3-color));
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--light-background-color), white);
}

/* Opacity */
.opacity-5 {
  opacity: 0.05;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-90 {
  opacity: 0.9;
}

/* Scroll Snap */
html {
  scroll-behavior: smooth;
}

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background-color: white;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Code Section */
.code-section {
  position: relative;
}

/* Absolute Positioning */
.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.-inset-4 {
  top: -1rem;
  right: -1rem;
  bottom: -1rem;
  left: -1rem;
}

.-bottom-6 {
  bottom: -1.5rem;
}

.-right-6 {
  right: -1.5rem;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.top-0 {
  top: 0;
}

.top-20 {
  top: 5rem;
}

.right-7 {
  right: 1.75rem;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.resize-none {
  resize: none;
}

/* Text Transform */
.uppercase {
  text-transform: uppercase;
}

/* Word Break */
.break-words {
  word-break: break-word;
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }
}

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

/* Grid */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sm\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Order */
.order-1 { order: 1; }
.order-2 { order: 2; }

.lg\:order-1 { order: 1; }
.lg\:order-2 { order: 2; }

/* Flex Utilities */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Text Size */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Line Height */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

/* Border */
.border { border: 1px solid var(--light-border-color); }
.border-2 { border: 2px solid var(--light-border-color); }
.border-t { border-top: 1px solid var(--light-border-color); }
.border-b { border-bottom: 1px solid var(--light-border-color); }

.border-gray-700 { border-color: #374151; }
.border-red-200 { border-color: #fecaca; }
.border-\[var\(--light-border-color\)\] { border-color: var(--light-border-color); }
.border-\[var\(--primary-color\)\] { border-color: var(--primary-color); }

/* Width and Height */
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }

.h-1 { height: 0.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-full { height: 100%; }

.min-h-\[300px\] { min-height: 300px; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Position */
.relative { position: relative; }
.sticky { position: sticky; }

/* Colors with Variables */
.bg-\[var\(--primary-color\)\] { background-color: var(--primary-color); }
.bg-\[var\(--accent-color\)\] { background-color: var(--accent-color); }
.bg-\[var\(--accent2-color\)\] { background-color: var(--accent2-color); }
.bg-\[var\(--accent3-color\)\] { background-color: var(--accent3-color); }
.bg-\[var\(--accent4-color\)\] { background-color: var(--accent4-color); }
.bg-\[var\(--light-background-color\)\] { background-color: var(--light-background-color); }
.bg-\[var\(--dark-background-color\)\] { background-color: var(--dark-background-color); }

.text-\[var\(--dark-text-color\)\] { color: var(--dark-text-color); }
.text-\[var\(--gray-text-color\)\] { color: var(--gray-text-color); }
.text-\[var\(--primary-color\)\] { color: var(--primary-color); }
.text-\[var\(--accent-color\)\] { color: var(--accent-color); }

/* Font Family */
.font-\[var\(--font-family-body\)\] { font-family: var(--font-family-body); }
.font-\[var\(--font-family-heading\)\] { font-family: var(--font-family-heading); }

/* Rounded with Variables */
.rounded-\[var\(--button-rounded-radius\)\] { border-radius: var(--button-rounded-radius); }

/* Responsive */
@media (max-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-6xl { font-size: 3.75rem; }
  .sm\:text-xl { font-size: 1.25rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* Tablet styles */
}

@media (min-width: 1025px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

/* Extra utilities for Firefox and WebKit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-button-hover-bg-color);
}
