@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --bkg: #000000;
  --white: #101010;
  background-color: var(--white);
  position: relative;
  overflow-x: hidden;
  color: white;
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  visibility: visible !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
  background-size: auto;
  filter: invert(1) brightness(0.8);
  opacity: 0.4; /* adjust intensity */
  pointer-events: none;
  z-index: -1;
}

.wrapper {
  position: relative;
  min-height: 200vh; /* Provide enough space for scrolling */
}

.scroll-spacer {
  height: 100vh;
  width: 100%;
}

.welcome {
  z-index: 100;
  position: fixed;
  margin: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.welcome h1 {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff, #cfe0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  /* Remove transforms to keep sticky children stable */
  will-change: opacity;
  /* background: linear-gradient(135deg, #000, #101010); */
}

@media (max-width: 768px) {
  .welcome h1 {
    font-size: 3rem;
    padding: 0 1rem;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring,
  .headline span,
  .reveal-heading .word,
  .subheadline {
    transition: none !important;
  }
}
.temp {
  height: 100vh;
}
.split-sections {
  display: flex;
  min-height: 100vh;
  /* background: #000; */
  color: #fff;
  /* overflow hidden breaks position: sticky on children */
  overflow: visible;
  will-change: opacity, transform, filter;
}

.left-titles {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4rem;
  gap: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1; /* Make visible */
  transform: translateY(0);
}

@media (max-width: 768px) {
  .split-sections {
    flex-direction: column;
    padding-bottom: 0%;
  }
  .main-content {
    padding-bottom: 0%;
  }
  .section-6 {
    height: 5rem;
  }

  .main-content {
    padding-top: 100px;
  }

  .left-titles {
    position: sticky;
    top: 0;
    height: 3.5rem;
    min-height: fit-content;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 0.8rem;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    align-items: left;
    justify-content: left;
  }

  /* Webkit scrollbar styling */
  .left-titles::-webkit-scrollbar {
    height: 6px;
  }

  .left-titles::-webkit-scrollbar-track {
    background: transparent;
  }

  .left-titles::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
  .hacker-btn::after {
    display: none;
  }
  /* Improved typography for mobile */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .title-item {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    /* background-color: rgba(255, 255, 255, 0.1); */
    text-align: center;
    margin: 100;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .title-item:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2);
  }
}
.scroll-cue {
  /* margin-top: 2rem; */
  font-size: 1.5rem;
  opacity: 0.6;
  animation: floatCue 2.4s ease-in-out infinite;
}

@keyframes floatCue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.title-item {
  font-size: 2rem;
  font-weight: 600;
  opacity: 0.3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.title-item.active {
  opacity: 1;
  transform: scale(1.05);
}

.right-content {
  padding-top: 200px;
  width: 70%;
  position: relative;
}

.content-card {
  /* min-height: 150vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.content-card.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .right-content {
    width: 100%;
    padding: 0 1rem;
  }

  .content-card {
    min-height: auto;
    padding: 0rem 0rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .reveal-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
  }
}

.reveal-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
}

.reveal-heading .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .reveal-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  .title-item {
    font-size: 1.2rem;
  }

  h1,
  h2,
  h3 {
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  /* .hacker-container {
    width: 150px;
  } */
  .hacker-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-align: center;
  }
}

/* ////////////////////////////////////////////////////////////// */

/* Stack container */
.stack {
  position: relative;
  width: 58vw; /* ✅ Scaled down */
  max-width: 1300px;
  height: calc(58vw * 0.492); /* Maintain 16:9 aspect ratio */
  max-height: 650px;
  perspective: 1000px;
  cursor: pointer;
  will-change: transform;
  margin-bottom: 70px;
}

@media (max-width: 768px) {
  .stack {
    position: relative;
    width: 90vw; /* ✅ Scaled down */
    max-width: 1300px;
    height: calc(90vw * 0.6); /* Maintain 16:9 aspect ratio */
    max-height: 650px;
    perspective: 1000px;
    cursor: pointer;
    will-change: transform;
    margin-bottom: 70px;
  }
}
.desc-title {
  display: none;
}
@media (max-width: 768px) {
  .desc-title {
    display: block;
  }
}
/* Each photo/video card */
.photo {
  position: absolute;
  width: 98%;
  height: 100%;
  background: rgb(72, 72, 72); /* ✅ White photo border */
  padding: 7px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-origin: center center;
}

@media (max-width: 768px) {
  .photo {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white; /* ✅ White photo border */
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform-origin: center center;
  }
}

.photo video {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain; /* ✅ Full video shown, no cropping */
  background: #000;
  display: block;
}

.caption {
  text-transform: uppercase;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.3em;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
  mix-blend-mode: difference;
  font-weight: 600;
}
@media (max-width: 768px) {
  .caption {
    display: none;
  }
}

/* External description area below stack */
.description-area {
  margin-top: 25px;
  width: 70vw;
  max-width: 900px;
  text-align: center;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 80px;
}

.description-area h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .description-area {
    width: 90vw;
    margin: 3rem auto 4rem;
    padding: 0 1.5rem;
    font-size: 0.95rem;
  }

  .description-area h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .description-area p {
    margin-bottom: 1.2rem;
  }

  /* General spacing improvements */
  section {
    padding: 3rem 0;
    margin-bottom: 1rem;
  }

  .container {
    padding: 0 1.2rem;
  }
}
.loader {
  --color-one: #ffbf48;
  --color-two: #be4a1d;
  --color-three: #ffbf4780;
  --color-four: #bf4a1d80;
  --color-five: #ffbf4740;
  --time-animation: 2s;
  --size: 1; /* You can change the size */
  position: absolute;
  border-radius: 50%;
  transform: scale(var(--size));
  box-shadow: 0 0 25px 0 var(--color-three), 0 20px 50px 0 var(--color-four);
  animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
  z-index: 2;
  filter: blur(100px);
  background-color: black;
  animation: loader-entry 1s ease forwards,
    colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--color-one);
  border-bottom: solid 1px var(--color-two);
  background: linear-gradient(180deg, var(--color-five), var(--color-four));
  box-shadow: inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
}

