/* Custom styles for Stefane Clemente Studio */

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

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* Hover effects for cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Button ripple effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom */
.gallery-image {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-image img {
    transition: transform 0.5s ease;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #4f714f;
    outline-offset: 2px;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .cta-button::after {
        display: none;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .hero-pattern {
        background-attachment: fixed;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #283628;
    }
}

/* Print styles */
@media print {
    .cta-button,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
