:root {
    --primary-color: #8B5CF6;
    --hover-color: #5830b4;
    --light-purple: #F3F0FF;
}

.bg-dark-purple {
    background-color: #2F1B55;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Navigation styles */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

.service-card-row {
    gap: 24px;
}

.service-card {
    background-color: #F8F8F8;
    background-image: url('assets/service-bg.svg');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 120px;
    padding: 32px;
    border-radius: 16px;
    width: 48%;
    position: relative;
    overflow: hidden;
    & li {
        margin-bottom: 16px;
    }
}

.service-card.service-card-last {
    width: 100%;
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
    .service-card {
        background-color: #F8F8F8;
        background-image: url('assets/service-bg.svg');
        background-position: right bottom;
        background-repeat: no-repeat;
        background-size: 100px;
        padding: 32px;
        border-radius: 16px;
        width: 100%;
        & li {
            margin-bottom: 16px;
        }
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--light-purple);
        padding: 4rem 2rem;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-collapse.collapsing {
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
    }

    .navbar-nav {
        text-align: center;
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
    }

    .navbar-collapse.show .navbar-nav {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        gap: 0 !important;
    }

    .nav-item {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: inline-block;
    }

    .nav-item .btn {
        font-size: 1.2rem;
        padding: 0.5rem 2rem;
        margin: 0.5rem 0;
        display: inline-block;
    }

    .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.5rem;
        line-height: 1;
        z-index: 1002;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.3s ease-in-out;
    }

    .navbar-collapse.show .close-menu {
        opacity: 1;
        transform: scale(1);
        transition-delay: 0.2s;
    }

    .navbar-toggler {
        z-index: 1001;
        transition: opacity 0.3s ease-in-out;
    }

    .navbar-collapse.show + .navbar-toggler {
        opacity: 0;
        pointer-events: none;
    }
}

/* Hero section adjustment */
.hero-section {
    background: linear-gradient(180deg, #F3EDFF 0%, #E8DCFF 100%);
    padding: 120px 0 0; /* Increased top padding to account for fixed navbar */
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 300px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    &:hover {
        background-color: var(--hover-color);
        border-color: var(--hover-color);
    }
}

.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Makes it square */
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1rem;
    z-index: 2001;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background-color: #fff;
    background-image: url('assets/service-bg.svg');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 100px;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .testimonial-card {
        background-size: 80px;
    }
} 

.text-italic {
   font-style: italic
}

/* Footer styles */
footer .bi, 
footer p i {
    color: white;
}

footer p {
    margin-bottom: 1rem;
}

footer h5 {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    footer .col-md-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    footer img {
        margin-bottom: 1rem;
    }
}

/* Appointment form styles */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

@media (max-width: 767.98px) {
    #book-appointment .row.mb-3 {
        margin-bottom: 0 !important;
    }
    
    #book-appointment .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #book-appointment .form-control {
        margin-bottom: 0.5rem;
    }
    
    #book-appointment textarea.form-control {
        margin-bottom: 1.5rem;
    }
}