/* ===== Custom Styles for Linden Beauty Castle ===== */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* ===== Geometric Shape Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid #FF6B6B;
    border-radius: 50%;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: #FF6B6B;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
    opacity: 0.05;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border: 2px solid #FF6B6B;
    border-radius: 50%;
    top: 40%;
    left: 10%;
    animation-delay: -10s;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #FF6B6B;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
    opacity: 0.04;
    transform: rotate(45deg);
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid #FF6B6B;
    bottom: 30%;
    right: 30%;
    animation-delay: -3s;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #FF6B6B;
    top: 25%;
    left: 20%;
    animation-delay: -12s;
    opacity: 0.06;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Card Hover ===== */
.service-card {
    will-change: transform;
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.closed .mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

/* ===== Button Ripple Effect ===== */
button, a {
    position: relative;
    overflow: hidden;
}

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

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

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

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

/* ===== Selection Color ===== */
::selection {
    background: #FF6B6B;
    color: white;
}

/* ===== Form Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== Image Hover Zoom ===== */
.group img {
    will-change: transform;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-square-1,
    .geo-square-2,
    .geo-triangle-1 {
        display: none;
    }
}

/* ===== Loading State for Images ===== */
img {
    background: linear-gradient(90deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===== Pulse Animation for Badge ===== */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

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