.loader .box {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--color-one) 30%,
    var(--color-two) 70%
  );
  mask: url(#clipping);
  -webkit-mask: url(#clipping);
  z-index: 2;
}

.loader svg {
  position: absolute;
}

.loader svg #clipping {
  filter: contrast(15);
  animation: roundness calc(var(--time-animation) / 2) linear infinite;
}

.loader svg #clipping polygon {
  filter: blur(7px);
}

.loader svg #clipping polygon:nth-child(1) {
  transform-origin: 75% 25%;
  transform: rotate(90deg);
}

.loader svg #clipping polygon:nth-child(2) {
  transform-origin: 50% 50%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
  transform-origin: 50% 60%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
  animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
}

.loader svg #clipping polygon:nth-child(7) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes roundness {
  0% {
    filter: contrast(15);
  }
  20% {
    filter: contrast(3);
  }
  40% {
    filter: contrast(3);
  }
  60% {
    filter: contrast(15);
  }
  100% {
    filter: contrast(15);
  }
}

@keyframes colorize {
  0% {
    filter: hue-rotate(0deg);
  }
  20% {
    filter: hue-rotate(-30deg);
  }
  40% {
    filter: hue-rotate(-60deg);
  }
  60% {
    filter: hue-rotate(-90deg);
  }
  80% {
    filter: hue-rotate(-45deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

/* Base container styling */
.container {
  display: flex;
  /* background: linear-gradient(135deg, #00051f, #00010c); */
  font-family: "Courier New", monospace;
  position: absolute;
}

.hacker-container {
  position: absolute;
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 5;
}

/* Button styling with indigo theme */
.hacker-btn {
  z-index: 2;
  padding: 18px 40px;
  background: rgba(20, 20, 60, 0.9);
  color: #b3b3ff;
  border: 2px solid #4b4bff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(75, 75, 255, 0.3),
    inset 0 0 10px rgba(75, 75, 255, 0.2);
}

/* Terminal flicker effect */
.hacker-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 75, 255, 0.3),
    transparent
  );
  animation: terminal-swipe 3s infinite linear;
}

.hacker-btn:hover::before {
  animation: terminal-swipe 1s infinite linear;
}

.hacker-btn:hover {
  color: #ffffff;
  box-shadow: 0 0 25px rgba(75, 75, 255, 0.7), 0 0 40px rgba(75, 75, 255, 0.4);
  transform: scale(1.03);
}

/* Cursor blink effect */

/* smooth blink */
/* .hacker-btn::after {
  content: "_";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 20px;
  animation: cursor-blink 1.5s infinite;
  animation-delay: var(--blink-delay);
} */

.hacker-btn::after {
  content: "_";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 20px;
  animation: cursor-blink 0.8s infinite step-end;
  animation-delay: var(--blink-delay);
}

/* Tooltip with aesthetic */
.hacker-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(10, 10, 40, 0.95);
  color: #b3b3ff;
  padding: 10px 20px;
  border: 1px solid #4b4bff;
  font-size: 16px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(75, 75, 255, 0.3);
  z-index: 100;
}

