/* 
    Pristine Aligner - Custom Styles 
    Palette: White, Light Blue, Teal
*/

:root {
    /* Color Palette (Purple/Blue Theme) */
    --clr-teal: #6367ff;
    /* Primary Accent (Vibrant Blue/Purple) */
    --clr-teal-dark: #4b4ed9;
    /* Secondary Dark (Darker Blue/Purple for hover) */
    --clr-teal-hover: #8494ff;
    /* Hover Accent (Lighter Periwinkle) */
    --clr-blue-light: #c9beff;
    /* Soft Light Accent (Lavender) */
    --clr-white: #FFFFFF;
    --clr-dark: #2b2d42;
    /* Dark text color for readability */
    --clr-gray: #c9beff;
    --clr-light: #ffdbfd;
    /* Soft pink/purple background */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Utilities */
.text-teal {
    color: var(--clr-teal) !important;
}

.bg-teal {
    background-color: var(--clr-teal) !important;
}

.bg-teal-dark {
    background-color: var(--clr-teal-dark) !important;
}

.bg-blue-light {
    background-color: var(--clr-blue-light) !important;
}

.border-teal {
    border-color: var(--clr-teal) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.w-15 {
    width: 1.5rem;
    text-align: center;
}

/* Buttons */
.btn-teal {
    background-color: var(--clr-teal);
    color: var(--clr-white);
    border: none;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background-color: var(--clr-teal-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2) !important;
}

.btn-outline-teal {
    border: 2px solid var(--clr-teal);
    color: var(--clr-teal);
    transition: all 0.3s ease;
}

.btn-outline-teal:hover {
    background-color: var(--clr-teal);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.hover-teal:hover {
    background-color: var(--clr-teal) !important;
    color: var(--clr-white) !important;
    transition: 0.3s;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
    z-index: 1030;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
}

.brand-logo-img {
    height: 55px;
    border-radius: 50%;
    transition: height 0.3s ease;
}

.brand-text {
    font-size: 1.25rem;
    white-space: nowrap;
    transition: font-size 0.3s ease, color 0.3s ease;
}

/* Make sure text adapts to navbar themes (dark vs light) */
.navbar-light .brand-text {
    color: var(--clr-dark);
}

.navbar-dark .brand-text {
    color: var(--clr-white);
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 45px;
    }

    .brand-text {
        font-size: 1.15rem;
    }
}

@media (min-width: 576px) {
    .brand-text {
        font-size: 1.5rem;
    }
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-brand {
    color: white !important;
}

/* Nav Link Hover Underline */
.nav-link {
    position: relative;
    color: var(--clr-dark);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link:hover,
.navbar-light .nav-link:hover {
    color: var(--clr-teal) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--clr-teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-dark:not(.scrolled) .nav-link::after {
    background-color: white;
}

.navbar-dark:not(.scrolled) .nav-link:hover {
    color: white !important;
}

.navbar-dark:not(.scrolled) .btn-teal {
    background-color: white;
    color: var(--clr-teal);
}

.navbar-dark:not(.scrolled) .btn-teal:hover {
    background-color: var(--clr-blue-light);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('benyamin-bohlouli-e7MJLM5VGjY-unsplash.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Glassmorphism & Special FX */
.glass-panel {
    background: rgba(20, 30, 48, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animate-float {
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Animations */
.fade-in-page {
    animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-scale.active,
.reveal-right.active,
.reveal-left.active {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
}

.glow-pulse {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.2);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(26, 26, 26, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0);
    }
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.magnetic-wrap {
    display: inline-block;
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.1, 0.5, 0.5, 1), background-color 0.3s ease;
}

.parallax-img {
    will-change: transform;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 150, 199, 0.2) !important;
}

.hover-scale-card .card-img-top {
    transition: transform 0.5s ease;
}

.hover-scale-card:hover .card-img-top {
    transform: scale(1.1);
}

.group-hover-zoom {
    overflow: hidden;
}

.group-hover-zoom .hover-zoom-img {
    transition: transform 0.6s ease;
}

.group-hover-zoom:hover .hover-zoom-img {
    transform: scale(1.05);
}

/* Cards & Components */
.card-treatment {
    border-radius: 1.5rem !important;
}

.experience-badge {
    min-width: 140px;
}

.step-icon-bg {
    position: relative;
    z-index: 2;
}

/* Carousel */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 5%;
    opacity: 1;
}

.testimonial-carousel .carousel-control-prev {
    left: -10px;
}

.testimonial-carousel .carousel-control-next {
    right: -10px;
}

@media (max-width: 768px) {
    .testimonial-carousel .carousel-control-prev {
        left: 10px;
    }

    .testimonial-carousel .carousel-control-next {
        right: 10px;
    }
}

/* Footer Links */
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--clr-teal);
    padding-left: 5px;
}

/* Background Decorative Circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.1;
    z-index: 0;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.bg-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
}

@media (max-width: 768px) {
    .bg-circle-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        left: -50px;
    }

    .bg-circle-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        right: -100px;
    }
}

/* Floating Actions */
.floating-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-btn i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .floating-container {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.5rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn i {
        font-size: 1.25rem;
    }
}

/* Mobile responsive fixes */
@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98) !important;
        padding: 0.5rem 0;
    }

    .navbar-dark .nav-link,
    .navbar-dark .navbar-brand {
        color: var(--clr-dark) !important;
    }

    .navbar-dark .navbar-toggler i {
        color: var(--clr-teal) !important;
    }

    .hero-section {
        background-attachment: scroll;
        /* Better performance on mobile */
    }
}

/* Premium Letter Hover Transitions */
.split-char {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, text-shadow 0.3s ease, letter-spacing 0.4s ease;
    will-change: transform;
}

.split-hover-container:hover .split-char {
    transform: translateY(-4px) scale(1.05);
    color: var(--clr-gray);
    letter-spacing: 0.05em;
}

.nav-link.split-hover-container:hover .split-char {
    color: var(--clr-teal) !important;
    transform: translateY(-2px);
    letter-spacing: 0.01em;
}

/* Global Text Spacing Transitions */
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.footer-links a {
    transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    letter-spacing: 0.03em;
}

.btn:hover,
.footer-links a:hover {
    letter-spacing: 0.05em;
}

/* Expert Testimonial Styles - Enhanced for Hostinger compatibility */
.doctor-review-img-wrapper {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto 1.5rem !important;
    position: relative !important;
    padding: 6px !important;
    background: linear-gradient(135deg, var(--clr-teal), var(--clr-blue-light)) !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.doctor-review-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 4px solid white !important;
}

.doctor-quote-card {
    background: linear-gradient(135deg, var(--clr-teal), #1a1b2e) !important;
    color: white !important;
    padding: 2.5rem !important;
    border-radius: 2rem !important;
    position: relative !important;
    margin: 2rem auto 1rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    max-width: 90%;
    text-align: center;
}

.doctor-quote-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 2.2rem;
    color: var(--clr-teal);
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-name-label {
    color: var(--clr-dark);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.testimonial-desig-label {
    color: var(--clr-teal);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}