/* Global */
body {
  color: #222; /* dark text */
  font-family: "Roboto", "Arial", sans-serif;
  line-height: 1.8;
  font-size: 16px;
  background: #f9f9f9; /* light background */
  font-weight: 300;
  position: relative;
}

/* Page Background */
.page-background {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Particles overlay */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Container for content */
.page-wrap {
  position: relative;
  z-index: 2;
  padding: 80px 15px;
}

/* Section */
.section {
  padding: 80px 0;
}

/* Header */
header {
  position: relative;   /* or fixed for sticky */
  z-index: 100;         
  background: transparent;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;      /* allows wrapping on small screens */
}

/* Logo */
header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1.8rem;
  color: #222;
  flex: 1 1 auto;       /* allows shrinking on smaller screens */
}

header .logo span {
  font-weight: 900;
}

/* Paint brush icon */
header .logo i.fa-paint-brush {
  font-size: 1.5rem;
  color: #9800de;
}

/* Default logo size for desktop */
.logo .logo-icon {
    width: 3rem;          /* Desktop size */
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;       /* Prevent shrinking in flex container */
}

/* Smaller screens (mobile) */
@media (max-width: 768px) {
    .logo .logo-icon {
        width: 2.2rem;    /* Reduce size on tablets & mobile */
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .logo .logo-icon {
        width: 1.8rem;    /* Further reduction on small phones */
    }
}

/* Social icons */
.social {
  display: flex;
  gap: 15px;
  flex: 0 1 auto;       /* don't stretch */
  margin-top: 0.5rem;   /* small spacing on wrap */
}

.social a {
  color: #333;
  font-size: 22px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social a:hover {
  color: #9800de;
  transform: scale(1.2);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
    justify-content: center;
  }

  header .logo {
    font-size: 1rem;
    text-align: center;
    gap: 0.3rem;
    flex-basis: 100%;
    justify-content: center;
  }

  .social {
    margin-top: 0.5rem;
    justify-content: center;
    gap: 10px;
    flex-basis: 100%;
  }

  .social a {
    font-size: 1.3rem;
  }
}


/* Form Wrapper */
.form-wrapper {
  width: 90%;
  max-width: clamp(400px, 50%, 900px); /* min 400px, ideal 50%, max 900px */
  margin: 0 auto;
  z-index: 10;
}

/* Heading */
h2 {
  font-size: 2.5rem;
  color: #111;
  text-align: center;
  margin-bottom: 3rem;
}

/* Unified input, textarea styles */
input.form-control,
textarea.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  font-size: 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* Select styling */
select.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  font-size: 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%239800de' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

/* Placeholder color for selects */
select.form-select:invalid {
  color: #888;
}
select.form-select:valid {
  color: #222;
}

/* Hover and focus effects */
input.form-control:hover,
textarea.form-control:hover,
select.form-select:hover,
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
  border-color: #9800de;
  box-shadow: 0 0 5px rgba(152,0,222,0.2);
  outline: none;
}

/* Buttons */
.btn {
  font-weight: 600;
  background-color: #9800de;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover {
  background-color: #7500ab;
  transform: scale(1.02);
}

/* Particles Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

footer {
  background-color: transparent;
  color: #333;
  padding: 20px 15px;
  font-size: 14px;
  position: relative;
  z-index: 100;
  text-align: center;
}

footer a {
  color: #9800de;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
  color: #7500ab;
  text-decoration: underline;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  footer {
    font-size: 13px;
    padding: 15px 10px;
  }
}


