/* CSS Variables */
:root {
    --color-primary: #FF6B35;
    --color-primary-rgb: 255, 107, 53;
    --color-light-orange: #FF8C61;
    --color-dark: #333333;
    --color-medium-gray: #666666;
    --color-light-gray: #F5F7FA;
    --color-soft-blue: #E6F0FF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section Animations */
.hero-animate {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-animate-delay-1 {
    animation-delay: 0.2s;
}

.hero-animate-delay-2 {
    animation-delay: 0.4s;
}

.hero-animate-delay-3 {
    animation-delay: 0.6s;
}

.hero-badge {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

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

/* Custom Button Hover Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.btn-hover-effect:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-orange);
}

/* Base Styles */
body {
    letter-spacing: -0.025em;
    @apply min-h-screen pb-24;
    overflow-x: hidden;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    color: var(--medium-gray);
    font-weight: 500;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.nav-text {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: green;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 8px;
    opacity: 0.1;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    transform: scale(1);
    opacity: 0.1;
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-link:hover .nav-line,
.nav-link.active .nav-line {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active::before {
    opacity: 0.15;
    transform: scale(1);
}

/* Sticky Navigation */
nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-sticky {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.transform-hide {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.transform-show {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Info Bar Appointment Button */
.top-appointment-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.top-appointment-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.top-appointment-btn:hover i {
    transform: translateX(2px);
}

/* Mobile Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background-color: #1A1A1A;
    padding: var(--spacing-xl);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    z-index: 60;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

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

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: #F5F5F5;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.8;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--light-orange);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding-left: var(--spacing-sm);
    opacity: 1;
}

/* Close button for mobile menu */
.mobile-menu-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: #F5F5F5;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.25rem;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile menu header */
.mobile-menu-header {
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-header h3 {
    color: #F5F5F5;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Mobile menu footer */
.mobile-menu-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-contact {
    color: #F5F5F5;
    font-size: 0.875rem;
    opacity: 0.8;
}

.mobile-menu-contact p {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.mobile-menu-contact i {
    width: 20px;
    margin-right: var(--spacing-sm);
    color: var(--light-orange);
}

/* Appointment Button */
.appointment-btn {
    background: var(--primary);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px -3px rgba(255, 75, 43, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.appointment-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--light-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.appointment-btn:hover::before {
    opacity: 1;
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px -5px rgba(255, 75, 43, 0.4);
    color: #FFFFFF;
}

.appointment-btn svg {
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.appointment-btn:hover svg {
    transform: translateX(4px);
}

/* Mobile Appointment Button */
.mobile-menu .appointment-btn {
    width: 100%;
    justify-content: center;
    background: #FFFFFF;
    color: var(--primary);
    margin-top: var(--spacing-md);
    text-shadow: none;
}

.mobile-menu .appointment-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* About Section Styles */
.about-section {
    position: relative;
    overflow: hidden;
}

/* Experience Badge Animation */
.experience-badge {
    animation: float 3s ease-in-out infinite;
}

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

/* Feature Icons Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    color: white;
}

/* Team Cards Animation */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Image Hover Effect */
.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    transition: transform 0.6s ease;
}

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

/* Decorative Elements Animation */
.decorative-element {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Feature Grid Hover Effects */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary);
    color: white;
}

/* Team Section Styles */
.team-grid {
    position: relative;
}

.team-member {
    transition: all 0.3s ease;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
    transition: transform 0.6s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* CTA Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.cta-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Section Title Animation */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .experience-badge {
        right: 1rem;
        bottom: 1rem;
        padding: 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .about-section {
        background-color: var(--dark-bg);
    }

    .team-member {
        background-color: var(--dark-card);
    }

    .text-medium-gray {
        color: var(--dark-text);
    }
}

/* Print Styles */
@media print {
    .about-section {
        break-inside: avoid;
    }

    .team-grid {
        break-inside: avoid;
    }
}

/* Gallery Section Styles */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.gallery-filter-btn:hover::after {
    width: 100%;
    left: 0;
}

.gallery-filter-btn.active::after {
    width: 100%;
    left: 0;
}

/* Lightbox Styles */
.gallerySwiper {
    --swiper-navigation-color: #fff;
    --swiper-pagination-color: #fff;
}

.gallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallerySwiper img,
.gallerySwiper video {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.gallerySwiper .swiper-button-next:hover,
.gallerySwiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallerySwiper .swiper-button-next::after,
.gallerySwiper .swiper-button-prev::after {
    font-size: 1.5rem;
}

.gallerySwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.gallerySwiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Video Controls */
.play-video-btn {
    transition: transform 0.3s ease;
}

.play-video-btn:hover {
    transform: scale(1.1);
}

/* Before/After Grid */
.grid-cols-2 {
    position: relative;
}

.grid-cols-2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .gallerySwiper .swiper-button-next,
    .gallerySwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .gallerySwiper .swiper-button-next::after,
    .gallerySwiper .swiper-button-prev::after {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .gallery-section {
        break-inside: avoid;
    }
    
    .gallery-filter-btn,
    .view-image-btn,
    .play-video-btn {
        display: none;
    }
}

/* Gallery Masonry Layout */
.gallery-grid {
    column-count: 1;
    column-gap: 1rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item .view-image-btn,
.gallery-item .play-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .view-image-btn,
.gallery-item:hover .play-video-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Loading State */
.gallery-item .loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.875rem;
    z-index: 0;
}

/* Custom Scrollbar for Testimonials */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* For Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

/* Testimonial Swiper Styles */
.testimonialsSwiper {
    padding-bottom: 3rem !important;
}

.testimonialsSwiper .swiper-pagination {
    bottom: 0 !important;
}

.testimonialsSwiper .swiper-pagination-bullet {
    margin: 0 4px;
    background: #ddd;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.testimonialsSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

/* Hero Section */
.hero-section {
    @apply relative min-h-screen bg-white overflow-hidden pb-16;
}

.hero-container {
    @apply container mx-auto px-4 py-4 md:py-16 relative z-10 h-full flex flex-col justify-center;
}

@media (max-width: 768px) {
    .hero-section {
        @apply min-h-[100vh] pb-16;
    }

    .hero-container {
        @apply py-16 justify-start;
    }

    .hero-content {
        @apply flex-1 flex flex-col justify-center text-center mb-8;
    }

    .hero-title {
        @apply text-3xl font-bold mb-4;
    }

    .hero-description {
        @apply text-base mb-6;
    }

    .hero-image {
        @apply relative w-full max-w-[280px] mx-auto mb-8;
    }

    .hero-image img {
        @apply w-full h-auto object-contain max-h-[200px];
    }

    .floating-icons {
        @apply absolute inset-0 pointer-events-none;
    }

    .hero-buttons {
        @apply flex flex-col gap-3 w-full max-w-xs mx-auto mb-8;
    }

    .hero-button {
        @apply w-full py-3 px-6 rounded-full text-center;
    }
}

/* Emergency Contact Spacing */
.fixed.bottom-6.right-6 {
    bottom: 2rem;
    margin-bottom: 2rem;
}

/* Back to top button adjustment */
.back-to-top {
    bottom: 10rem;
}

/* Treatment Transformations Styles */
.transformationsSwiper-container {
    padding: 20px 0 50px;
}

.transformationsSwiper .swiper-slide {
    height: auto;
    transition: transform 0.3s;
}

.transformationsSwiper .swiper-slide-active {
    transform: scale(1.02);
}

.transformation-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.treatment-filter-btn {
    transition: all 0.3s ease;
}

.treatment-filter-btn.active {
    font-weight: 600;
}

.transformationLightboxSwiper {
    height: 100%;
}

.transformationLightboxSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformationLightboxSwiper .swiper-button-next,
.transformationLightboxSwiper .swiper-button-prev {
    color: #FF4B2B;
}

.transformationLightboxSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.transformationLightboxSwiper .swiper-pagination-bullet-active {
    background: #FF4B2B;
}

.transformation-modal {
    z-index: 60;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments for the transformations section */
@media (max-width: 640px) {
    .transformation-card .flex-row {
        flex-direction: column;
    }
    
    .transformation-next, 
    .transformation-prev {
        display: none;
    }
    
    .transformation-pagination {
        bottom: 0;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.3), transparent);
    z-index: 1;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover p {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
}

.service-card h3 {
    position: relative;
    z-index: 2;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.4s ease;
}

.service-card:hover h3::after {
    width: 40px;
} 