/* Custom styles for Smoked Tomato Pie */

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

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

::-webkit-scrollbar-track {
    background: #1A2744;
}

::-webkit-scrollbar-thumb {
    background: #4A9B8E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3D8B7E;
}

/* Selection color */
::selection {
    background: #4A9B8E;
    color: #1A2744;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #4A9B8E;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4A9B8E;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

/* Image hover effects */
.about-image img,
.hero-image img {
    transition: transform 0.3s ease;
}

.about-image:hover img,
.hero-image:hover img {
    transform: scale(1.02);
}

/* Loading animation for form */
.submit-btn {
    position: relative;
}

.submit-btn.loading {
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1A2744;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success message */
.success-message {
    background: #4A9B8E;
    color: #1A2744;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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