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

:root {
  --brand-teal: #0891b2;
  --brand-orange: #f97316;
  --brand-light-gray: #f9fafb;
  --brand-dark-gray: #4b5563;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Typography */
.font-heading {
  font-family: "Montserrat", sans-serif;
}

.font-body {
  font-family: "Open Sans", sans-serif;
}

.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-black {
  font-weight: 900;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1.2;
}
.text-7xl {
  font-size: 4.5rem;
  line-height: 1.2;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 1.3;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 1.3;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 1.4;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.5;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.5;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5;
}

/* Added small text size for testimonials and badge text */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Colors */
.text-brand-teal {
  color: var(--brand-teal);
}
.text-brand-orange {
  color: var(--brand-orange);
}
.text-gray-900 {
  color: #111827;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-white {
  color: #ffffff;
}

.bg-white {
  background-color: #ffffff;
}
.bg-brand-light-gray {
  background-color: var(--brand-light-gray);
}
.bg-brand-teal {
  background-color: var(--brand-teal);
}
.bg-brand-orange {
  background-color: var(--brand-orange);
}
.bg-gray-900 {
  background-color: #111827;
}
.bg-brand-teal\/10 {
  background-color: rgba(8, 145, 178, 0.1);
}
.bg-brand-teal\/20 {
  background-color: rgba(8, 145, 178, 0.2);
}
.bg-brand-orange\/10 {
  background-color: rgba(249, 115, 22, 0.1);
}
.bg-brand-orange\/20 {
  background-color: rgba(249, 115, 22, 0.2);
}
.bg-brand-orange\/50 {
  background-color: rgba(249, 115, 22, 0.5);
}
.bg-brand-teal\/50 {
  background-color: rgba(8, 145, 178, 0.5);
}

/* Layout */
.max-w-7xl {
  max-width: 80rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-lg {
  max-width: 32rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-0 {
  margin-top: 0;
}
.pt-24 {
  padding-top: 6rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pb-20 {
  padding-bottom: 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;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-20 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

/* Flexbox */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.space-x-1 {
  gap: 0.25rem;
}
.space-x-1\.5 {
  gap: 0.375rem;
}
.space-x-3 {
  gap: 0.75rem;
}
.space-x-8 {
  gap: 2rem;
}
.space-y-2 {
  gap: 0.5rem;
}
.space-y-3 {
  gap: 0.75rem;
}
.space-y-4 {
  gap: 1rem;
}
.space-y-6 {
  gap: 1.5rem;
}
.space-y-8 {
  gap: 2rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-16 {
  gap: 4rem;
}

/* 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));
}
.md\: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));
}

/* Border and Shadows */
.border {
  border: 1px solid #e5e7eb;
}
.border-t {
  border-top: 1px solid #e5e7eb;
}
.border-b {
  border-bottom: 1px solid #e5e7eb;
}
.border-0 {
  border: none;
}
.border-2 {
  border: 2px solid;
}
.border-brand-teal {
  border-color: var(--brand-teal);
}
.border-brand-orange {
  border-color: var(--brand-orange);
}
.border-gray-100 {
  border-color: #f3f4f6;
}
.border-gray-200 {
  border-color: #e5e7eb;
}
.border-gray-300 {
  border-color: #d1d5db;
}
.border-brand-teal\/20 {
  border-color: rgba(8, 145, 178, 0.2);
}
.border-brand-orange\/20 {
  border-color: rgba(249, 115, 22, 0.2);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Sizing */
.w-full {
  width: 100%;
}
.w-10 {
  width: 2.5rem;
}
.w-8 {
  width: 2rem;
}
.w-6 {
  width: 1.5rem;
}
.w-2 {
  width: 0.5rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-0\.5 {
  height: 0.125rem;
}
.h-12 {
  height: 3rem;
}
.h-48 {
  height: 12rem;
}

/* Display */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.md\:flex {
  display: flex;
}
.md\:flex-row {
  flex-direction: row;
}
.md\:hidden {
  display: none;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
}

/* Card */
.card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Buttons */
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

button:hover {
  transform: translateY(-2px);
}

/* Form inputs */
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
}

/* Gradient */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Backdrop */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Opacity */
.bg-white\/95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.bg-brand-teal\/90 {
  background-color: rgba(8, 145, 178, 0.9);
}

.bg-brand-orange\/90 {
  background-color: rgba(249, 115, 22, 0.9);
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.transition-colors {
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hidden {
    display: none;
  }
  .md\:hidden {
    display: none;
  }
  .md\:flex {
    display: flex;
  }
  .md\:mb-0 {
    margin-bottom: 0;
  }
  .md\:text-right {
    text-align: right;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:flex {
    display: flex;
  }
}

/* Blur for background */
.blur-3xl {
  filter: blur(64px);
}

/* Gradient backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-white {
  --tw-gradient-stops: rgba(255, 255, 255, 1), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}
.via-brand-light-gray {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(249, 250, 251, 1), var(--tw-gradient-to, rgba(249, 250, 251, 0));
}
.to-white {
  --tw-gradient-to: rgba(255, 255, 255, 1);
}
.from-brand-teal {
  --tw-gradient-stops: rgba(8, 145, 178, 1), var(--tw-gradient-to, rgba(8, 145, 178, 0));
}
.to-brand-orange {
  --tw-gradient-to: rgba(249, 115, 22, 1);
}
.from-brand-teal\/20 {
  --tw-gradient-stops: rgba(8, 145, 178, 0.2), var(--tw-gradient-to, rgba(8, 145, 178, 0));
}
.to-brand-orange\/20 {
  --tw-gradient-to: rgba(249, 115, 22, 0.2);
}
.from-brand-teal\/50 {
  --tw-gradient-stops: rgba(8, 145, 178, 0.5), var(--tw-gradient-to, rgba(8, 145, 178, 0));
}
.to-brand-teal\/50 {
  --tw-gradient-to: rgba(8, 145, 178, 0.5);
}

/* Relative and absolute positioning */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.-top-4 {
  top: -1rem;
}
.-left-4 {
  left: -1rem;
}
.top-1\/2 {
  top: 50%;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.fixed {
  position: fixed;
}
.transform {
  transform: translate(0, 0);
}
.-translate-y-1\/2 {
  transform: translateY(-50%);
}

/* Additional responsive helpers */
@media (min-width: 768px) {
  .md\:mb-0 {
    margin-bottom: 0;
  }
  .md\:flex {
    display: flex;
  }
  .md\:text-right {
    text-align: right;
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .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));
  }
  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1.2;
  }
  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1.2;
  }
  .lg\:block {
    display: block;
  }
  .lg\:p-12 {
    padding: 3rem;
  }
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
}
p {
  font-family: "Open Sans", sans-serif;
}

/* Improved section padding and spacing */
#portfolio {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

#portfolio .max-w-7xl {
  width: 100%;
}

/* Project card images with better aspect ratio */
.card .h-48 {
  height: 14rem;
  background-size: cover;
  background-position: center;
}

/* Better typography hierarchy for project cards */
.card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}

/* Improved section heading alignment and spacing */
.text-center h2 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.text-center p {
  margin-top: 1rem;
}

/* Better button styling */
button[type="submit"] {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

button[type="submit"]:hover {
  box-shadow: 0 15px 30px rgba(8, 145, 178, 0.3);
}

/* Gallery grid improvement */
.grid.md\:grid-cols-2.lg\:grid-cols-3 {
  grid-auto-rows: 1fr;
}
