@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;600&display=swap');

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0c10; /* Dark background for preloader */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
    opacity: 1;
    visibility: visible;
}

.preloader-button {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: gold;
    padding: 15px 40px;
    border: 2px solid gold;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.preloader-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    animation: slide-shine 2.5s infinite;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(to right, #341C3A, #092475);
    color: #FFFFFF;
    line-height: 1.6;
}

body.contact-background {
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5)), url('Nail treatment.jpg') no-repeat center center/cover;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: visible; /* Changed from hidden to visible to prevent dropdowns from being cut off */
    padding: 0 20px;
}

/* Header and Logo */
header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: gold;
}

.logo img {
    max-height: 100px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

/* Mobile - keep it slightly smaller so it fits the navbar */

.logo img:hover {
    transform: scale(1.1);
}

.logo span {
    font-family: 'Great Vibes', cursive;
    font-size: 1rem;
    color: #fff;
}

/* Navigation */
nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
    opacity: 0;
}

@keyframes roll-in {
    from {
        transform: rotate(-90deg) translateX(-100%);
        opacity: 0;
    }
    to {
        transform: rotate(0) translateX(0);
        opacity: 1;
    }
}

nav ul li.roll-in {
    animation: roll-in 1s forwards;
}

nav a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: gold;
    border-bottom: 1px solid gold;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 120px 0;
    background: url('background.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5));
    z-index: 1;
}



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

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: gold;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f4f4f4;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #6a11cb;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f4f4f4;
    color: #2575fc;
    transform: translateY(-2px);
}

/* General Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    color: gold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.price-container {
    position: relative;
    display: inline-block;
}

.price-button {
    background-color: gold;
    color: #0b0c10;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.active {
    display: block;
}


.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item.stagger-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.service-item h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: gold;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

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

.gallery-item .overlay .text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* About & Contact Page */
.content-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.content-box p {
    font-size: 1.1rem;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: gold;
}
/* Tablet (768px and below) */
@media (max-width: 768px) {
    .content-box {
        padding: 30px;
        max-width: 90%;
        border-radius: 8px;
    }

    .content-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .contact-form label {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .content-box {
        padding: 20px;
        max-width: 95%;
        border-radius: 6px;
    }

    .content-box p {
        font-size: 0.95rem;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 10px;
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
}

/* Testimonials Section */
.testimonials {
    background: rgba(0, 0, 0, 0.2);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    font-weight: bold;
    color: gold;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
.menu-icon {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-icon svg {
    width: 36px;
    height: 36px;
    fill: peach;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .menu-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    header {
        padding: 0.5rem 0;
    }

    .logo img {
        max-height: 35px;
    }

    .logo span {
        font-size: 2rem;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.appear {
    opacity: 1;
}


/* Slide-in animation */
.hidden {
    opacity: 0;
}

.slide-in {
    animation: slideIn 1s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.welcome-section {
    position: relative;
    background: url('Images/Hairstyling.jpg') no-repeat center center/cover;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5));
    z-index: 1;
}

.welcome-section .content-box {
    position: relative;
    z-index: 2;
}

.explore-salon-section {
    position: relative;
    background: url('Images/Mordern2.jpg') no-repeat center center/cover;
}

.explore-salon-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5));
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #f4f4f4;
}

.explore-salon-section .container {
    position: relative;
    z-index: 2;
}

/* Services Page Background */
.services-background {
    position: relative;
    background: url('Images/hairdress tool.jpg') no-repeat center center/cover;
}

.services-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5));
    z-index: 1;
}

.gallery-background .container {
    position: relative;
    z-index: 2;
}

/* Gallery Page Background */
.gallery-background {
    position: relative;
    background: url('Images/Modern shop.jpg') no-repeat center center/cover;
    min-height: 100vh;
}

.gallery-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5));
    z-index: 1;
}

.services-background .container {
    position: relative;
    z-index: 2;
}


/* Mobile devices (phones, 480px and below) */
@media (max-width: 480px) {
    .preloader-button {
        font-size: 2.5rem;
        padding: 10px 25px;
        border-radius: 8px;
        max-width: 90%;
        text-align: center;
        white-space: nowrap;
    }
}

/* Small mobile devices (very narrow phones, 360px and below) */
@media (max-width: 360px) {
    .preloader-button {
        font-size: 2rem;
        padding: 8px 20px;
    }
}

/* Tablets (between 481px and 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .preloader-button {
        font-size: 3rem;
        padding: 12px 30px;
    }
}