/* Custom styles for Stollerheart Ranch */

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

.geo-square {
    animation: float 6s ease-in-out infinite;
}

.geo-square:nth-child(even) {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Geometric pattern backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 168, 67, 0.03) 10px,
        rgba(212, 168, 67, 0.03) 20px
    );
}

/* Gradient overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(19, 34, 56, 0.8) 100%);
}

/* Custom animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.6); }
}

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

/* Image hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 22, 40, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation active state */
.nav-link.active {
    color: #D4A843;
}

.nav-link.active::after {
    width: 100%;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Custom selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* Geometric decorative elements */
.deco-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(212, 168, 67, 0.1);
}

.deco-diamond {
    width: 40px;
    height: 40px;
    background: rgba(212, 168, 67, 0.1);
    transform: rotate(45deg);
}

/* Card hover effects */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Testimonial card styling */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: 'Playfair Display', serif;
    color: rgba(212, 168, 67, 0.1);
    line-height: 1;
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Section divider */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
}

/* Loading state */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(212, 168, 67, 0.3);
    border-top-color: #D4A843;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #D4A843, #E2BC5A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
}

/* Glass morphism */
.glass {
    background: rgba(19, 34, 56, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 67, 0.1);
}

/* Geometric corner accents */
.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(212, 168, 67, 0.3);
}

.corner-accent.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-accent.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-accent.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-accent.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}
