/* ===================== DARK MODE SUPPORT ===================== */
html.dark-mode {
  --bg-main: #181a1b;
  --bg-secondary: #23272b;
  --bg-glass: rgba(36, 39, 46, 0.7);
  --bg-glass-strong: rgba(36, 39, 46, 0.92);
  --border-main: #333a40;
  --border-light: #444b52;
  --text-main: #f3f6fa;
  --text-secondary: #bfc9d1;
  --accent: #3399ff;
  --accent-hover: #1976d2;
  --shadow: 0 4px 20px 3px rgba(0,0,0,0.45);
  --shadow-strong: 0 8px 32px rgba(0,0,0,0.7);
}

html.dark-mode body {
  background: var(--bg-main);
  color: var(--text-main);
}

html.dark-mode header,
html.dark-mode #main-menu-container,
html.dark-mode #content-container,
html.dark-mode .main_section_area,
html.dark-mode .right_section,
html.dark-mode #gradien_section,
html.dark-mode #main-gradient-container,
html.dark-mode footer,
html.dark-mode #tagline,
html.dark-mode .menu-item .dropdown-content,
html.dark-mode .menu-list.mobile.open {
  background: var(--bg-secondary) !important;
  color: var(--text-main) !important;
  border-color: var(--border-main) !important;
}

html.dark-mode .main_section_area {
  background: var(--bg-glass) !important;
  box-shadow: var(--shadow);
  border-color: var(--border-light) !important;
}

html.dark-mode #moodDisplay ,
 html.dark-mode #tip , 
 html.dark-mode #score,
 html.dark-mode #container-descriptions h2{
  color: #fff;
}
html.dark-mode .menu-item a:hover {
  color: #fff;
  background-position: left bottom;
  box-shadow: 0 2px 8px rgba(51,153,255,0.25);
}

html.dark-mode #nextBtn,
html.dark-mode #copyGradientBtn {
  background-color: var(--accent);
  color: #fff;
}
/* Dark Mode Styles */
html.dark-mode .cosmic-form-container {
  background: var(--bg-glass);
  border-color: var(--border-light);
}

html.dark-mode .form-header p {
  color: var(--text-secondary);
}

html.dark-mode .nebula-input input,
html.dark-mode .nebula-select select {
  background: rgba(36, 39, 46, 0.8);
  border-color: var(--border-light);
  color: var(--text-main);
}

html.dark-mode .nebula-input label,
html.dark-mode .nebula-select label {
  background: var(--bg-secondary);
  color: var(--accent);
}

html.dark-mode .nebula-input input:focus + label,
html.dark-mode .nebula-input input:valid + label {
  background: var(--bg-secondary);
}

html.dark-mode .select-arrow {
  color: var(--text-secondary);
}

html.dark-mode .cosmic-checkbox label {
  color: var(--text-main);
}

html.dark-mode .checkbox-custom {
  border-color: var(--accent);
}

html.dark-mode .cosmic-checkbox input:checked + label .checkbox-custom {
  background-color: var(--accent);
}

html.dark-mode .cosmic-button {
  box-shadow: var(--shadow);
}

html.dark-mode .cosmic-form-container::before {
  background: radial-gradient(circle, rgba(51, 153, 255, 0.1) 0%, transparent 70%);
}
/* Dark mode textarea styles */
html.dark-mode .nebula-input textarea {
  background: rgba(36, 39, 46, 0.8);
  border-color: var(--border-light);
  color: var(--text-main);
}

html.dark-mode .nebula-input textarea:focus + label,
html.dark-mode .nebula-input textarea:valid + label {
  background: var(--bg-secondary);
}
html.dark-mode #nextBtn:hover,
html.dark-mode #copyGradientBtn:hover {
  background-color: var(--accent-hover);
}

html.dark-mode #copiedTooltip {
  background: rgb(168, 198, 243);
  color: #06f;
}

html.dark-mode .more-menu-item a,
html.dark-mode .Policy-menu-item a {
  color: var(--text-secondary);
}
html.dark-mode .more-menu-item a:hover,
html.dark-mode .Policy-menu-item a:hover {
  color: var(--accent);
}

html.dark-mode #tagline {
  color: #888;
}
/* ===================== END DARK MODE SUPPORT ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: white;
  color: #333;
  line-height: 1.6;
}

header {
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#main-menu-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 15px 10px;
  border-bottom: 1px solid #e3e3e3;
  background-color: #fff;
}

.logo-container {
  width: 20%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-container img {
  width: 70px;
  height: 70px;
  margin-right: 10px;
}

.menu-container {
  width: 70%;
  height: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}
.menu-item a {
  text-decoration: none;
  color: #06f;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 15px;
  background: linear-gradient(to right, #06f 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: background-position 0.5s ease, color 0.5s ease;
}
.menu-item a.active,
.menu-item a.active:visited {
  color: #fff !important;
  background-position: left bottom !important;
  background: #06f !important;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}
.menu-item a:hover {
  background-position: left bottom;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}
/* Make dropdown behave like a menu item */
.menu-item.dropdown {
  position: relative;
  bottom: 5px;
}

