/* 
   Chapter One Hair and Beauty Salon
   Modern Website Styles 
*/

/* General Styles */
:root {
    --primary-color: #f53275;
    --secondary-color: #229dff;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease-in-out;
    
    /* Professional salon quality colors */
    --beauty-color: #f53275; /* Elegant pink */
    --nails-color: #3a86ff; /* Sophisticated blue */
    --hair-color: #38b000; /* Fresh green */
    --products-color: #8338ec; /* Rich purple */
    --coffee-color: #ff9500; /* Warm orange */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 100%;
    text-align: center;
    margin: 15px 0;
}

.section-divider span {
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
}

.section-divider span::before,
.section-divider span::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-divider span::before {
    left: -15px;
}

.section-divider span::after {
    right: -15px;
}

/* Header Styles */
.header-main {
    position: absolute;
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.top-header {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header .contact-info {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.top-header .contact-info li {
    white-space: nowrap;
    margin-right: 20px;
    font-size: 14px;
    flex-shrink: 1;
}

.top-header .contact-info li:last-child {
    margin-right: 0;
}

@media (max-width: 1200px) {
    .top-header .contact-info {
        flex-wrap: wrap;
    }
    
    .top-header .contact-info li {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .top-header .contact-info {
        flex-direction: column;
    }
    
    .top-header .contact-info li {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

.contact-info li a {
    color: var(--white-color);
}

.contact-info li a:hover {
    color: var(--primary-color);
}

.contact-info li i {
    color: var(--primary-color);
    margin-right: 5px;
}

.social-icons {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.social-icons li {
    margin-left: 15px;
}

.social-icons li a {
    color: var(--white-color);
    font-size: 16px;
    transition: var(--transition);
}

.social-icons li a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-shrink {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.navbar-brand h2 {
    margin: 0;
    color: var(--white-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand span {
    font-size: 14px;
    color: var(--white-color);
    letter-spacing: 2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white-color);
    font-weight: 500;
    padding: 10px 15px;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover::before,
.navbar-dark .navbar-nav .nav-link.active::before {
    width: calc(100% - 30px);
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 0;
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--white-color);
    font-size: 14px;
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-image {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

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

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-in-out;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-in-out;
}

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

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

/* Services Section */
.services-section {
    background-color: var(--light-color);
    padding: 40px 0; /* Add padding for better spacing */
}

.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Softer shadow for depth */
    padding: 5px; /* Reduced padding for a more compact look */
    margin: 25px; /* Adjust margin to create space between cards */
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

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

.service-card:hover {
    transform: translateY(-5px); /* Slightly less movement for a subtle effect */
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; /* Slightly smaller icon size */
    height: 70px; /* Slightly smaller icon size */
    background-color: rgba(245, 50, 117, 0.1);
    border-radius: 50%;
    margin-bottom: 15px; /* Reduced margin for a tighter look */
    transition: var(--transition);
}

.service-icon i {
    font-size: 30px; /* Slightly smaller icon size */
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 20px; /* Reduced heading size for a more modern feel */
    font-weight: 600;
    margin-bottom: 10px; /* Reduced margin */
    transition: var(--transition);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 15px; /* Reduced margin */
    transition: var(--transition);
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Service card variations */
.service-card-beauty,
.service-card-nails,
.service-card-hair,
.service-card-products,
.service-card-coffee {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 5px;
    margin: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Service card colors */
.service-card-beauty {
    color: var(--dark-color);
}
.service-card-beauty .service-icon i {
    color: var(--beauty-color);
}

.service-card-nails {
    color: var(--dark-color);
}
.service-card-nails .service-icon i {
    color: var(--nails-color);
}

.service-card-hair {
    color: var(--dark-color);
}
.service-card-hair .service-icon i {
    color: var(--hair-color);
}

.service-card-products {
    color: var(--dark-color);
}
.service-card-products .service-icon i {
    color: var(--products-color);
}

.service-card-coffee {
    color: var(--dark-color);
}
.service-card-coffee .service-icon i {
    color: var(--coffee-color);
}

/* Service card hover effects */
.service-card-beauty:hover,
.service-card-nails:hover,
.service-card-hair:hover,
.service-card-products:hover,
.service-card-coffee:hover {
    color: white;
    transform: translateY(-5px);
}

.service-card-beauty:hover h3,
.service-card-nails:hover h3,
.service-card-hair:hover h3,
.service-card-products:hover h3,
.service-card-coffee:hover h3,
.service-card-beauty:hover p,
.service-card-nails:hover p,
.service-card-hair:hover p,
.service-card-products:hover p,
.service-card-coffee:hover p,
.service-card-beauty:hover .service-link,
.service-card-nails:hover .service-link,
.service-card-hair:hover .service-link,
.service-card-products:hover .service-link,
.service-card-coffee:hover .service-link {
    color: white;
}

.service-card-beauty:hover .service-icon i,
.service-card-nails:hover .service-icon i,
.service-card-hair:hover .service-icon i,
.service-card-products:hover .service-icon i,
.service-card-coffee:hover .service-icon i {
    color: white;
}

/* Service card before elements */
.service-card-beauty:before,
.service-card-nails:before,
.service-card-hair:before,
.service-card-products:before,
.service-card-coffee:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: var(--transition);
    z-index: -1;
}

.service-card-beauty:before {
    background-color: var(--beauty-color);
}

.service-card-nails:before {
    background-color: var(--nails-color);
}

.service-card-hair:before {
    background-color: var(--hair-color);
}

.service-card-products:before {
    background-color: var(--products-color);
}

.service-card-coffee:before {
    background-color: var(--coffee-color);
}

.service-card-beauty:hover:before,
.service-card-nails:hover:before,
.service-card-hair:hover:before,
.service-card-products:hover:before,
.service-card-coffee:hover:before {
    height: 100%;
}

/* Team Section */
.team-member:hover .member-img img {
    transform: scale(1.1);
}

.social {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .social {
    opacity: 1;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--dark-color);
    margin: 0 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .social a {
    transform: translateY(0);
    opacity: 1;
}

.social a:nth-child(1) {
    transition-delay: 0.1s;
}

.social a:nth-child(2) {
    transition-delay: 0.2s;
}

.social a:nth-child(3) {
    transition-delay: 0.3s;
}

.social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.member-info {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.member-info h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-info span {
    display: block;
    font-size: 14px;
    color: var(--gray-color);
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.team-member-modal {
    text-align: center;
    margin-bottom: 20px;
}

.team-member-modal img {
    border-radius: 10px;
    margin-bottom: 10px;
}

.team-member-modal h5 {
    font-size: 18px;
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--light-color);
    padding-bottom: 0;
    overflow: hidden;
}

.gallery-container {
    height: 600px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gallery-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Make sure gallery is responsive */
@media (max-width: 768px) {
    .gallery-container {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        height: 400px;
    }
}

/* Gallery Styles */
.gallery-grid {
    margin-top: 30px;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal img {
    max-height: 80vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 150px;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    background-color: #fff;
}

.contact-form-container {
    padding: 50px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-info-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-logo {
    text-align: center;
    margin-bottom: 30px;
}

.contact-logo img {
    max-width: 200px;
}

.contact-info-box {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 24px;
    color: var(--white-color);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item div {
    flex: 1;
}

.info-item h4 {
    font-size: 18px;
    color: var(--white-color);
    margin-bottom: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.info-item p a {
    color: rgba(255, 255, 255, 0.8);
}

.info-item p a:hover {
    color: var(--white-color);
}

.contact-map {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: var(--white-color);
    padding: 80px 0 0;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 22px;
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.hours-table {
    width: 100%;
}

.hours-table tr td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table tr td:last-child {
    text-align: right;
}

.map-container {
    height: 200px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.copyright {
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

.copyright p {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright a {
    color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border: none;
    padding: 15px 20px;
}

.services-list {
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 10px;
}

/* Modal color variations */
#beautyModal .modal-header {
    background-color: var(--beauty-color);
}

#nailModal .modal-header {
    background-color: var(--nails-color);
}

#hairModal .modal-header {
    background-color: var(--hair-color);
}

#productModal .modal-header {
    background-color: var(--products-color);
}

#coffeeModal .modal-header {
    background-color: var(--coffee-color);
}

.modal-footer {
    border-top: none;
}

/* Close button styling */
.btn-close {
    color: var(--white-color);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    line-height: 50px;
    z-index: 99;
    transition: var(--transition);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .sb-description h3 {
        font-size: 4rem;
    }
    
    .sb-description p {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-radius: 5px;
        margin-top: 15px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .navbar-dark .navbar-nav .nav-link::before {
        display: none;
    }
    
    .sb-description h3 {
        font-size: 3.5rem;
    }
    
    .sb-description p {
        font-size: 1.5rem;
    }
    
    .contact-info-container {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .top-header {
        display: none;
    }
    
    .sb-description h3 {
        font-size: 2.5rem;
    }
    
    .sb-description p {
        font-size: 1.2rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .contact-form-container, 
    .contact-info-box {
        padding: 30px;
    }
}

@media (max-width: 575px) {
    .navbar-brand h2 {
        font-size: 24px;
    }
    
    .navbar-brand span {
        font-size: 12px;
    }
    
    .sb-description h3 {
        font-size: 2rem;
    }
    
    .sb-description p {
        font-size: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .footer-info h3 {
        font-size: 20px;
    }
}

/* Coffee Shop Carousel Styling */
#coffeeCarousel {
    position: relative;
}

#coffeeCarousel .carousel-control-prev,
#coffeeCarousel .carousel-control-next {
    width: 10%;
    background-color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

#coffeeCarousel .carousel-indicators button {
    background-color: var(--coffee-color);
    opacity: 0.5;
}

#coffeeCarousel .carousel-indicators button.active {
    background-color: var(--coffee-color);
    opacity: 1;
}