@import url("./Pallete.css");

@keyframes tablink-slide-in {
  from {
    background-position: 100% 0%;
  }
  to {
    background-position: 0% 0%;
  }
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: transparent;
  z-index: -2;
}

.backgroundHome, .backgroundStats, .backgroundVersions, .backgroundApplications {
  position: fixed;      /* or absolute if you want them to scroll with content */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none; /* so they don't block clicks */
  z-index: -1;           /* base stacking, adjust as needed */
}

/* Parallax Background */
.backgroundHome {
  background-image: url("./Images/background.png");
  background-size: auto 150%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}
.backgroundStats {
  background-image: url("./Images/background2.png");
  background-size: auto 150%;
  background-color: #303030;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.backgroundVersions {
  background: var(--Primary);
  height: 150%;
  z-index: 0;

  border-top: solid var(--Stroke) 3px;
  border-bottom: solid var(--Stroke) 3px;
}
.backgroundApplications {
  background: var(--StrokeLight);
  height: 150%;
  z-index: 0;

  border-top: solid var(--Stroke) 3px;
  border-bottom: solid var(--Stroke) 3px;
}

/* Grid Layout Structure */
.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Navigation Bar (Tabs) */
.navbar {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 20px 40px;
  background: var(--Primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  border-bottom: 2px solid var(--Stroke);
  transition: background var(--transition-slow), box-shadow var(--transition-fast);
}

.tablink {
  color: var(--Stroke);
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(20deg, transparent 20%, rgba(200,200,200,0.2) 50%);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
  border: 2px solid transparent;
  transition: background var(--transition-slow), color var(--transition-slow), box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-slow);
}

/* Hover Effect for Tabs */
.tablink.active {
  background: linear-gradient(80deg, var(--Stroke) 20%, var(--Primary) 20%, var(--Primary) 22%, var(--Stroke) 22%, var(--Stroke) 24%, var(--Primary) 24%, var(--Primary) 26%, var(--Stroke) 26%, var(--Stroke) 28%, var(--Primary) 28%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  animation: tablink-slide-in 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
  color: var(--Text);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.18);
  border-color: var(--Stroke);
  outline: none;
}

.tablink:hover {
  background: linear-gradient(80deg, var(--StrokeLight) 20%, var(--Primary) 20%, var(--Primary) 22%, var(--StrokeLight) 22%, var(--StrokeLight) 24%, var(--Primary) 24%, var(--Primary) 26%, var(--StrokeLight) 26%, var(--StrokeLight) 28%, var(--Primary) 28%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  animation: tablink-slide-in 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
  color: var(--Text);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.18);
  border-color: var(--StrokeLight);
  outline: none;
}

/* Main Content Area */
.content {
  display: grid;
  row-gap: 30px;
  align-content: center;
  place-items: center;
  padding: 60px 20px;
  background: transparent;
  height: 100vh;
  transition: background var(--transition-slow);
}

/* Modern Content Box with Decorative Lines */
.content-box {
  position: relative;
  background: rgba(255,255,255,0.45);
  padding: 48px 48px 48px 48px;
  max-width: 820px;
  border-radius: 28px;
  box-shadow:
    0 16px 48px 0 rgba(0,0,0,0.22),
    0 1.5px 0 0 var(--Stroke) inset,
    0 0.5px 24px 0 rgba(255,255,255,0.12) inset;
  text-align: center;
  border: 1.5px solid rgba(239,175,170,0.25);
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 16px 48px 0 rgba(0,0,0,0.22),
    0 1.5px 0 0 var(--Stroke) inset,
    0 0.5px 24px 0 rgba(255,255,255,0.12) inset,
    0 2px 8px 0 rgba(239,175,170,0.10);
  perspective: 900px;
  transform-style: preserve-3d;
  transition: box-shadow var(--transition-fast), background var(--transition-slow), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Fade-in animation for content-box */
.content-box {
  opacity: 0;
  transform: translateY(40px) scale(0.98) perspective(900px) rotateX(8deg) rotateY(-3deg);
  transition:
    opacity 0.8s cubic-bezier(0.4,0,0.2,1),
    transform 0.8s cubic-bezier(0.4,0,0.2,1),
    box-shadow var(--transition-fast),
    background var(--transition-slow);
}

.content-box.visible {
  opacity: 1;
  transform: translateY(0) scale(1) perspective(900px) rotateX(0deg) rotateY(0deg);
}
.content-box:hover, .content-box:focus-within {
  box-shadow:
    0 32px 96px 0 rgba(0,0,0,0.28),
    0 4px 0 0 var(--Stroke) inset,
    0 0.5px 32px 0 rgba(255,255,255,0.18) inset,
    0 4px 16px 0 rgba(239,175,170,0.16);
  background: rgba(255,255,255,0.92);
  transform: translateY(-8px) scale(1.025) rotateX(6deg) rotateY(-3deg);
}
.content-box:hover::before, .content-box:hover::after,
.content-box:focus-within::before, .content-box:focus-within::after {
  opacity: 0.38;
}

.content-box h1 {
  font-size: 40px;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--Text);
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: color var(--transition-fast);
}

.content-box pre {
  font-size: 19px;
  line-height: 1.7;
  color: var(--Text);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

/* Footer */
footer {
  text-align: center;
  padding: 18px 0 18px 0;
  background: var(--Primary);
  color: var(--Text);
  font-weight: 900;
  border: none;
  border-top: 2px solid var(--Stroke);
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.5px;
  font-size: 17px;
  transition: background var(--transition-slow), box-shadow var(--transition-fast);
  z-index: 1;
}
