* {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  color: #fff;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0px;
  overflow-x: hidden;

  background: no-repeat linear-gradient(to bottom, #000000, #280303);
  background-color: #000;
  overscroll-behavior: none; /* Prevents pull-to-refresh */
  touch-action: pan-y pinch-zoom; /* Allows vertical scrolling and pinch zoom */
}

.spacer {
  height: 300px;
}

.homeContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: static;
  gap: 10px;
  width: 90%;
  z-index: 4;
  pointer-events: auto;
}

.salutations {
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
}

.home-text-block {
  background-color: #080808;
  padding: 20px;
}

h1.salutations {
  font-size: 2.5rem;
  color: #fff;
}

.destructible {
  pointer-events: none;
}

.intro {
  font-size: 1rem;
  text-align: left;
}

p a {
  color: #ff2c3c;
}

.flip-container {
  perspective: 1000px;
  width: 600px;
  height: 400px;
  margin: 20px auto;
  cursor: grab;
  touch-action: none; /* Prevents scrolling on flip containers */
  user-select: none;
  pointer-events: auto;
  -webkit-user-select: none;
}

.flip-container:active {
  cursor: grabbing;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.back {
  transform: rotateY(180deg);
}

.front img,
.back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.homeProductCont {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  column-gap: 10px;
  row-gap: 10px;
  height: auto;
  min-height: 500px;
  padding: 20px;
  background-color: #080808;
  pointer-events: auto;
}

.homeProduct {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  background-color: #030303;
  padding: 0 20px 20px 20px;
  margin: 10px;
}

.homeProduct img {
  transition: all 0.3s cubic-bezier(0.34, 4, 0.69, 0.13);
}

.homeProduct img:hover {
  transform: translateY(-5px);
}

.utilities {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 98%;
}

.utility {
  display: flex;
  flex-direction: column;

  width: 100%;
  background-color: #1a1a1a;
  margin: 20px;
  padding: 20px;
}

.utility a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.utility div {
  padding: 10px;
  margin: 5px;
}

#logo {
  width: 150px;
  height: auto;
}

#rbs-sign-logo {
  background: linear-gradient(to right, #c3000a, #e52e00);
  border-radius: 10px;
  width: 190px;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#rbs-sign-logo img {
  width: 95%;
  height: 95%;

  object-fit: contain;
}

#redBoxSupport {
  width: 200px;
}

.app_icon {
  width: 70px;
  height: 70px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border: 1px solid #111;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
  width: 100%;
}

.product p {
  width: 90%;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

hr {
  width: 90%;
  color: #ff2c3c;
  background-color: #ff2c3c;
  padding: 0;
  margin: 0;
}

.appDowload {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(to right, #c3000a, #e52e00);
  padding: 10px;
  margin: 10px;
}

details {
  width: 100vw;
}

summary {
  margin-left: 10px;
  cursor: pointer;
}

.detailsImg {
  width: 25px;
}

ul {
  padding: 0;
  margin: 0;
  height: auto;
  width: auto;
}

@media (max-width: 800px) {
  body {
    width: 100vw;
    height: 100%;

    background: no-repeat linear-gradient(to bottom, #000000, #280303);
  }
}

#burger {
  display: none;
}

.dropdown-content {
  position: fixed;
  background-color: #ff2c3c;

  display: none;
  z-index: 999;
}

#articles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 20px;
}

.nav-links {
  display: flex;

  justify-content: space-around;
  align-items: center;
  width: 50%;
  list-style: none;
  column-gap: 20px;
  padding: 10px;
  margin: 0;
  margin-right: 30px;
  gap: 10px;
}

#webNav {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 970px) {
  #burger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    position: absolute;
    right: 20px;
    row-gap: 5px;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 20px;
    margin: 0;
    transition: background-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
  }

  #burger:hover,
  #burger:active {
    background-color: #000;
  }

  .shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 996;
    will-change: opacity;
    backface-visibility: hidden;
  }

  .shadow.show {
    pointer-events: auto !important;
    z-index: 996;
    display: block !important;
  }

  .dropdown-content {
    display: none;
    position: fixed;
    background-color: #ff2c3c;
    top: 80px;
    right: 20%;
    left: 20%;
    width: 58%;
    padding: 2%;
    height: auto;
    max-height: 70vh;
    transform: translateY(-20px);

    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
    will-change: transform, opacity;

    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: 20px;
    scrollbar-color: #ff2c3c #1a1a1a;
  }

  .dropdown-content.show {
    display: block !important;
    transform: translateY(0);

    z-index: 999;
    overflow-y: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ff2c3c;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  #webNav {
    display: none;
  }
}

