/* General Body and Fonts */
body {
    font-family: 'Poppins', sans-serif; /* A modern, clean font, assumed to be loaded via Bootstrap's default or a custom Google Fonts import if desired */
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

/* Custom Primary Color for the Salon */
:root {
    --primary-color: #6a1b9a; /* Deep Purple */
    --secondary-color: #fdd835; /* Amber/Gold for accents */
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Override Bootstrap Primary Button */
.btn-primary, .bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #5a148a !important; /* Slightly darker purple on hover */
    border-color: #5a148a !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Custom Secondary Button for CTAs */
.custom-btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--dark-color) !important; /* Dark text on amber button */
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.custom-btn-secondary:hover {
    background-color: #ffc107 !important; /* Slightly brighter amber */
    border-color: #ffc107 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand .logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden; /* Important for video background */
    min-height: 80vh;
}

#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(0.7); /* Darken video */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 3.8em;
    font-weight: bold;
}

.hero-content p.lead {
    font-size: 1.5em;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Animated Buttons */
.animated-button {
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.animated-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
    transform: skewX(-20deg);
}

.animated-button:hover::after {
    left: 100%;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px; /* Fixed height for service images */
    object-fit: cover;
    width: 100%;
}

.service-card .card-body {
    padding: 20px;
}

.service-card .card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Our Work Section - Carousel */
#workCarousel .carousel-item img {
    height: 450px; /* Fixed height for carousel images */
    object-fit: cover;
    border-radius: 10px;
}

#workCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 10px 15px;
    bottom: 20px; /* Adjust position */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.carousel-caption h5, .carousel-caption p {
    color: #fff;
}

.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Call to Action (CTA) Section */
.cta-section {
    background-image: linear-gradient(to right, var(--primary-color), #4d53a3); /* Gradient background */
    padding: 80px 0;
    position: relative;
    z-index: 1; /* Ensure text is above any potential background patterns */
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zM6 5v1H0V0zm0 0h1v1H0V0zM0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM0 0h1v1H0z"/%3E%3C/g%3E%3C/svg%3E'); /* Subtle pattern */
    opacity: 0.1;
    z-index: -1;
}


/* Footer Styling */
footer {
    padding: 40px 0;
    background-color: var(--dark-color);
}

footer .list-unstyled li a {
    transition: color 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: var(--secondary-color) !important;
}

.social-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-5px);
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
    left: 0;
    background: var(--secondary-color);
}

/* Page Headers (Contact, Book Appointment) */
.page-header {
    height: 40vh; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    margin-top: 56px; /* Adjust for fixed navbar height */
}

.contact-header {
    background-image: url('images/contact-bg.jpg'); /* Placeholder image */
}

.book-header {
    background-image: url('images/booking-bg.jpg'); /* Placeholder image */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.page-header .container {
    position: relative;
    z-index: 2;
}


/* Contact Page Specifics */
.contact-info-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-info-list li i {
    font-size: 1.2em;
    min-width: 30px; /* Align icons */
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 350px; /* Fixed height for the map */
}

.map-container iframe {
    border: none;
}

/* Booking Page Specifics */
.booking-content .form-control,
.booking-content .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.booking-content .form-control:focus,
.booking-content .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 27, 154, 0.25);
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color); /* Dark background for collapsed menu */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin-left: 0;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p.lead {
        font-size: 1.2em;
    }
    #workCarousel .carousel-item img {
        height: 350px;
    }
    .page-header {
        height: 30vh;
        margin-top: 56px; /* Ensure space for fixed navbar */
    }
    .page-header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p.lead {
        font-size: 1em;
    }
    .service-img {
        height: 180px;
    }
    #workCarousel .carousel-item img {
        height: 280px;
    }
    .carousel-caption {
        display: none !important; /* Hide captions on very small screens */
    }
    .page-header {
        height: 25vh;
    }
}