/* MAINERMEDIA - Green, Black & White Professional Branding */

/* Custom font optimizations */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

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

/* MAINERMEDIA Green/Black/White Brand Colors */
:root {
  --mainermedia-green: #059669;
  --mainermedia-green-light: #10b981;
  --mainermedia-black: #000000;
  --mainermedia-gray: #374151;
  --mainermedia-gradient: linear-gradient(135deg, #059669 0%, #374151 100%);
}

/* Professional SVG Icon Styling */
svg {
  transition: all 0.3s ease;
}

/* Mobile menu button improvements */
#mobile-menu-button {
  min-height: 44px; /* iOS touch target minimum */
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu-button svg {
  flex-shrink: 0;
}

.svg-icon-container:hover svg {
  transform: scale(1.1);
}

/* Enhanced icon backgrounds with subtle animation */
.bg-gradient-to-r:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.25);
}

/* SVG icon professional sizing and alignment */
svg[viewBox] {
  max-width: 100%;
  height: auto;
}

/* Enhanced button styles for Green/Black/White branding */
button {
  transition: all 0.3s ease;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

button:active {
  transform: translateY(0);
}

/* Gradient button enhancement for green theme */
button.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradient-shift-green 3s ease infinite;
}

@keyframes gradient-shift-green {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Professional typography with MAINERMEDIA green styling */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* Italics styling for MAINERMEDIA taglines */
em {
  font-style: italic;
  color: inherit;
}

/* Enhanced focus states with green theme */
button:focus,
a:focus {
  outline: 3px solid rgba(5, 150, 105, 0.5);
  outline-offset: 2px;
}

/* Card hover effects with green accents and SVG animation */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.hover\:shadow-xl:hover svg {
  transform: scale(1.05);
}

/* Enhanced selection highlight with green theme */
::selection {
  background-color: rgba(5, 150, 105, 0.2);
  color: inherit;
}

/* Professional list styling */
ul {
  list-style: none;
  padding: 0;
}

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

/* Professional responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* MAINERMEDIA specific green gradient text */
.text-gradient-green {
  background: linear-gradient(135deg, #059669, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced border styles with green theme */
.border-gradient-green {
  border: 2px solid;
  border-image: linear-gradient(135deg, #059669, #374151) 1;
}

/* Smooth transitions for all interactive elements */
a, button, [role="button"] {
  transition: all 0.2s ease-in-out;
}

/* Professional spacing and rhythm */
section {
  scroll-margin-top: 2rem;
}

/* Enhanced accessibility with green theme */
*:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* MAINERMEDIA green brand animation */
@keyframes float-green {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float-green {
  animation: float-green 6s ease-in-out infinite;
}

/* Green hover effects for links */
a:hover {
  color: #059669;
  transition: color 0.2s ease-in-out;
}

/* Enhanced shadow effects with green tint */
.shadow-green {
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.1), 0 2px 4px -1px rgba(5, 150, 105, 0.06);
}

.shadow-green-lg {
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.1), 0 4px 6px -2px rgba(5, 150, 105, 0.05);
}

/* Professional green accent borders */
.border-green-accent {
  border-color: #10b981;
}

/* Subtle green background tints */
.bg-green-tint {
  background-color: rgba(5, 150, 105, 0.05);
}

/* Professional black text with good contrast */
.text-professional-black {
  color: #111827;
}

/* Icon container professional styling */
.icon-container {
  transition: all 0.3s ease;
  position: relative;
}

.icon-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(5, 150, 105, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icon-container:hover::before {
  opacity: 1;
}