@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body
{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Tajawal', sans-serif;
  background: #000;
  perspective: 1000px;
}

#canvas-container
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content-wrapper
{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.nav-container
{
  width: 100%;
  max-width: 1200px;
}

.title-box
{
  text-align: center;
  margin-bottom: 40px;
  color: white;
  animation: float 6s ease-in-out infinite;
}

.title-box h1
{
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 0 0 20px rgba(76, 201, 240, 0.7);
}

.title-box p
{
  font-size: 1.2rem;
  opacity: 0.8;
}

.link-grid
{
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  gap: 10px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.link-card
{
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  cursor: pointer;
}

.link-card:hover
{
  transform: rotateY(180deg);
}

.card-face
{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.card-front
{
  background: linear-gradient(135deg, var(--color1), var(--color2));
  color: white;
}

.card-back
{
  background: linear-gradient(135deg, var(--color2), var(--color1));
  color: white;
  transform: rotateY(180deg);
  justify-content: flex-start;
  /* padding-top: 40px; */
}

.card-icon
{
  font-size: 3rem;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.link-card:hover .card-icon
{
  transform: scale(1.1);
}

.card-title1
{
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-title2
{
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-desc
{
  font-size: 1rem;
  line-height: 1.2;
}

.card-btn
{
  font-size: .7rem;
  margin-top: 20px;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.card-btn:hover
{
  background: rgba(255, 255, 255, 0.3);
}

@keyframes float
{
  0%
  {
    transform: translateY(0px);
  }

  50%
  {
    transform: translateY(-15px);
  }

  100%
  {
    transform: translateY(0px);
  }
}

/* Individual card colors */
.card-1
{
  --color1: #667eea;
  --color2: #764ba2;
}

.card-2
{
  --color1: #ff758c;
  --color2: #ff7eb3;
}

.card-3
{
  --color1: #43e97b;
  --color2: #38f9d7;
}

.card-4
{
  --color1: #a18cd1;
  --color2: #fbc2eb;
}

.card-5
{
  --color1: #ffc3a0;
  --color2: #ffafbd;
}

.card-6
{
  --color1: #48c6ef;
  --color2: #6f86d6;
}

.card-7
{
  --color1: #f093fb;
  --color2: #f5576c;
}