/* Typing glitch effect */
.hacker-tooltip::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #00ff99;
  opacity: 0.6;
  animation: typing-glitch 1.2s infinite steps(5);
  z-index: -1;
}

/* Subtle glow border */
.hacker-tooltip::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid #4b4bff;
  opacity: 0.5;
  filter: blur(4px);
  animation: glow-pulse 2s infinite ease-in-out;
}

/* Hacker prompt symbol */
.hacker-tooltip span::after {
  content: "$>";
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 16px;
  text-shadow: 0 0 10px #00ff99;
  animation: prompt-flick 1sZombie infinite alternate;
}

/* Tooltip hover effect */
.hacker-container:hover .hacker-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  bottom: 130%;
}

/* Animations */
@keyframes data-stream {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes terminal-swipe {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes cursor-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes typing-glitch {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  20% {
    clip-path: inset(0 80% 0 0);
  }
  40% {
    clip-path: inset(0 60% 0 0);
  }
  60% {
    clip-path: inset(0 40% 0 0);
  }
  80% {
    clip-path: inset(0 20% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.5;
  }
}

@keyframes prompt-flick {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* SVG sits behind everything */
#connections {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.line-path {
  stroke: rgba(98, 122, 255, 0.6);
  stroke-width: 2;
  fill: none;
}

/* Base container styling */
.container {
  display: flex;
  /* background: linear-gradient(135deg, #00051f, #00010c); */
  font-family: "Courier New", monospace;
  position: absolute;
}

.hacker-container {
  position: absolute;
  z-index: 1;
}

/* Button styling with indigo theme */
.hacker-btn {
  padding: 18px 40px;
  background: rgba(20, 20, 60, 0.9);
  color: #b3b3ff;
  border: 2px solid #4b4bff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(75, 75, 255, 0.3),
    inset 0 0 10px rgba(75, 75, 255, 0.2);
}

/* Terminal flicker effect */
.hacker-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 75, 255, 0.3),
    transparent
  );
  animation: terminal-swipe 3s infinite linear;
}

.hacker-btn:hover::before {
  animation: terminal-swipe 1s infinite linear;
}

.hacker-btn:hover {
  color: #ffffff;
  box-shadow: 0 0 25px rgba(75, 75, 255, 0.7), 0 0 40px rgba(75, 75, 255, 0.4);
  transform: scale(1.03);
}

/* Cursor blink effect */

/* smooth blink */
/* .hacker-btn::after {
  content: "_";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 20px;
  animation: cursor-blink 1.5s infinite;
  animation-delay: var(--blink-delay);
} */

.hacker-btn::after {
  content: "_";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 20px;
  animation: cursor-blink 0.8s infinite step-end;
  animation-delay: var(--blink-delay);
}

/* Tooltip with aesthetic */
.hacker-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(10, 10, 40, 0.95);
  color: #b3b3ff;
  padding: 10px 20px;
  border: 1px solid #4b4bff;
  font-size: 16px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(75, 75, 255, 0.3);
  z-index: 10;
}

/* Typing glitch effect */
.hacker-tooltip::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #00ff99;
  opacity: 0.6;
  animation: typing-glitch 1.2s infinite steps(5);
  z-index: -1;
}

/* Subtle glow border */
.hacker-tooltip::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid #4b4bff;
  opacity: 0.5;
  filter: blur(4px);
  animation: glow-pulse 2s infinite ease-in-out;
}

/* Hacker prompt symbol */
.hacker-tooltip span::after {
  content: "$>";
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  color: #00ff99;
  font-size: 16px;
  text-shadow: 0 0 10px #00ff99;
  animation: prompt-flick 1sZombie infinite alternate;
}

/* Tooltip hover effect */
.hacker-container:hover .hacker-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  bottom: 130%;
}

