* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
    background-color: #f8f0f5;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #e91e63;
    text-decoration: none;
    display: flex; 
    align-items: center; 
}

.navbar-icon {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 10px; 
    border: 2px solid #e91e63; 
}

nav ul {
  display: flex;
  list-style: none;
    gap: 25px;
}

nav ul li a {
  text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: #e91e63;
}

nav ul li a.active {
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}

main {
    padding-top: 0; 
}

.section {
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.section:nth-of-type(even) {
    background-color: #fdf7f8;
}

.section h1,
.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.8em;
}

.section p {
    color: #666;
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e91e63;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d81b60;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Stylists Section */
.stylists-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fdf7f8;
}

.stylists-section h1 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.stylist-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stylist-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.stylist-card:hover {
    transform: translateY(-10px);
}

.stylist-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e91e63;
}

.stylist-card h3 {
    color: #555;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.stylist-card p {
    color: #777;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.stylist-card .view-bio-btn {
    background-color: #e91e63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.stylist-card .view-bio-btn:hover {
    background-color: #d81b60;
}

/* Modal Styles */
.stylist-modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.stylist-modal.active {
    display: flex; 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-content .close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close-button:hover,
.modal-content .close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #e91e63;
}

.modal-content h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.modal-content h3 {
    color: #e91e63;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Services Section */
.services-list-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fdf7f8;
}

.services-list-section h1 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.filters {
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
    background-color: #e91e63;
    color: #fff;
}

.filter-btn.active {
    background-color: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #e91e63;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.service-card .category {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.service-card img {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fdf7f8;
}

.gallery-section h1 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    aspect-ratio: 1 / 1; 
    display: flex; 
    justify-content: center;
    align-items: center;
}

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

.gallery-item img {
    width: 100%;
    height: 100%; 
    object-fit: contain; 
    display: block;
    margin: 0 auto;
}


#lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(233, 30, 99, 0.6); 
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.close-lightbox {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #e91e63;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fdf7f8;
}

.contact-section h1 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contact-info h2,
.contact-form-container h2 {
    color: #e91e63;
    font-size: 2em;
    margin-bottom: 25px;
}

.contact-info p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info p strong {
    color: #333;
}

.contact-info a {
    color: #e91e63;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; 
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
}

.contact-form textarea {
    resize: vertical; 
    min-height: 120px;
}

.contact-form .btn {
    width: auto;
    margin-top: 10px;
}

/* Services Page */
.category-image-container {
    margin-bottom: 30px;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

.category-image-container img {
    width: 250px; 
    height: 200px; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Message Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.modal .close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal .close-button:hover,
.modal .close-button:focus {
    color: #e91e63; 
    text-decoration: none;
    cursor: pointer;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.7em;
  cursor: pointer;
  margin-left: 18px;
  color: #e91e63;
  transition: color 0.3s;
}
.dark-mode-toggle:hover {
  color: #333;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #18171c;
  color: #f3e9f7;
}
body.dark-mode header,
body.dark-mode nav {
  background-color: #23202b;
  color: #f3e9f7;
}
body.dark-mode .logo,
body.dark-mode nav ul li a {
  color: #f3e9f7;
}
body.dark-mode nav ul li a.active {
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}
body.dark-mode main,
body.dark-mode .section,
body.dark-mode .stylists-section,
body.dark-mode .services-list-section,
body.dark-mode .gallery-section,
body.dark-mode .contact-section {
  background-color: #23202b;
  color: #f3e9f7;
}
body.dark-mode .btn,
body.dark-mode .filter-btn.active {
  background-color: #e91e63;
  color: #fff;
}
body.dark-mode .btn:hover,
body.dark-mode .filter-btn.active:hover {
  background-color: #d81b60;
}
body.dark-mode .stylist-card,
body.dark-mode .service-card,
body.dark-mode .gallery-item,
body.dark-mode .contact-info,
body.dark-mode .contact-form-container {
  background-color: #29263a;
  color: #f3e9f7;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-mode footer {
  background-color: #18171c;
  color: #f3e9f7;
}
body.dark-mode .modal-content {
  background-color: #29263a;
  color: #f3e9f7;
}
body.dark-mode .modal {
  background-color: rgba(30, 20, 40, 0.7);
}

/* Responsiveness */
/* (max-width: 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: 0 15px;
    }

    nav ul {
        gap: 20px;
    }

    .section {
        padding: 60px 15px;
    }

    .section h1,
    .section h2 {
        font-size: 2.5em;
    }

    .section p {
        font-size: 1.1em;
    }

    .stylist-cards-container,
    .service-cards-container,
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .contact-content {
        gap: 30px;
    }

    .contact-info,
    .contact-form-container {
        padding: 25px;
    }
}

/* (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .section {
        padding: 40px 15px;
        min-height: auto;
    }

    .section h1,
    .section h2 {
        font-size: 2em;
    }

    .section p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .stylists-section h1,
    .services-list-section h1,
    .gallery-section h1,
    .contact-section h1 {
        font-size: 2em;
    }

    .stylist-cards-container,
    .service-cards-container,
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stylist-card,
    .service-card,
    .gallery-item,
    .contact-info,
    .contact-form-container {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content img {
        width: 120px;
        height: 120px;
    }

    .modal-content h2 {
        font-size: 1.8em;
    }

    .modal-content h3 {
        font-size: 1.2em;
    }

    .modal-content p {
        font-size: 1em;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
        margin: 0 3px;
    }

    .category-image-container img {
        width: 180px;
        height: 150px;
    }

    .contact-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* (max-width: 480px) */
@media (max-width: 480px) {
    nav {
        padding: 10px;
    }

    .logo {
        font-size: 1.5em;
    }

    .navbar-icon {
        width: 30px;
        height: 30px;
    }

    nav ul {
        gap: 10px;
        margin-top: 10px;
    }

    nav ul li a {
        font-size: 0.9em;
    }

    .section {
        padding: 30px 10px;
    }

    .section h1,
    .section h2 {
        font-size: 1.8em;
    }

    .section p {
        font-size: 0.9em;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .stylists-section h1,
    .services-list-section h1,
    .gallery-section h1,
    .contact-section h1 {
        font-size: 1.8em;
    }

    .stylist-card,
    .service-card,
    .gallery-item,
    .contact-info,
    .contact-form-container {
        padding: 15px;
    }

    .stylist-card img {
        width: 100px;
        height: 100px;
    }

    .stylist-card h3 {
        font-size: 1.5em;
    }

    .stylist-card p {
        font-size: 0.9em;
    }

    .service-card h3 {
        font-size: 1.5em;
    }

    .service-card p {
        font-size: 0.9em;
    }

    .service-card .price {
        font-size: 1.1em;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .category-image-container img {
        width: 150px;
        height: 120px;
    }

    .contact-form label,
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9em;
    }

    .modal-content .close-button,
    .close-lightbox {
        font-size: 30px;
    }

    .modal-content p {
        font-size: 1em;
    }
}