.line {
  width: 30px;
  height: 10px;
  background-color: #ff2c3c;
  transition: background-color 0.2s ease;
  will-change: background-color;
}

nav {
  background-color: #0f0f0f;
  color: #fff;
  display: flex;
  padding: 0;
  justify-content: space-between;
  align-self: center;
  align-items: center;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  z-index: 995;
}

nav .navBtnsCont {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  overflow-y: scroll;
}

.backup-site-notice p {
  color: #555 !important;
  font-weight: bold;
  margin: 0;
}

.sign-out-btn {
  display: none;
  background-color: #ff2c3c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

a {
  color: #fff;
  text-decoration: none;
}

nav a {
  color: #fff;
  text-decoration: none;
  width: auto;
  height: auto;
}
nav li {
  display: inline-block;
  border: 1px solid #1f1f1f;
  column-gap: 20px;
  padding: 10px;
  width: auto;
  height: auto;
  transition: all 0.3s ease;
}

nav li:hover:not(.active) {
  border: 1px solid #ff2c3c;
  width: auto;
  height: auto;
}

nav a.active {
  width: auto;
  height: auto;
  background-color: #ff2c3c;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: auto;
  padding-bottom: 150px;
  min-height: 100vh;
  overflow: hidden;
  z-index: 2;
}

#projectsMain {
  gap: 20px;
  width: 100vw;
  height: auto;
  overflow: hidden;
}

#familyPhoto {
  width: 250px;
  height: 250px;
  padding-top: 20px;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

#familyPhotoContainer {
  --size: 16rem;

  width: var(--size);
  height: var(--size);

  background-color: #86848a;

  clip-path: polygon(7% 25%, 50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%);
}

.horizontalSpacer {
  height: 300px;
}

@keyframes highlight {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}

/* footer */

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.footer-section {
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
}

.quick-links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.social-links a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  color: rgb(80, 12, 18);
}

.social-links a:hover {
  color: rgb(80, 12, 18);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 44, 62, 0);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 50px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;

  transition: all 0.3s;
}

#back-to-top:hover {
  transform: translateY(-5px);
}

footer {
  background: linear-gradient(to right, #c3000a, #e52e00);
  color: #ffffff;
  width: 100%;
  text-align: center;

  bottom: 0;
  left: 0;
  animation: highlight 2s linear infinite;
  z-index: 10;
}

/* Gallery Page */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  width: 200px;
  height: 300px;
  object-fit: cover;
}

.gallery-item h2 {
  margin-top: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

h1 {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ff2c3c;
  padding: 10px;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;

  padding: 30px;
}

label {
  font-weight: bold;
  margin: 10px 0;
}

input,
textarea {
  border: 1px solid #ccc;

  padding: 10px;
  margin-bottom: 20px;
}

form button[type="submit"] {
  background-color: #ff2c3c;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

form button[type="submit"]:hover {
  background-color: #ff6f2c;
}

button {
  background-color: #ff2c3c;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

button[type="submit"] {
  background-color: #222;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 20px;
}

button[type="submit"]:hover {
  background-color: #444;
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 20px;
  row-gap: 10px;
  color: #ff2c3c;
  gap: 20px;
}

@keyframes cloudAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.description {
  width: 60vw;

  background: linear-gradient(
    to right,
    #000000 0%,
    #150303 10%,
    #1c0303 20%,
    #150303 30%,
    #000000 40%,
    #000000 60%,
    #150303 70%,
    #1c0303 80%,
    #150303 90%,
    #000000 100%
  );

  background-size: 200% 100%;

  animation: cloudAnimation 10s linear infinite;
}

#spaceship {
  width: 100px;
  height: 100px;
  padding-top: 20px;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 13;
  position: fixed;
}

#landingArea {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 200px;
  left: 0px;
  width: 40px;
  height: auto;
  padding: 5px;
  background-color: #ff2c3c;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  z-index: 9;
  cursor: pointer;
}

#rocketShadow {
  position: fixed;
  width: 100px;
  height: 100px;
  opacity: 0 !important;
  z-index: 8;
  pointer-events: none;
}

