/* --- RapidReel Innovations – Master Stylesheet V2 --- */

/* BASIC RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  /* UPDATED: Added your background texture */
  background-image: url("assets/bg-texture-1.png");
  background-repeat: repeat;

  color: #eaffff;
  font-family: "Staatliches", sans-serif;
  overflow-x: hidden;
}

/* ... (rest of the styles are the same) ... */

p,
label,
option,
input,
textarea {
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cdd;
}
h1,
h2,
h3 {
  font-family: "Permanent Marker", cursive;
  letter-spacing: 2px;
  text-shadow:
    0 0 6px #0ff,
    0 0 10px #0ff;
  color: #fff;
}
h1 {
  font-size: 3.5rem;
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 2rem;
}
h2 {
  text-align: center;
  font-size: 3rem;
  margin: 3rem 0;
  position: relative;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* --- VISUAL EFFECTS STYLES --- */
.boot-sequence {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Courier New", monospace;
  color: #0ff;
  font-size: 1.2rem;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
.boot-sequence.hidden {
  opacity: 0;
  pointer-events: none;
}
.boot-text {
  text-shadow: 0 0 10px #0ff;
}
.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size:
    100% 2px,
    3px 100%;
  pointer-events: none;
  z-index: 900;
  opacity: 0.5;
}
.grid-floor {
  position: fixed;
  bottom: -10vh;
  left: 0;
  width: 100%;
  height: 50vh;
  background: linear-gradient(
      0deg,
      transparent 24%,
      rgba(0, 255, 255, 0.3) 25%,
      rgba(0, 255, 255, 0.3) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 255, 255, 0.3) 75%,
      rgba(0, 255, 255, 0.3) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 255, 255, 0.3) 25%,
      rgba(0, 255, 255, 0.3) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 255, 255, 0.3) 75%,
      rgba(0, 255, 255, 0.3) 76%,
      transparent 77%,
      transparent
    );
  background-size: 70px 70px;
  transform: perspective(300px) rotateX(70deg);
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  animation: grid-scroll 10s linear infinite;
}
@keyframes grid-scroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 70px;
  }
}
.access-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
body.access-active .access-flash {
  opacity: 1;
}
.beam-swipe {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: #0ff;
  box-shadow:
    0 0 10px #0ff,
    0 0 20px #0ff;
  z-index: 999;
  opacity: 0;
}
body.beam-active .beam-swipe {
  animation: beam-swipe-anim 0.9s ease-out;
}
@keyframes beam-swipe-anim {
  0% {
    left: -100%;
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #0ff;
  width: 0%;
  z-index: 990;
  box-shadow: 0 0 10px #0ff;
}
.holo-logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-family: "Courier New", monospace;
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 998;
}
.cursor-flame {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0ff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: fadeUp 0.5s forwards;
  z-index: 9998;
}
@keyframes fadeUp {
  to {
    transform: translateY(-20px) scale(2);
    opacity: 0;
  }
}
body.exit-active .page-transition {
  opacity: 1;
}
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  z-index: 9997;
  pointer-events: none;
  transition: opacity 0.3s ease-in;
}

/* --- NAVIGATION --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 800;
  border-bottom: 1px solid #0ff;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between logo and text */
}
.nav-brand-text {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

/* NEW: Logo Image Styling */
.nav-logo-mark {
  height: 41px; /* Adjust as needed */
  width: auto;
}
/* Update it to this: */
.nav-links a {
  color: #eaffff;
  text-decoration: none;
  padding: 0 1rem;
  font-size: 1.1rem;
  transition:
    color 0.3s,
    text-shadow 0.3s;
  position: relative; /* <-- ADD THIS */
  padding-bottom: 5px; /* <-- ADD THIS (makes space for the line) */
}
/* ADD THESE NEW RULES */

/* This creates the hidden underline */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0ff;
  box-shadow: 0 0 5px #0ff;
  transform: scaleX(0); /* Start scaled to 0 */
  transform-origin: center; /* Scale from the center */
  transition: transform 0.3s ease-out;
}

/* This makes the underline appear on hover */
.nav-links a:hover::after {
  transform: scaleX(1); /* Scale to 100% on hover */
}
/* ADD THESE NEW RULES TO FIX THE CTA BUTTON */

/* This hides the underline effect from the button */
.nav-links a.nav-link-cta::after {
  display: none;
}

/* This removes the extra padding from the button */
.nav-links a.nav-link-cta {
  padding-bottom: 0;
}