/* Animations */
@keyframes data-stream {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes terminal-swipe {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes cursor-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes typing-glitch {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  20% {
    clip-path: inset(0 80% 0 0);
  }
  40% {
    clip-path: inset(0 60% 0 0);
  }
  60% {
    clip-path: inset(0 40% 0 0);
  }
  80% {
    clip-path: inset(0 20% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.5;
  }
}

@keyframes prompt-flick {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* SVG sits behind everything */
#connections {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.line-path {
  stroke: rgba(98, 122, 255, 0.6);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000; /* total length of line */
  stroke-dashoffset: 1000; /* hide line initially */
  animation: draw-line 0.8s ease forwards;
  animation-delay: 1s; /* wait for loader to appear first */
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loader-entry {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.text-container {
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}
.text {
  z-index: 5;
  font-weight: 100;
  align-content: center;
  text-align: center;
  height: 400px;
  min-width: 200px;
  font-size: 28px;
  color: #fafafa;
  backdrop-filter: blur(10px);
}
.dud {
  color: #757575;
}
/* Privacy note */
.privacy-note {
  color: #9ca3af; /* small grey */
  font-size: 0.6rem;
  text-align: center;
  padding: 10px 16px;
  opacity: 0.9;
}
/* CONTACT ME */
/* Reset & Body */
.section-9 * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Center content inside section-9 (Contact) */
.cardss {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem 1rem;
}

/* Brutalist Card */
.card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brutalist-card {
  width: 320px;
  height: 470px;
  background-color: #fff;
  border: 4px solid #000;
  box-shadow: 5px 10px 10px 1px rgba(255, 255, 255, 0.4);
  padding: 1.5rem;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  z-index: 2;
}

/* .brutalist-card:hover {
  transform: rotateY(180deg);
}

.brutalist-card:hover ~ .shadow {
  transform: translate(1px, 10px) rotateY(180deg);
} */
.backCard {
  transform: translate(1px, 10px) rotateY(180deg);
}

.backShadowCard {
  transform: translate(100px, 10px) rotateY(180deg);
}

/* Card faces */
.card-front {
  inset: 0;
  /* backface-visibility: hidden;  */
  position: relative;
  overflow: visible; /* Allow brutalist-container to extend outside */
}
.card-back {
  inset: 0;
  backface-visibility: hidden;
  position: absolute;
}

.card-back {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

/* Shadow behind card */
/* .shadowDiv {
  width: 320px;
  height: 420px;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  z-index: 1;
  transform: translate(10px, 10px);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
} */

/* Brutalist Card Content */
.brutalist-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
}

.brutalist-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  padding: 0.5rem;
}

.brutalist-card__icon svg {
  height: 1.5rem;
  width: 1.5rem;
  fill: #fff;
}

.brutalist-card__alert {
  font-weight: 900;
  color: #000;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.brutalist-card__message {
  margin-top: 1rem;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.4;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
  font-weight: 600;
}

.brutalist-card__actions {
  margin-top: 1rem;
}

/* Buttons */
.brutalist-card__button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 3px solid #000;
  background-color: #fff;
  color: #000;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 5px 5px 0 #000;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
}

.brutalist-card__button--read {
  background-color: #000;
  color: #fff;
}

.brutalist-card__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.brutalist-card__button:hover::before {
  left: 100%;
}

.brutalist-card__button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}

.brutalist-card__button--mark:hover {
  background-color: #296fbb;
  border-color: #296fbb;
  color: #fff;
  box-shadow: 7px 7px 0 #004280;
}

.brutalist-card__button--read:hover {
  background-color: #ff0000;
  border-color: #ff0000;
  color: #fff;
  box-shadow: 7px 7px 0 #800000;
}

.brutalist-card__button:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

/* === Form Styles for Back of Card === */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.form_area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #e0e0e0;
  height: auto;
  width: auto;
  border: 2px solid #264143;
  /* border-radius: 20px; */
  box-shadow: 5px 10px 10px 1px rgba(255, 255, 255, 0.4);
  padding: 20px;
  min-height: 500px;
}

.title {
  color: #264143;
  font-weight: 900;
  font-size: 1.5em;
  margin-top: 10px;
}

.sub_title {
  font-weight: 600;
  margin: 5px 0 15px 0;
  color: #000;
}

.form_group input::placeholder,
.form_group textarea::placeholder {
  color: #606060; /* Your custom color */
  opacity: 1; /* Ensures full opacity across browsers */
}

.form_group {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  margin: 10px 0;
}

.form_style {
  outline: none;
  color: #000;
  font-weight: 600;
  border: 2px solid #264143;
  box-shadow: 3px 4px 0px 1px #000000;
  width: 290px;
  padding: 12px 10px;
  border-radius: 4px;
  font-size: 15px;
}
.form_group textarea {
  min-height: 100px; /* Minimum height */
  min-width: 290px; /* Minimum width */
}
.form_style:focus,
.btn:focus {
  transform: translateY(4px);
  box-shadow: 1px 2px 0px 0px #000000;
}

.btn {
  padding: 15px;
  margin: 25px 0px;
  width: 290px;
  font-size: 15px;
  background: #000000;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 3px 3px 0px 0px #6f6f6f;
  cursor: pointer;
  border: none;
  color: #fff;
  z-index: 100;
}

.btn:active {
  opacity: 0;
}

.link {
  font-weight: 800;
  color: #264143;
  padding: 5px;
  cursor: pointer;
  text-decoration: none;
}

/* BRUTALIST CONTAINER FIXED POSITIONING */

.brutalist-container {
  position: absolute;
  top: calc(100% + 40px);
  left: 50%;
  transform-origin: top center;
  transform: translateX(-50%) scale(0.7);
  width: 300px;
  height: 110px;
  cursor: pointer;
  z-index: 0;
  user-select: none;
}

/* Keep rest of brutalist container styles unchanged */

.concrete-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border: 8px solid #000;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.brutalist-container:hover .concrete-block {
  transform: translate(-12px, -12px) rotate(-2deg);
  box-shadow: 12px 12px 0 #333, 24px 24px 0 #666, 36px 36px 0 #999;
}