.menu-item.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Dropdown content hidden by default */
.menu-item .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 20px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #fff;
  border-radius: 6px;
  z-index: 999;
  padding: 10px 0;
  list-style: none;
}

/* Each dropdown item */
.menu-item .dropdown-content li a {
  display: block;
  padding: 10px 20px;
  color: #06f;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.menu-item .dropdown-content li a:hover {
  color: #fff;
}

/* Show dropdown on hover */
.menu-item.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: arrow icon rotation on hover (if using Font Awesome or custom) */
.menu-item.dropdown:hover i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

#content-container {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  background: #fff;
}

#hiding-container {
  margin-top: 40px;
  padding: 20px;
}

#hiding-container h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
  background: linear-gradient(90deg, #06f 30%, #a0e9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color: transparent; */
}

#container-descriptions {
  width: 100%;
  height: auto;
  padding: 0 20px 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#container-descriptions h2 {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
}

#functionality-section {
  width: 100%;
  height: auto;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_section_area {
  width: 70%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.right_section {
  width: 60%;
  height: 100%;
  padding: 30px;
  background-color: #fafafa;
  border-radius: 0 12px 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Cosmic Form Styles */
.cosmic-form-container {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cosmic-form-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: -1;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #06f, #a0e9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.form-header p {
  color: #666;
  font-size: 16px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.nebula-input {
  position: relative;
}

.nebula-input input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nebula-input label {
  position: absolute;
  top: 15px;
  left: 20px;
  color: #666;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 5px;
}

.nebula-input input:focus + label,
.nebula-input input:valid + label {
  top: -10px;
  left: 15px;
  font-size: 12px;
  background: white;
  color: #06f;
}

.input-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 15px 5px rgba(0, 102, 255, 0.3);
  transition: opacity 0.3s ease;
}

.nebula-input input:focus ~ .input-aura {
  opacity: 1;
}

.nebula-select {
  position: relative;
}

.nebula-select select {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  appearance: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nebula-select label {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 12px;
  background: white;
  color: #06f;
  padding: 0 5px;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.cosmic-checkbox {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.cosmic-checkbox input {
  display: none;
}

.checkbox-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #06f;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.cosmic-checkbox input:checked + label .checkbox-custom {
  background-color: #06f;
}

.cosmic-checkbox input:checked + label .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.cosmic-checkbox label {
  display: flex;
  align-items: center;
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

.cosmic-button {
  position: relative;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #06f, #a0e9ff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cosmic-button span {
  position: relative;
  z-index: 2;
}

.button-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cosmic-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.cosmic-button:hover .button-aura {
  opacity: 1;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.nebula-input textarea {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  resize: vertical;
  min-height: 120px;
  overflow: hidden;
}

.nebula-input textarea:focus + label,
.nebula-input textarea:valid + label {
  top: -10px;
  left: 15px;
  font-size: 12px;
  background: white;
  color: #06f;
}
footer {
  width: 100%;
  height: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  border-top: 1px solid #c3c2c2;
  background-color: #fff;
  box-shadow: 2px 2px 10px 10px rgba(0, 0, 0, 0.05);
}

#footer-logo {
  width: 25%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: yellow; */
}

#footer-logo img {
  width: 120px;
  height: 120px;
  margin-right: 10px;
}

#footer-content {
  width: 75%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items:center;
  align-items: center;
}

#more-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
}

.more-menu-list {
  list-style: none;
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.more-menu-list p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #06f;
  margin-bottom: 10px;
}

.more-menu-item a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  padding: 6px 0;
  border-radius: 0;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 14px;
}

.more-menu-item a:hover {
  color: #06f;
  transform: translateX(3px);
}

#policy-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 100px;
}

.Policy-menu-list {
  list-style: none;
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.Policy-menu-list p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #06f;
  margin-bottom: 10px;
}

.Policy-menu-item a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  padding: 6px 0;
  border-radius: 0;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 14px;
}

.Policy-menu-item a:hover {
  color: #06f;
  transform: translateX(3px);
}

#tagline {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #e3e3e3;
  font-size: 12px;
  font-weight: 300;
  background-color: #fff;
  color: #888;
}

#tagline h3 {
  font-weight: 300;
}


/* ===== Decorative Circles for UI Enhancement ===== */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  filter: blur(0.5px) saturate(1.2);
  transition: opacity 0.5s;
}

.circle-top-left {
  top: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 60% 40%, rgb(0, 102, 255) 60%, #fff0 100%);
  box-shadow: 0 0 80px 20px #06f3, 0 0 0 0 #fff0;
}

