/* AnalyzeMyCloud.com Custom Styles */
/* Professional Green (Money/Savings) Color Scheme */

/* Color Palette:
   Primary: Emerald Green (#047857, #10b981) - Money, Savings, Growth
   Complementary: Purple (#5b21b6, #7c3aed) - Trust, Premium
   Accent: Gold (#f59e0b) - Value, Premium
   Neutrals: Slate (#1e293b, #64748b, #f8fafc)
*/

/* Smooth scrolling with fixed header offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* 80px - accounts for 64px (h-16) nav + extra padding */
}

/* Custom gradient backgrounds - Green Money Theme */
.gradient-hero {
  background: linear-gradient(135deg, #047857 0%, #065f46 50%, #064e3b 100%);
}

.gradient-hero-alt {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.gradient-savings {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.gradient-premium {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Animated gradient background - Money/Growth theme */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(-45deg, #047857, #10b981, #059669, #34d399);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.animated-gradient-purple {
  background: linear-gradient(-45deg, #5b21b6, #7c3aed, #8b5cf6, #a78bfa);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* Money pulse animation for savings emphasis */
@keyframes money-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.money-pulse {
  animation: money-pulse 2s ease-in-out infinite;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(4, 120, 87, 0.2), 0 10px 10px -5px rgba(4, 120, 87, 0.1);
}

.hover-lift-gold {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.3), 0 10px 10px -5px rgba(245, 158, 11, 0.2);
}

/* Stats counter animation */
@keyframes countup {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  animation: countup 0.6s ease-out forwards;
}

/* Pricing card popular badge - Gold for premium */
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Feature icon pulse - Green emphasis */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}

.icon-pulse {
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Trust badge styles - Professional green */
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Mobile menu transition */
.mobile-menu {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

/* ROI Calculator highlight - Emerald green for savings */
.roi-highlight {
  background: linear-gradient(to right, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Guarantee seal - Gold for premium value */
.guarantee-seal {
  position: relative;
  display: inline-block;
}

.guarantee-seal::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Savings amount emphasis */
.savings-amount {
  color: #10b981;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Money symbol emphasis */
.money-symbol {
  color: #059669;
  font-weight: 900;
}

/* Professional card shadows - Green tint */
.card-shadow-green {
  box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.1),
              0 2px 4px -1px rgba(4, 120, 87, 0.06);
}

.card-shadow-green:hover {
  box-shadow: 0 20px 25px -5px rgba(4, 120, 87, 0.15),
              0 10px 10px -5px rgba(4, 120, 87, 0.1);
}

/* Success message styling */
.success-message {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left: 4px solid #10b981;
}

/* Warning/Alert styling */
.alert-savings {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
}

/* Professional button styles */
.btn-primary-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transition: all 0.3s ease;
}

.btn-primary-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

/* Percentage badge styling */
.percentage-badge {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

/* Price tag styling */
.price-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Glassmorphism effect for modern look */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shimmer effect for CTAs */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    #10b981 0%,
    #34d399 50%,
    #10b981 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Professional table styling */
.comparison-table th {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: white;
}

.comparison-table tr:nth-child(even) {
  background-color: #f0fdf4;
}

/* Checkmark icon styling for features */
.feature-check {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: bold;
}

/* Cost reduction emphasis */
.cost-reduction {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #10b981;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* ============================
   MOBILE OPTIMIZATIONS
   ============================ */

/* Base mobile improvements */
@media (max-width: 640px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Better text sizing on mobile */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

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

  /* Reduce padding on mobile - only bottom, preserve top for fixed header */
  section:not(:first-of-type) {
    padding-top: 3rem !important;
  }

  section {
    padding-bottom: 3rem !important;
  }

  /* Better mobile spacing */
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Touch-friendly buttons */
  a[class*="btn"],
  button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch-friendly links (not cards) */
  a.hover-lift {
    min-height: 44px;
  }

  /* Code blocks - horizontal scroll */
  pre {
    overflow-x: auto;
    max-width: 100%;
    font-size: 0.75rem;
  }

  pre code {
    white-space: pre;
    word-wrap: normal;
  }

  /* Form inputs - larger touch targets */
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    min-height: 44px;
  }

  /* Stats - stack vertically with better spacing */
  .stat-card {
    margin-bottom: 1.5rem;
  }

  /* Trust badges - wrap and center */
  .trust-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  /* Popular badge positioning fix */
  .popular-badge {
    position: relative;
    top: 0;
    transform: none;
    margin-bottom: 1rem;
    display: block;
  }

  /* Pricing cards - remove transform scale on mobile */
  .scale-105 {
    transform: scale(1) !important;
  }

  /* Better icon sizing */
  .text-4xl {
    font-size: 2rem !important;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }

  .text-6xl {
    font-size: 3rem !important;
  }

  .text-7xl {
    font-size: 3.5rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  h1 {
    font-size: 1.75rem !important;
  }

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

  /* Even smaller code font */
  pre {
    font-size: 0.7rem;
  }

  /* Tighter spacing - only for non-hero sections */
  section:not(:first-of-type) {
    padding-top: 2.5rem !important;
  }

  section {
    padding-bottom: 2.5rem !important;
  }
}

/* Tablet portrait */
@media (min-width: 641px) and (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

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

  /* Better grid spacing */
  .grid {
    gap: 1.5rem;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for all interactive elements */
  a,
  button,
  input,
  select {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  .hover-lift:hover,
  .hover-lift-gold:hover {
    transform: none;
    box-shadow: none;
  }

  /* Better tap feedback */
  button:active,
  a:active {
    opacity: 0.7;
    transition: opacity 0.1s;
  }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
  /* Reduce vertical padding in landscape - preserve hero padding */
  section:not(:first-of-type) {
    padding-top: 2rem !important;
  }

  section {
    padding-bottom: 2rem !important;
  }

  /* Compact hero - updated for pt-32 */
  .pt-32 {
    padding-top: 6rem !important;
  }
}

/* Prevent text overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile-friendly tables */
@media (max-width: 640px) {
  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.5rem !important;
  }
}

/* Better mobile navigation */
@media (max-width: 768px) {
  /* Ensure mobile menu is accessible */
  nav {
    z-index: 9999;
  }

  /* Mobile menu items - larger touch targets */
  nav a {
    padding: 1rem !important;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}
