:root {
  --main-color: #6ebbd8;
  --main-color-light: #a4d0e0;
  --main-color-dark: #004d7a;
  --background-gradient: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);
  --text-color: #222;
  --background-color: rgba(255 255 255 / 0.85);
}

body.dark {
  --main-color: #2c3e50;
  --main-color-light: #34495e;
  --main-color-dark: #ecf0f1;
  --background-gradient: linear-gradient(to right top, #1b2735, #273a4a, #2e4150, #34495e, #3b5168);
  --text-color: #eee;
  --background-color: rgba(30 30 30 / 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  background: var(--background-gradient);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--main-color-light);
  outline: none;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--main-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  padding: 0.5rem 0;
  transition: background-color 0.3s ease;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

nav img.logo {
  height: 60px;
  flex-shrink: 0;
}

ul.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

ul.nav-links li {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.search {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  border: none;
  outline: none;
  background-color: var(--main-color-light);
  color: black;
  width: 180px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.search::placeholder {
  color: #333;
}

.search:focus {
  background-color: #c0def6;
}

main {
  padding-top: 90px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background: var(--background-color);
  border-radius: 0px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

main a {
  color: var(--main-color-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--main-color-dark);
  padding-bottom: 2px;
}

h1 {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.3rem;
  color: var(--main-color-dark);
  text-align: center;
  transition: color 0.3s ease;
}

h2,
h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--main-color-dark);
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

p {
  font-size: 1.1rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

button {
  cursor: pointer;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  border-radius: 25px;
  border: none;
  margin: 0 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.15);
  user-select: none;
  color: white;
}

.btn-startfree {
  background-color: var(--main-color);
}

.btn-startfree:hover {
  background-color: var(--main-color-dark);
}

.btn-startfree:active {
  background-color: #3d8db8;
}

.btn-createproject {
  background-color: #6ed86e;
}

.btn-createproject:hover {
  background-color: #5cc65c;
}

.btn-createproject:active {
  background-color: #3da53d;
}

details.btn-trynosignup > summary {
  background-color: #9e9e9e;
}

details.btn-trynosignup > summary:hover {
  background-color: #6e6e6e;
}

details.btn-trynosignup > summary:active {
  background-color: #424242;
}

.fullwidthhome1 {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  display: block;
  clip-path: polygon(0 78%, 22% 79%, 28% 89%, 41% 89%, 47% 79%, 96% 80%, 100% 75%, 100% 27%, 95% 21%, 53% 21%, 48% 18%, 44% 6%, 39% 1%, 16% 0%, 10% 5%, 1% 22%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: filter 0.3s ease;
}

body.dark .fullwidthhome1 {
  filter: brightness(0.85);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-color);
  transition: color 0.3s ease;
}

th,
td {
  border: none;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--main-color);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

tr:nth-child(even) th,
tr:nth-child(even) td {
  background: var(--main-color-light);
  color: var(--main-color-dark);
}

tr:last-child td {
  font-size: 1.3rem;
  font-weight: 700;
}

mark.wct {
  background-color: #ffffff80;
  padding: 0 4px;
  border-radius: 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background: var(--main-color-light);
  border-radius: 15px;
  padding: 1.2rem 1rem;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  color: var(--main-color-dark);
  font-family: 'Outfit', sans-serif;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.feature:hover {
  background: var(--main-color);
  color: white;
}

.feature h3 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.feature p {
  font-size: 1rem;
  margin: 0;
}

section {
  margin-bottom: 3rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: var(--background-color);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  transition: background-color 0.3s ease;
}

footer {
  background: var(--main-color);
  color: white;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

footer a {
  font-weight: 700;
  color: white;
  text-decoration: underline;
}

.settings {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.settings button,
.settings label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: var(--main-color);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  user-select: none;
}

.settings button:hover {
  background-color: var(--main-color-dark);
}

.settings input[type="color"] {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border-radius: 50%;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  ul.nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search {
    width: 100%;
    max-width: 280px;
  }

  main {
    margin: 0 auto 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 90px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
    margin: 0.5rem 0;
  }

  .fullwidthhome1 {
    clip-path: none;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #3e8e41;}

/* ===== DROPDOWN BASE ===== */
details.dropdown {
  position: relative;
  display: inline-block;
}

/* Remove default triangle */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* ===== SUMMARY AS BUTTON ===== */
details.dropdown > summary {
 cursor: pointer;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  border-radius: 25px;
  border: none;
  margin: 0 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.15);
  user-select: none;
  color: white;
}

/* Hover / focus */
details.dropdown > summary:hover,
details.dropdown > summary:focus {
  background-color: var(--main-color);
  outline: none;
}

/* Open state */
details.dropdown[open] > summary {
  background-color: var(--main-color);
}

/* ===== DROPDOWN PANEL ===== */
.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
  padding: 0.4rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

/* Smooth open */
details[open] .dropdown-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ===== DROPDOWN LINKS ===== */
.dropdown-content a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #222;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: #f0f0f0;
  outline: none;
}

/* Make summary behave like a button */
details.dropdown > summary {
  cursor: pointer;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  border-radius: 25px;
  border: none;
  margin: 0 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.15);
  user-select: none;
  color: white;
  display: inline-block;
}

/* Remove default marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Dropdown container with sliding motion */
details .dropdown-content {
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px); /* start slightly above */
  transition: max-height 0.4s ease, transform 0.4s ease;
}

/* Open state: slide down */
details[open] .dropdown-content {
  max-height: 500px; /* big enough to show all links */
  transform: translateY(0); /* slide into place */
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;

  transform: translateY(-12px);
  transition: transform 0.25s ease;

  /* keep it hidden without display:none */
  pointer-events: none;
}

/* OPEN STATE */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  transform: translateY(0);
  pointer-events: auto;
}