.concrete-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      45deg,
      #000 0px,
      #000 2px,
      #111 2px,
      #111 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 8px,
      rgba(255, 255, 255, 0.05) 8px,
      rgba(255, 255, 255, 0.05) 10px
    );
  opacity: 0.3;
}

.social-main-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.social-title-text {
  color: #fff;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-shadow: 2px 2px 0 #333, 4px 4px 0 #666;
}

.brutalist-container:hover .title-text {
  opacity: 0;
  transform: translateY(-40px) rotateX(90deg) scale(0.3);
  filter: blur(8px);
}

.social-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  padding: 14px;
  opacity: 0;
  transform: translateY(40px) rotateX(-90deg) scale(1.3);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.brutalist-container:hover .social-grid {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

.social-cell {
  position: relative;
  background: #fff;
  border: 4px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.social-cell:nth-child(1) {
  transition-delay: 0.1s;
}
.social-cell:nth-child(2) {
  transition-delay: 0.1s;
}
.social-cell:nth-child(3) {
  transition-delay: 0.1s;
}
.social-cell:nth-child(4) {
  transition-delay: 0.1s;
}

.social-cell:hover {
  background: #000;
  transform: scale(1.1) rotate(5deg);
  border-color: #fff;
  z-index: 10;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.social-cell:hover .social-icon {
  fill: #fff;
  transform: scale(1.2) rotate(-5deg);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: #000;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Concrete slab backgrounds */
.slab-bg {
  position: absolute;
  background: #ddd;
  border: 4px solid #000;
  z-index: -1;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.slab-1 {
  top: 18px;
  left: 18px;
  width: 264px;
  height: 74px;
}

.slab-2 {
  top: 36px;
  left: 36px;
  width: 228px;
  height: 38px;
}

.brutalist-container:hover .slab-1 {
  transform: translate(20px, 20px) rotate(1deg);
}

.brutalist-container:hover .slab-2 {
  transform: translate(-10px, 30px) rotate(-1deg);
}

/* Industrial corner brackets */
.corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid #000;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bracket-tl {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.bracket-tr {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.bracket-bl {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.bracket-br {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.brutalist-container:hover .corner-bracket {
  transform: scale(1.5);
  background: #000;
  border-color: #fff;
}

/* Typography accent */
.type-accent {
  position: absolute;
  top: -30px;
  left: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
  transition: all 0.4s ease;
  opacity: 0;
}

.brutalist-container:hover .type-accent {
  opacity: 1;
  transform: translateY(5px);
}

/* Industrial rivets */
.rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #333;
  transition: all 0.3s ease;
}

.rivet:nth-child(1) {
  top: 10px;
  left: 10px;
}
.rivet:nth-child(2) {
  top: 10px;
  right: 10px;
}
.rivet:nth-child(3) {
  bottom: 10px;
  left: 10px;
}
.rivet:nth-child(4) {
  bottom: 10px;
  right: 10px;
}

.brutalist-container:hover .rivet {
  background: #fff;
  transform: scale(1.5);
}

/* Scan line effect */
.scan-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.8;
}

.brutalist-container:hover .scan-effect {
  left: 100%;
}

/* Paper texture overlay */
.paper-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      transparent 20%,
      rgba(255, 255, 255, 0.3) 21%,
      rgba(255, 255, 255, 0.3) 34%,
      transparent 35%,
      transparent
    ),
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  pointer-events: none;
}

.feature-card {
  @apply bg-[#0f0f2f] border border-indigo-500/40 rounded-xl px-5 py-3 text-sm md:text-base font-medium shadow-[0_0_20px_rgba(99,102,241,0.25)] backdrop-blur-md;
}

@media (max-width: 768px) {
  .cardss:has(.brutalist-card.backCard) {
    height: 680px !important;
    /* min-height: 1000px !important; */
  }
}