.circle-bottom-right {
  top: 170px;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 60%, #de0990 60%, #fff0 100%);
  box-shadow: 0 0 60px 10px #ff6fcb55, 0 0 0 0 #fff0;
  overflow: visible;
  transform: translate(50%, 50%);
  pointer-events: none;
  opacity: 0.15;
}
.circle-bottom-right2 {
  top: 320px;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 40% 60%, #f551b9 60%, #fff0 100%);
  box-shadow: 0 0 60px 10px #ff6fcb55, 0 0 0 0 #fff0;
  overflow: visible;
  transform: translate(50%, 50%);
  pointer-events: none;
  opacity: 0.15;
}
html, body {
  overflow-x: clip;
}

.circle-center-fade {
  bottom: 250px;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 50% 50%, #fcd309 60%, #fff0 100%);
  opacity: 0.22;
  box-shadow: 0 0 40px 10px #ffd60055, 0 0 0 0 #fff0;
}
body {
  position: relative;
  /* Ensure decorative circles are positioned absolutely relative to body */
}


/* 1440px and below */
@media (max-width: 1440px) {
  .main_section_area { width: 90%; }
  #main-gradient-container { width: 90%; }
}

/* 1024px and below */
@media (max-width: 1024px) {
  .main_section_area, #main-gradient-container { width: 98%; flex-direction: column; }
  .left_section, .right_section { width: 100%; padding: 10px; }
  .menu-list { gap: 2px; font-size: 13px; }
}
/* Responsive menu for <= 900px */
@media (max-width: 900px) {
  .menu-container {
    position: relative;
  }
  #menuToggle {
    display: flex !important;
    z-index: 1201;
  }
  .menu-list {
    display: none;
  }
  .menu-list.mobile.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    z-index: 1200;
    padding: 48px 28px 24px 28px;
    gap: 18px;
    border-radius: 16px 0 0 16px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    opacity: 1;
    transform: translateX(0);
  }
  .menu-list.mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    z-index: 1200;
    padding: 48px 28px 24px 28px;
    gap: 18px;
    border-radius: 16px 0 0 16px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    opacity: 0;
    transform: translateX(100%);
  }
  body.menu-open {
    overflow: hidden;
  }
  .menu-list.mobile.open .menu-list {
    position: relative;
    right: 200px;
  }
  .menu-list.mobile.open .menu-item{
    position: relative;
    top: 100px;
    left: 10px;
    margin-bottom: 10px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: 1.2rem;
    padding: 14px 10px;
    width: 100%;
    border-radius: 8px;
    background: none;
    color: #06f;
    text-align: left;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
  }
  .menu-list.mobile.open .menu-item a.active {
    background: #06f !important;
    color: #fff !important;
  }
  .menu-list.mobile.open .menu-item a:hover {
    background: #0055cc !important;
    color: #fff !important;
  }
}

/* 768px and below */
@media (max-width: 875px) {
  #policy-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 0px;
}
}
/* 768px and below */
@media (max-width: 768px) {
  .main_section_area { flex-direction: column; }
  .left_section, .right_section { width: 100%; padding: 5px; }
  #palette-section, #export-controls { flex-direction: column; align-items: flex-start; }
  #main-gradient-container { width: 100%; }
  #color-code-details, #color-variations { width: 100% !important; }
}

@media (max-width: 675px){

  footer {
  flex-direction: column;
}
#footer-logo {
  margin-bottom: 50px;
}
#footer-content{
  width: 100%;
}
#policy-section {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 0px;
}
#more-section {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
}
}
@media(max-width: 475px){
  .menu-list.mobile.open .menu-item a {
    font-size: 1rem;
  }
}
/* 425px and below */
@media (max-width: 425px) {
  #hiding-container h1 { font-size: 28px; }
  .main_section_area, #main-gradient-container { width: 100%; }
  .logo-container img { width: 60px; height: 60px; }
  .menu-list { flex-direction: column; gap: 0; }
  .menu-item a { font-size: 13px; padding: 6px 8px; }
  .left_section, .right_section { padding: 2px; }
  #spectrumBox {
  width: 320px;
  height: 320px;
}
  #footer-logo img { width: 105px; height: 105px; }
}

/* 375px and below */
@media (max-width: 375px) {
  .menu-list.mobile.open .menu-item{
    left: -20px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: .8rem;
  }
  #hiding-container h1 { font-size: 22px; }
  .menu-item a { font-size: 12px; padding: 4px 6px; }
  #spectrumBox {
  width: 290px;
  height: 290px;
}
  #footer-logo img { width: 80px; height: 80px; }
}

/* 325px and below */
@media (max-width: 325px) {
  .menu-list.mobile.open .menu-item{
    left: -10px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: .7rem;
  }
  #hiding-container h1 { font-size: 16px; }
  .menu-item a { font-size: 10px; padding: 2px 4px; }
  #spectrumBox {
  width: 260px;
  height: 260px;
}
}