#dpadImage {
  width: 150px;
  height: auto;
  padding-top: 20px;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
}

#spaceBarImage {
  width: 155px;
  height: auto;
  padding-top: 20px;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
}

#shipControls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 150px;
  right: 10px;
  width: 180px;
  height: 80px;
  z-index: 9;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hideThings {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#shipControls img {
  animation: bounceIn 1s ease-out;
}

@media (max-width: 1000px) {
  #landingArea {
    display: none;
  }

  #shipControls {
    display: none;
  }

  #spaceship {
    display: none;
  }
}

.hidden {
  animation: hideThings 2s ease-out;
}

.thing {
  color: #87000b;
}

/* background */
.item {
  width: 40px;
  height: 40px;
  transition: transform 0.9s ease-in-out, filter 0.9s ease-in-out;
}

.list {
  transform-style: preserve-3d;
  transform: perspective(2000px) rotate(45deg) skew(15deg, 15deg) scale(300%);
}

.list .item {
  background-color: #f00;
  transition: 1.9s;
  filter: brightness(0);
}

/* .list .item:hover {
  filter: brightness(1);
  transform: translateZ(100px);
} */

.grid {
  position: fixed;

  width: 100vw;
  height: 100vh;
  display: grid;
  gap: 1px;
  z-index: 1;
}

.grid-controls {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  color: #fff;
  z-index: 9;
}

#textContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-element {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

  cursor: default;
  z-index: 4;
  white-space: pre;
}

a.text-element:hover {
  color: #ff4444;
}

a.text-element {
  text-decoration: none;
  cursor: pointer;
}

.tools-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tools-dropdown li {
  text-wrap: nowrap;
}

.tools-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;

  background-color: #0f0f0f;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 11;
}

.tools-dropdown:hover .tools-dropdown-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tools-dropdown-content a {
  display: flex;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tools-dropdown-content a:hover {
  background-color: #ff2c3c;
}

@media (max-width: 800px) {
  .tools-dropdown-content {
    position: relative;
    box-shadow: 11;
    width: 100%;
  }
}

/* Projects Page Specific Styles */
* {
  user-select: none;
  -webkit-user-drag: none;
}

#AHKdescription {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  width: 500px;
  height: auto;
  min-height: 300px;
  z-index: 10;
  cursor: pointer;
  transition: all 1.3s ease;
  backdrop-filter: blur(5px);
}

#AHKdescription.closed {
  display: none;
}

#AHKdescription.open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000000b3;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  z-index: 10;
  max-width: 90%;
}

#closeDescription {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  text-align: center;
  background-color: #ff2c3edd;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}

#escapeNote {
  position: absolute;
  top: 3px;
  right: 50px;
  color: #ff2c3edd;
}

.ring {
  position: fixed;
  top: 40%;
  left: 40%;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  cursor: grab;
  transform: rotateX(0deg) rotateY(0deg);
  scale: 0.15;
  pointer-events: none;
}

.rotateText {
  font-size: 8px;
}

.textBlock {
  background-color: #000;
  width: 104%;
  height: 1050px;
}

iframe {
  width: 1000px;
  height: 1000px;
  min-height: 1000px;
  overflow: hidden;
  border: 0;
  zoom: 0.1;
  scrollbar-width: none;
}

iframe::-webkit-scrollbar {
  display: none;
}

/* 3D Ring Formation */
.ring .item:nth-child(1) {
  transform: rotateY(0deg) translateZ(300px);
}
.ring .item:nth-child(2) {
  transform: rotateY(36deg) translateZ(300px);
}
.ring .item:nth-child(3) {
  transform: rotateY(72deg) translateZ(300px);
}
.ring .item:nth-child(4) {
  transform: rotateY(108deg) translateZ(300px);
}
.ring .item:nth-child(5) {
  transform: rotateY(144deg) translateZ(300px);
}
.ring .item:nth-child(6) {
  transform: rotateY(180deg) translateZ(300px);
}
.ring .item:nth-child(7) {
  transform: rotateY(216deg) translateZ(300px);
}
.ring .item:nth-child(8) {
  transform: rotateY(252deg) translateZ(300px);
}
.ring .item:nth-child(9) {
  transform: rotateY(288deg) translateZ(300px);
}
.ring .item:nth-child(10) {
  transform: rotateY(324deg) translateZ(300px);
}

