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

h1, h2, .title {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body, p, span {
  font-family: 'Poppins', sans-serif;
}

body {
  background: #05060a;
  color: #fff;
}



.block {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.block .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: 1;
}

.block .content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
}



.block-1 {
  background: url("img/bg1.jpg") center/cover no-repeat;
  width: 100%;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-1 {
  display: flex;
  align-items: center;
  gap: 40px;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.socials img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 8px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.socials img:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
  background: rgba(0, 0, 0, 0.8);
}

.title-wrapper {
  flex: 1;
}

.project-title {
  font-size: clamp(40px, 6vw, 70px);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.project-subtitle {
  font-size: 18px;
  max-width: 480px;
  opacity: 0.9;
}


.block-3 {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: #05060a;
  overflow: hidden;
}

.block-3 .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,6,10,1) 0%, rgba(5,6,10,0) 10%, rgba(5,6,10,0) 90%, rgba(5,6,10,1) 100%);
  z-index: 2;
}

.content-3 {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  gap: 40px;
  animation: scrollLoop 30s linear infinite;
}

.scroll-content img {
  height: 200px;
  flex-shrink: 0;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.scroll-content img:hover {
  transform: scale(1.05);
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.block-3 {
  background: url("img/bg2.jpg") center/cover no-repeat;
}

.content-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.image-card {
  max-width: 500px;
  border-radius: 24px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.image-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
}



.block-2 {
  min-height: 120px;
  background: #05060a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ca-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.ca-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  word-break: break-all;
}

.copy-btn {
  cursor: pointer;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #00ffc3;
  color: #040307;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 255, 195, 0.7);
  background: #56ffd8;
}



.block-4 {
  background: url("img/bg3.jpg") center/cover no-repeat fixed;
}

.content-4 {
  padding-top: 60px;
  padding-bottom: 60px;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
}

.gif-item {
  border-radius: 24px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.gif-item img {
  width: 100%;
  display: block;
  border-radius: 18px;
}



@media (max-width: 768px) {
  .content-1 {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .socials {
    flex-direction: row;
  }

  .project-subtitle {
    max-width: none;
  }
}



.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.flip-card {
  width: 100%;
  height: 500px;
  position: relative;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s ease;
}

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

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.flip-back {
  background: #000;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  box-shadow: inset 0 0 40px rgba(0, 255, 200, 0.3);
}

.flip-back h3 {
  margin-bottom: 10px;
  font-size: 30px;
  color: #00ffc3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flip-back p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 240px;
}

/* Optional hover glow */
.flip-card:hover .flip-front img {
  filter: brightness(0.8);
}

/* ==== FOOTER ==== */

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.footer .brand {
  color: #00ffc3;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  color: #00ffc3;
  text-shadow: 0 0 10px rgba(0, 255, 195, 0.6);
}
