/* ================= General Reset ================= */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= Header / Navigation ================= */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

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

header h1 {
    font-size: 2rem;
    margin-bottom: 0;
    color: #fff;
}

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

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff6f61;
}

/* Optional: auth buttons / user menu */
.auth-buttons {
    margin-left: auto;
    display: flex;
}

.auth-buttons a {
    margin-left: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.auth-buttons a:hover {
    background: #0056b3;
}

/* ================= Hero Section ================= */
.hero {
    background: url('images/hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: black;
    text-shadow: 0 0 5px white, 0 0 10px white;
}

.hero .cta {
    display: inline-block;
    background: #ff6f61;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.hero .cta:hover {
    background: #ff4c3b;
}

/* ================= Section Headings ================= */
section h2 {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: #333;
}

/* ================= Features ================= */
.features {
    background: #fff;
    padding: 2rem 0;
    text-align: center;
}

.features-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1 1 30%;
    margin: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ================= Portfolio ================= */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.portfolio-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* ================= Contact Form ================= */
.contact .container h2,
.contact .container p {
    text-align: center;
}

form {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button[type="submit"] {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #555;
}

/* ================= Color Picker ================= */
.color-picker {
    display: flex;           /* row layout */
    justify-content: center; /* center the row */
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;         /* allow wrapping on small screens */
}

.color-option {
    width: 70px;
    height: 70px;
    flex: 0 1 70px;          /* shrink if needed on narrow screens */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    filter: brightness(0.7);
    transition: filter 0.2s, transform 0.2s, outline 0.2s;
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-option:hover {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.color-option.selected {
    filter: brightness(1.2);
    outline: 3px solid currentColor; /* JS sets currentColor to swatch */
}

#selected-color-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #333;
}

/* ================= Footer ================= */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* --- Base Navigation --- */
nav {
  background: #fff;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px;
  transition: all 0.3s ease;
}

nav li {
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

nav a:hover {
  background: #eee;
}

/* --- Hamburger Button --- */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  user-select: none;
}

/* --- Mobile Styles --- */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0; /* start hidden */
    transition: max-height 0.4s ease-out; /* slide animation */
  }

  nav ul.show {
    max-height: 500px; /* adjust if menu is taller */
    transition: max-height 0.4s ease-in;
  }

  nav li {
    border-top: 1px solid #eee;
  }

  nav a {
    display: block;
    text-align: center;
    padding: 12px;
  }
}