@media screen and (max-width: 600px) {
  .ring {
    scale: 0.19;
    left: 25%;
    top: 25%;
  }

  .hide-on-small-screen {
    display: none;
  }
}

/* Mobile responsiveness improvements */
@media (max-width: 800px) {
  body {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Improve smooth scrolling on iOS */
  }

  .homeProductCont {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 10px;
    width: 90%;
  }

  .homeProduct {
    margin: 5px;
    padding: 10px;
  }

  /* .flip-container {
    width: 90%;
    height: auto;
    max-width: 400px;
  }

  .front img,
  .back img {
    width: 100%;
    height: auto;
  } */

  /* .grid {
    display: none; 
  } */

  main {
    width: 100%;
    padding: 10px;
  }

  .description {
    width: 90%;
  }
}

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .homeProductCont {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* .flip-container {
    width: 90%;
    max-width: 600px;
  } */
}

/* cubic bezier */

.CB_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  max-width: 100vw;
  height: 100%;
  min-height: 100vh;

  color: white;
}

.editorContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 40vw;
  height: 100%;
}

.editor-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 600px;
  height: 600px;
  transform: scale(0.5);
}

.editor {
  display: flex;
  flex-direction: column;

  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: #1a1a1a;
  border: 1px solid #333;
}

.editor svg {
  width: 600px;
  height: 600px;
}

#zoomTip {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  text-align: center;
  width: 100vw;
  scale: 0.9;
  transition: all 0.3s cubic-bezier(0.88, -0.37, 0.35, 1.25);
}

.controlsCont {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 50vw;
}

#animateBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff2c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s cubic-bezier(0.51, -1.06, 0.67, 2.11);
}

#animateBtn:hover {
  transform: scale(1.1) translateX(10px) skew(10deg, 10deg);
  background-color: rgb(44, 143, 255);
}

.egrid-line {
  stroke: #333;
  stroke-width: 1;
}

.axis-line {
  stroke: #555;
  stroke-width: 2;
}

.main-curve {
  stroke: #ff2c3c;
  stroke-width: 6;
  fill: none;
}

.control-line {
  stroke: #444;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.control-point {
  width: 30px;
  height: 30px;
  position: absolute;
  background: #ff2c3c;
  border-radius: 50%;
  margin: -6px 0 0 -6px;
  cursor: move;
  box-shadow: 0 0 0 2px white;
}

.comparison-curve,
.comparison-dot {
  display: none;
}

.cubic-bezier {
  font-family: monospace;
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: white;
}

.animation-area {
  width: 400px;
  height: 80px;

  position: relative;
  border: 1px solid #333;

  background-color: #1a1a1a;
}

.dot {
  width: 20px;
  height: 20px;
  background: #ff2c3c;
  border-radius: 50%;
  position: absolute;
  top: 30px;
  left: 0;
}

.CB_controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: 20px 0;
}

button:hover {
  background-color: #ff6f2c;
}

.duration-control {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.duration-control input {
  width: 200px;
  margin: 0 10px;
}

.library {
  margin-top: 40px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.preset {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  background-color: #1a1a1a;
}

.preset:hover {
  border-color: #ff2c3c;
}

.preset svg {
  width: 100%;
  height: auto;
}

.preset-curve {
  stroke: #555;
  stroke-width: 2;
  fill: none;
}

.preset-label {
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
  color: #888;
}

.dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #333;
}

.dialog.active {
  display: block;
}

.dialog textarea {
  width: 100%;
  height: 100px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: monospace;
  resize: vertical;
  background-color: #2a2a2a;
  color: white;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

.preset .delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #ff2c3c;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.preset:hover .delete-btn {
  display: block;
}

.preset .delete-btn:hover {
  background: #ff6f2c;
}

.input {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px;
}

.input:focus {
  outline: none;
  border-color: #ff2c3c;
}

@media (max-width: 1000px) {
  .CB_container {
    flex-direction: column;
  }
}

/* admin page */

.admin-container {
  max-width: 800px;
  margin: 20px auto;
  background-color: #0f0f0f;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.login-container {
  text-align: center;
  padding: 20px;
  background-color: #080808;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #ff2c3c;
}

.admin-container input[type="text"],
.admin-container input[type="email"],
.admin-container input[type="password"],
.admin-container textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  background-color: #000;
  color: #fff;
}

