/* Custom styles - supplemental to Tailwind */

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

/* Selection color */
::selection {
    background: rgba(255, 107, 85, 0.3);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b55;
}

/* Gold line accent */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    height: 1px;
}

/* Coral gradient text */
.coral-gradient {
    background: linear-gradient(135deg, #ff7f6a, #e85a44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold gradient text */
.gold-gradient {
    background: linear-gradient(135deg, #e8c98a, #c49a3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 107, 85, 0.15);
}

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

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: translateX(100%);
}

/* Navigation link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7f6a, #e85a44);
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Fade-in animation for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Floating label form */
.floating-label input,
.floating-label textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #2e2e2e;
    color: #f5f5f5;
    padding: 12px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.floating-label input:focus,
.floating-label textarea:focus {
    outline: none;
    border-bottom-color: #ff6b55;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 12px;
    color: #ff6b55;
}

/* Success message animation */
.success-message {
    display: none;
    animation: slideIn 0.4s ease;
}

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

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .btn-shine::after {
        display: none;
    }
}
