/* ===================================
   Treatments Premium Section
   =================================== */

.treatments-section {
    padding: 120px 20px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-particle {
    position: absolute;
    background: linear-gradient(45deg, #d4a574, #f4d03f, #d4a574);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
    opacity: 0.6;
    filter: blur(1px);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(10px) rotate(360deg);
        opacity: 0;
    }
}

.treatments-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.treatment-card {
    position: relative;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(212,165,116,0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 0 50px rgba(212, 165, 116, 0.1);
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.treatment-card:hover::before {
    opacity: 1;
}

.treatment-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.4),
        0 0 100px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(212, 165, 116, 0.8);
}

.card-image {
    position: relative;
    height: 60%;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}

.treatment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9) contrast(1.2) saturate(1.1);
}

.treatment-card:hover .treatment-image {
    transform: scale(1.2) rotate(2deg);
    filter: brightness(1.1) contrast(1.3) saturate(1.3);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6) 0%, rgba(212,165,116,0.3) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.treatment-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(212, 165, 116, 0.5);
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.treatment-card:hover .card-content {
    transform: translateY(0);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #d4a574, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-description {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.2s;
}

.treatment-card:hover .card-description {
    transform: translateY(0);
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.treatment-card:hover .card-glow {
    opacity: 1;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.premium-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d4a574, #f4d03f);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.magic-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid #d4a574;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease 0.3s;
    cursor: pointer;
}

.treatment-card:hover .magic-button {
    opacity: 1;
    transform: scale(1);
}

.magic-button:hover {
    background: linear-gradient(135deg, #d4a574, #f4d03f);
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.6);
}

.magic-button::after {
    content: '→';
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.magic-button:hover::after {
    transform: translateX(3px);
}

/* Loading Animation */
.treatment-card {
    opacity: 0;
    transform: translateY(50px);
    animation: cardReveal 0.8s ease forwards;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-card:nth-child(1) { animation-delay: 0.1s; }
.treatment-card:nth-child(2) { animation-delay: 0.2s; }
.treatment-card:nth-child(3) { animation-delay: 0.3s; }
.treatment-card:nth-child(4) { animation-delay: 0.4s; }
.treatment-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .treatments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .treatment-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .treatments-section {
        padding: 80px 15px;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .treatment-card {
        height: 350px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}