/* Custom Styles for T's Facials and Salon */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7BC8A4;
}

/* Selection color */
::selection {
    background: #4DB6AC;
    color: #0B132B;
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Pulse animation for dots */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Hover card effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

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

.img-zoom:hover img {
    transform: scale(1.1);
}

/* 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 right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-shine:hover::after {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-100%, -100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(30deg) translate(100%, 100%);
        opacity: 0;
    }
}

/* Form focus effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4DB6AC;
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
}

/* Loading animation for buttons */
@keyframes loading {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.loading {
    background: linear-gradient(90deg, #4DB6AC 0%, #7BC8A4 50%, #4DB6AC 100%);
    background-size: 200% 200%;
    animation: loading 2s ease infinite;
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Prevent layout shift */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
