/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  color: #2c3e50;
  font-size: 1.5rem;
}

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

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #3498db;
}

/* Main sections */
section {
  padding: 4rem 0;
}

#hero {
  background: linear-gradient(135deg, #0385f7 0%, #012c65 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 0;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.cube-container {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  perspective: 1000px;
  pointer-events: none; /* Prevent hover interactions that might cause flickering */
}

.cube {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
  backface-visibility: hidden; /* Prevent flickering during 3D transforms */
  transform: translateZ(0); /* Force hardware acceleration */
}

.face {
  position: absolute;
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  backface-visibility: hidden; /* Ensure smooth rendering */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.square {
  height: 33px;
  width: 33px;
  background-color: #222222;
  padding: 2px;
}

.sticker{
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.cube-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  font-size: 16px;
  color: royalblue;
  font-family: "Trebuchet MS", sans-serif;
  letter-spacing: -1px;
}

.cube-logo::before {
  content: "AK";
  font-size: 16px;
  font-weight: 900;
}

.red {
  background-color: #ed1c24;
}
.orange {
  background-color: #fa5b3d;
}

.blue {
  background-color: #2d68c4;
}

.green {
  background-color: #228b22;
}
.yellow {
  background-color: #eee600;
}

.white {
  background-color: #fffaf0;
}

.face.front {
  /*red*/
  transform: translateZ(50px);
}

.face.back {
  /*orange*/
  transform: translateZ(-50px) rotateY(180deg);
}

.face.right {
  /*blue*/
  transform: rotateY(90deg) translateZ(50px);
}

.face.left {
  /*green*/
  transform: rotateY(-90deg) translateZ(50px);
}

.face.top {
  /*yellow*/
  transform: rotateX(90deg) translateZ(50px);
}

.face.bottom {
  /*white*/
  transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotate {
  from {
    transform: rotateX(0) rotateY(0);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

#download {
  background-color: #fff;
  text-align: center;
}

#download h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

#download p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.download-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.app-store-badge img {
  width: 150px;
  height: auto;
}

#features {
  background-color: #f8f9fa;
}

#features h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

#features ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

#features li {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#features li strong {
  color: #3498db;
}

#features p:last-child {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}

/* FAQ styles */
.faq h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.faq p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

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

footer ul {
  display: flex;
  list-style: none;
}

footer ul li {
  margin-left: 2rem;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

footer ul li a:hover {
  color: #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
  }

  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .hero-content {
    padding: 2rem 0;
  }

  #hero h2 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .cube-container {
    display: none;
  }

  footer .container {
    flex-direction: column;
    gap: 1rem;
  }

  footer ul {
    justify-content: center;
  }

  footer ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}
