/* Custom Styles for Sommers Gate Farms */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Geometric Shape Animations */
.geometric-shape {
    animation: float 6s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection Color */
::selection {
    background-color: #4ade80;
    color: #052e16;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

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

/* Gradient Backgrounds */
.gradient-emerald {
    background: linear-gradient(135deg, #052e16 0%, #166534 100%);
}

.gradient-cream {
    background: linear-gradient(135deg, #fffbf0 0%, #fff7e6 100%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow Effects */
.shadow-glow {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: 3rem;
    }
}

@media (min-width: 769px) {
    .font-serif {
        font-size: 4rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Print Styles */
@media print {
    nav,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
}
