@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Great Vibes', cursive;

    --color-primary: #2D293F;
    --color-secondary: #F5FBFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

/* NAV */

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--color-primary) !important;
}

.nav-item {
    font-weight: 500;
    color: var(--color-primary) !important;
}

.nav-item:hover {
    text-decoration: underline;
}

/* Landing */
.dark-opacity-section {
    width: 100%;
    height: 65vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
}

.title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 0px;
    line-height: 1.2;
}

.subtitle {
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.25rem);
}


.cta {
    font-weight: 300;
    letter-spacing: 3px;
    border: none;
    background: rgb(45, 41, 63);
    text-transform: uppercase;
}

.cta:hover {
    background: rgb(45, 41, 63, 0.8);
    color: white;
    border: none;
}

/* Carousel */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    margin: 0 auto;

}

.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(45, 41, 63, 0.5);
    z-index: 1;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 300px;
    height: 400px;
    margin-right: 20px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Image loading optimization */
.carousel-slide img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide img[loading="lazy"].loaded {
    opacity: 1;
}

.carousel-controls {
    display: none;
}

/* Services */

.services-section {
    padding: 3% 15%;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(15px, 3vw, 25px);
}

.service-card {
    position: relative;
    height: clamp(250px, 25vw, 350px);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Service image loading optimization */
.service-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image img[loading="lazy"].loaded {
    opacity: 1;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(45, 41, 63, 0.5);
    z-index: 2;
}

.service-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
}

.service-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Pricing */

.price-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: clamp(2px, 1vw, 5px);
    color: #f4f4f4;
    line-height: 1.2;
}

.price-section {
    padding: 3rem 2rem;
    background: var(--color-primary);
    min-height: 100vh;
}

.price-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: rgb(45, 41, 63, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #f4f4f4;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tab-button.active {
    background: #f4f4f4;
    color: var(--color-primary);
    border-color: #f4f4f4;
}

.price-content {
    display: none;
}

.price-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.price-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-name {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #f4f4f4;
}

.service-price {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
}

/* Tablet and smaller responsive design */
@media (max-width: 992px) {
    .service-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 600px;
        margin: 0 auto 3rem;
    }

    .tab-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Service cards responsive breakpoints */
@media (max-width: 992px) {
    .services-section {
        padding: 3% 10%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: clamp(12px, 2.5vw, 20px);
    }

    .service-card {
        height: clamp(220px, 22vw, 280px);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3% 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: clamp(10px, 2vw, 15px);
    }

    .service-card {
        height: clamp(180px, 20vw, 220px);
    }

    .service-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.8rem;
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .tab-button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 7% 9%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: clamp(8px, 1.5vw, 12px);
    }

    .service-card {
        height: clamp(160px, 18vw, 200px);
    }

    .service-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.6rem;
        max-width: 350px;
        margin: 0 auto 2rem;
    }

    .tab-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Appointment Section */
.appointment-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
    min-height: 80vh;
}

.appointment-form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.appointment-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.appointment-form .form-label {
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.appointment-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 41, 63, 0.25);
}

.book-btn {
    background: var(--color-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 41, 63, 0.3);
}

/* Footer Section */
.footer-section {
    background: var(--color-primary);
    color: #f4f4f4;
    padding: 3rem 2rem 1rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f4f4f4;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-text strong {
    color: #f4f4f4;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: #f4f4f4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(45, 41, 63, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top-btn:hover {
    background-color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 41, 63, 0.4);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .appointment-section {
        padding: 2rem 1rem;
    }
    
    .appointment-form-container {
        padding: 2rem 1.5rem;
        margin: 0;
        max-width: none;
    }
    
    .appointment-title {
        font-size: 2rem;
    }
    
    .footer-section {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dark-opacity-section {
        height: 40vh;
    }

    .title {
        font-size: 1.5rem !important;
    }

    .subtitle {
        font-size: 0.8rem !important;
    }

    .cta {
        font-size: 0.7rem !important;
    }
    
    .appointment-section {
        padding: 1.5rem 0.5rem;
    }
    
    .appointment-form-container {
        padding: 1.5rem 1rem;
        margin: 0;
        max-width: none;
    }
    
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .appointment-section {
        padding: 1rem 0.25rem;
    }
    
    .appointment-form-container {
        padding: 1rem 0.75rem;
    }
}