/* This ensures the button's own padding is applied correctly */
.nav-link-cta {
  background: #0ff;
  color: #000;
  padding: 0.5rem 1rem; /* <-- This padding is correct */
  border-radius: 5px;
  font-weight: bold;
}
.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 5px #0ff;
}
.nav-link-cta {
  background: #0ff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
}
.nav-link-cta:hover {
  color: #000;
  background: #fff;
  text-shadow: none;
}
/* --- MOBILE NAVIGATION STYLES --- */
.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 999;
}
.nav-toggle-bar {
  display: block;
  width: 25px;
  height: 3px;
  background: #0ff;
  margin: 5px 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Hamburger "X" animation */
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 850;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav-link {
  color: #fff;
  text-decoration: none;
  font-family: "Staatliches", sans-serif;
  font-size: 2.5rem; /* Large, easy-to-tap links */
  text-shadow: 0 0 5px #0ff;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.mobile-nav-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered animation */
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.05s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.1s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.15s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.2s;
}

.mobile-nav-cta {
  background: #0ff;
  color: #000;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
}
/* ... (rest of the styles are the same) ... */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
}
header p {
  max-width: 600px;
  margin: 1rem 0 2rem 0;
  font-size: 1.2rem;
}
.cta {
  padding: 1rem 2rem;
  background: #0ff;
  color: #000;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Staatliches", sans-serif;
}
.cta:hover {
  background: #5ff;
  box-shadow: 0 0 10px #0ff;
  transform: scale(1.05);
}

.portfolio-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

/* NEW STYLES FOR CLICKABLE PORTFOLIO LINK */
.yt-link-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 560px;
  border: 2px solid #0ff;
  position: relative;
  box-shadow: 0 0 15px #0ff;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  background: #000; /* Fallback background */

  background-image: url("assets/portfolio-screenshot.jpg");
  background-size: cover;
  background-position: center;

  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.yt-link-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px #0ff;
}

/* Style for the "Play" button overlay */
.yt-play-button {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none; /* Allows hover effects to pass through */
}

.yt-play-icon {
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  text-shadow: 0 0 10px #0ff;
  transition: transform 0.3s;
}

.yt-link-frame:hover .yt-play-icon {
  transform: scale(1.1);
}

.yt-play-button span {
  font-family: "Staatliches", sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #0ff;
}

/* We can re-use these styles, just make sure they're on top */
.yt-link-frame .yt-holo-overlay {
  z-index: 2;
}
.yt-link-frame .yt-static {
  z-index: 4;
} /* Static goes over everything */
.yt-link-frame .live-badge {
  z-index: 5;
} /* Badge on top */
.portfolio-item p {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}
.yt-holo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.15), transparent);
  pointer-events: none;
  mix-blend-mode: screen;
}
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0ff;
  color: #000;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 3;
}
.live-badge.offline {
  background: #300;
  color: #f55;
  text-shadow: 0 0 5px #f00;
}
/* FINAL, WORKING STATIC EFFECT */
.yt-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Make sure this path is correct! */
  background: url("assets/static.gif");
  background-size: cover;

  /* This is the new, correct stacking order */
  z-index: 4;

  /* Increased opacity so you can see it */
  opacity: 0.41;

  mix-blend-mode: screen;
  pointer-events: none; /* Lets clicks go through */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: #050a0a;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #0ff;
  box-shadow: 0 0 10px #0ff;
  transition: 0.3s;
  will-change: transform, box-shadow;
}
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #0ff;
}
.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 5px;
}
/* Remove the background: #0ff; from the .service-icon rule above */

.service-icon--sora {
  background-image: url("assets/icon-sora.png");
  background-size: contain;
}
.service-icon--promo {
  background-image: url("assets/icon-promo.png");
  background-size: contain;
}
.service-icon--ads {
  background-image: url("assets/icon-ads.png");
  background-size: contain;
}
.service-icon--story {
  background-image: url("assets/icon-story.png");
  background-size: contain;
}
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}
.tech-logo {
  height: 110px; /* Adjust this value as needed for desired size */
  width: auto; /* Maintains aspect ratio */
  opacity: 2.4;
  transition: opacity 0.3s;
}
.tech-logo:hover {
  opacity: 1;
  transform: scale(1.25); /* Optional subtle hover effect */
}

.lead-form {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lead-form label {
  font-family: "Staatliches", sans-serif;
  color: #0ff;
  font-size: 1.2rem;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  padding: 0.7rem;
  background: #000;
  border: 2px solid #0ff;
  color: #eaffff;
  border-radius: 5px;
  font-size: 1rem;
}
.lead-form button {
  padding: 1rem;
  background: #0ff;
  color: #000;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  text-transform: uppercase;
  margin-top: 1rem;
}
.lead-form button:hover {
  background: #5ff;
  box-shadow: 0 0 10px #0ff;
}

footer {
  text-align: center;
  margin: 4rem 0 2rem 0;
  color: #0ff;
}
footer span {
  color: #fff;
  text-shadow: 0 0 5px #0ff;
}
/* ADD THIS TO YOUR FOOTER SECTION IN style.css */
.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: #0ff;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}
/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  /* --- NAVIGATION --- */
  .nav-links {
    display: none; /* Hide desktop links */
  }
  .nav-toggle {
    display: block; /* Show hamburger button */
  }
  .main-nav {
    /* Prevent nav from overlapping content when menu is open */
    z-index: 998;
  }

  /* --- FONTS --- */
  h1 {
    font-size: 2.5rem;
    margin-top: 4rem;
  }
  h2 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }

  /* --- GRIDS --- */
  .services-grid,
  .tech-grid {
    /* Stack the grids vertically */
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* --- LAYOUT --- */
  .portfolio-item p {
    padding: 0 1rem; /* Add padding to text under video */
  }

  /* --- FORM --- */
  .lead-form {
    width: 95%; /* Make form wider on mobile */
  }
}