/* Custom styles for Sips Soda */

/* Smooth transitions for all interactive elements */
a, button, input, textarea {
    transition: all 0.3s ease;
}

/* Custom focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

/* Geometric shape animations */
.geo-circle, .geo-triangle, .geo-square {
    will-change: transform;
}

/* Image hover effects */
img {
    will-change: transform;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text support */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Ensure proper z-index stacking */
.relative {
    position: relative;
}

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

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    nav, .geo-circle, .geo-triangle, .geo-square,
    .animate-float, .animate-float-delayed, .animate-spin-slow {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-midnight-900, .bg-midnight-800, .bg-midnight-700 {
        background: white !important;
        color: black !important;
    }
    
    .text-white, .text-gray-300, .text-gray-400 {
        color: black !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-mint-500/10, .border-mint-500/20, .border-mint-500/30 {
        border-color: rgba(72, 187, 120, 0.8) !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .transform:hover\:scale-105 {
        transform: none;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #48BB78;
    border-radius: 6px;
    border: 3px solid #0A1628;
}

::-webkit-scrollbar-thumb:hover {
    background: #38A169;
}

/* Selection color */
::selection {
    background: #48BB78;
    color: #0A1628;
}

::-moz-selection {
    background: #48BB78;
    color: #0A1628;
}