.admin-container button {
  background: linear-gradient(to right, #c3000a, #e52e00);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

.version-container {
  border: 1px solid #1f1f1f;
  background-color: #080808;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.error,
.success {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-out;
}

.error {
  background-color: rgba(255, 44, 60, 0.1);
  color: #ff2c3c;
}

.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #1f1f1f;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #c3000a, #e52e00);
  transition: width 0.3s ease;
}

.file-input {
  background-color: #080808;
  border: 1px solid #1f1f1f;
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  color: #fff;
  margin-bottom: 5px;
}

.preview-image {
  max-width: 200px;
  margin: 10px 0;
  border: 2px solid #1f1f1f;
  border-radius: 4px;
}

.products-list {
  margin-top: 20px;
  border-top: 1px solid #1f1f1f;
  padding-top: 20px;
}

.product-item {
  background-color: #080808;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.product-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.edit-form {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #1f1f1f;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background: #1f1f1f;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(to right, #c3000a, #e52e00);
}

.file-info {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.delete-button {
  background: linear-gradient(to right, #800000, #b30000);
}

/* Kanban Board Specific Styles - Add at the end of the file */
.kanban-board * {
  user-select: auto !important;
  -webkit-user-drag: auto !important;
  pointer-events: auto !important;
}

.task {
  user-select: auto !important;
  -webkit-user-drag: element !important;
  pointer-events: auto !important;
}

.task-list {
  user-select: auto !important;
  pointer-events: auto !important;
}

/* QR Code Generator */

.qr-generator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: white;
  padding: 20px;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  background-color: rgba(8, 8, 8, 0);
}

input[type="color"] {
  height: 50px;
  background-color: #ff2c3c;
  border: none;
}

/* Services Page Specific Styles */
.service-grid {
  display: flex;

  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    margin: 1rem;
  }
  .animation-area {
    scale: 0.6;
  }
}

.vr {
  background-color: #222;
  width: 2px;
  height: 15px;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .homeProductCont {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .flip-container {
    scale: 0.65;
  }

  .front img,
  .back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .utility {
    margin-left: 0;
    padding: 0;
  }

  main {
    padding: 0;
  }

  .description {
    width: 95%;
  }

  /* Hide desktop-only elements */
  .grid,
  #spaceship,
  #shipControls,
  #landingArea {
    display: none;
  }
}

.article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(3, 3, 3, 0.86);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Articles Controls Styling */
.articles-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(8, 8, 8, 0.8);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
}

.search-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 6px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff4444;
}

.search-input::placeholder {
  color: #888;
}

.clear-btn {
  padding: 12px 20px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.clear-btn:hover {
  background-color: #ff6666;
}

.clear-btn:active {
  background-color: #cc3333;
}

.articles-info {
  text-align: center;
  color: #ccc;
  font-size: 14px;
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  padding: 20px;
}

.pagination-btn {
  padding: 12px 24px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #ff4444;
  transform: translateY(-2px);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-btn:disabled {
  background-color: #222;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  padding: 12px 20px;
  background-color: rgba(8, 8, 8, 0.8);
  border-radius: 6px;
  color: #ccc;
  font-size: 16px;
  min-width: 120px;
  text-align: center;
}

/* No Articles Message */
.no-articles {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 18px;
  background-color: rgba(8, 8, 8, 0.6);
  border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .articles-controls {
    width: 95%;
    padding: 15px;
  }

  .search-container {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
    box-sizing: border-box;
  }

  .pagination-container {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-btn {
    width: 100%;
    max-width: 200px;
  }

  .article {
    width: 95%;
    padding: 15px;
  }
}
