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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Prevent horizontal scroll due to the moving background */
}

/* Dark/Light Mode Styles */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: #f4f4f4;
    --highlight-color: #000000; /* Green for light mode */
    --border-color: #dddddd;
    --background-image: url('https://c8.alamy.com/comp/2X2H1A7/barber-vector-icon-illustration-logo-design-2X2H1A7.jpg'); /* Light mode background */
}

[data-theme="dark"] {
    --bg-color: #121212; /* Dark background */
    --text-color: #f5f5f5;
    --card-bg: #333333;
    --highlight-color: #0051ff; /* Orange for dark mode */
    --border-color: #444444;
    --background-image: url('https://i.postimg.cc/T3DV43MJ/www-shutterstock-com-1-1.jpg'); /* Dark mode background */
}

html {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    animation: move-background 30s linear infinite; /* Animate background */
}

/* Dark/Light Mode Toggle Button */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--highlight-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 1000;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background-color: #4c00ff; /* Slight hover effect */
}

/* Keyframes for background animation */
@keyframes move-background {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Header */
header {
    background: var(--highlight-color);
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 50px;
    height: 50px;
}

header h1 {
    font-size: 2rem;
}

/* Sticky Navigation */
nav.sticky-nav {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 999;
    text-align: center;
}

nav.sticky-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

nav.sticky-nav a:hover {
    color: var(--highlight-color);
}

/* Section Styling */
section {
    padding: 60px 20px;
    text-align: center;
}

/* Section Title */
section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Section Paragraph */
section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* New Text Styling for Welcome Message */
.welcome-text {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: var(--highlight-color);
}

/* About Us Section */
.about-us {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

.about-us h3 {
    font-size: 1.8rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.about-us p {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(255, 0, 0);
    width: 300px;
    transition: transform 0.3s;
}

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

.service-card h3 {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
}

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

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(255, 0, 0);
}

/* Testimonials Section */
.testimonials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(255, 0, 0);
    width: 300px;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

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

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-color);
}

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

.stars {
    color: gold;
    font-size: 1.1rem;
}

.name {
    font-size: 0.9rem;
    color: var(--highlight-color);
}

/* Form Section */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

form button {
    background: var(--highlight-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background: #1f008f;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--highlight-color);
    color: white;
}

footer p {
    font-size: 1rem;
}

/* Appointment Form Section */
.appointment-form {
    max-width: 600px;
    margin: 50px auto;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(216, 8, 8, 0.1);
}

.appointment-form h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.appointment-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

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

.appointment-form button {
    width: 100%;
    padding: 12px;
    background: var(--highlight-color);
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.appointment-form button:hover {
    background: #1f008f;
}

/* Position the language toggle in the left corner */
.language-toggle {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1000;
  }
  
  #language-toggle {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
  }
  
  #language-toggle:hover {
    background-color: #555;
  }
  
  #language-toggle option {
    background-color: #fff;
    color: #333;
  }
  
  /* Add animation */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .language-toggle {
    animation: slideIn 0.5s ease-out;
  }