/* ---------- Global + Font Faces ---------- */

@font-face {
  font-family: 'Inter Tight';
  src: url('InterTight-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('InterTight-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Use Inter Tight Medium across the site by default */
  font-weight: 500;
}

/* NOISE ELEMENTS (left commented)
   ---------------------------------------------------
   Add noise container that covers entire viewport
.noise-wrapper { ... }
...
*/
 
/* ---------- HEADER VIDEO ---------- */

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 1;
}

.video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.5);
  pointer-events: none;
  border: none;
}

/* ---------- LOGO ANIMATION ---------- */

.header {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  pointer-events: none;
}

.logo {
  width: 60vw;
  max-width: 1100px;
  min-width: 300px;
  height: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  pointer-events: auto;
}

.header.scrolled {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 110px;
  background-color: transparent;
  width: fit-content;
}

.header.scrolled .logo {
  width: 156px;
  min-width: 100px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  margin: 0;
}

.header.scrolled .logo-container {
  transform: none;
  pointer-events: auto;
  margin: 0;
  padding: 0;
}

/* ---------- MENU BAR ---------- */

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.menu-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #4A00E0, #FF69B4, #4A00E0);
  background-size: 200% 100%;
  animation: gradientSlide 7s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hamburger {
  position: absolute;
  left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.hamburger:hover span { opacity: 0.8; }

.menu-bar.visible { transform: translateY(0); }

/* ---------- BELOW THE HEADER ---------- */

.content {
  position: relative;
  margin-top: 100vh;
  background: #000000;
  width: 100%;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 0;
  padding-right: 0;
  z-index: 10;
}

.scroll-section {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  border-bottom: 1px solid #333;
  overflow: visible;
  opacity: .9;
  width: 100vw;
  margin: 0;
  padding: 0;
  border-top: 2px solid rgb(255, 255, 255);
  border-bottom: 2px solid rgb(255, 255, 255);
}

.scroll-section.section-1 {
  position: relative;
  min-height: 80vh;
  padding: 4rem 0;
  z-index: 2;
  overflow: hidden;
  background-color: #000;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

.scroll-section.section-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/DSC_0527.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  z-index: 1;
  transform: translateZ(0);
}

.scroll-section.section-1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(44, 44, 45, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 2;
}

.scroll-section.section-1 .text-content {
  position: relative;
  width: 75%;
  text-align: center;
  color: white;
  /* Use Inter Tight (Medium) */
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  margin-bottom: 0;
}

/* ---------- CURSOR PARTICLE SECTION ---------- */

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999;
  pointer-events: none;
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* ---------- SECTION 2 PARALLAX ---------- */

.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 1;
  overflow: visible;
}

.parallax-image {
  position: absolute;
  background-position: center;
  background-size: cover;
  will-change: transform, opacity;
  transition: opacity 0.2s ease-out;
}

.parallax-wrapper {
  margin: 0;
  padding: 0;
  height: 100vh;
  z-index: 1;
  overflow: visible;
  border-bottom: 2px solid rgb(255, 255, 255);
}

.parallax-back {
  width: 100%;
  height: 120vh;
  left: 50%;
  z-index: 1;
  opacity: 1;
}

.parallax-middle {
  width: 55%;
  height: 100%;
  left: 52%;
  top: -10%;
  z-index: 2;
  opacity: 1;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.6));
}

.parallax-front {
  width: 50%;
  height: 50%;
  z-index: 3;
  opacity: 1;
  left: 5%;
  top: -70%;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.6));
}

.black-section {
  height: 100vh;
  background: #000000;
  position: relative;
  z-index: 2;
  overflow: visible;
  width: 100vw;
  margin: 0;
}

/* ---------- TEXT SECTION 2 (Our Approach) ---------- */

.text-section {
  padding: 6rem 10rem;
  background: linear-gradient(135deg, #4A00E0, #FF69B4);
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 2px solid rgb(255, 255, 255);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.text-section h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700; /* replaces 'TT Fors Trial Bold' */
  font-size: 6rem;
  color: #000000;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  width: 100%;
}

.text-section h2.visible { opacity: 1; transform: translateY(0); }

.text-section p {
  font-family: 'Inter Tight', sans-serif; /* Medium via body default */
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 2rem;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.text-section p.visible { opacity: 1; transform: translateY(0); }

.text-section * { color: #000000 !important; }

/* ---------- FIRST COPY SECTION (Hero lines) ---------- */

.text-line {
  font-size: 6rem;
  color: #ffffff;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* inherit Inter Tight Medium from body */
}

.text-line.visible { opacity: 1; transform: translateY(0); }
.text-line:nth-child(1).visible { transition-delay: 0s; }
.text-line:nth-child(2).visible { transition-delay: 0.2s; }
.text-line:nth-child(3).visible { transition-delay: 0.4s; }

/* ---------- SCREEN RESIZING ---------- */

@media (min-aspect-ratio: 16/9) {
  .video-wrapper iframe { width: 100vw; height: 56.25vw; }
}

@media (max-aspect-ratio: 16/9) {
  .video-wrapper iframe { width: 177.78vh; height: 100vh; }
}

@media (max-width: 1024px) {
  .video-wrapper iframe { width: 250vh; }
}

@media (max-width: 768px) {
  .logo { width: 80vw; }
}

@media (max-width: 480px) {
  .logo { width: 90vw; }
}

/* ---------- FOOTER SECTION ---------- */

.footer-section {
  position: relative;
  min-height: 50vh;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 0rem 10rem;
  overflow: hidden;
  z-index: 10;
  border-top: 2px solid rgb(255, 255, 255);
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #000000;
  z-index: 1;
}

.footer-logo {
  position: fixed;
  bottom: -150vh;
  left: 50%;
  transform: translateX(-50%);
  width: 115vw;
  max-width: 2200px;
  min-width: 300px;
  opacity: 0;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
  filter: brightness(100) invert(0);
}

.footer-logo.visible {
  bottom: -17vh;
  opacity: .1;
  transform: translateX(-50%);
}

.footer-content {
  position: relative;
  z-index: 3;
  text-align: left;
  width: 100%;
  max-width: 1200px;
}

.footer-heading {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700; /* replaces TT Fors Bold */
  font-size: 6rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-heading.visible { opacity: 1; transform: translateY(0); }

.footer-email {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500; /* replaces TT Fors Medium */
  font-size: 3rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.footer-email.visible { opacity: 1; transform: translateY(0); }

.footer-email a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

.footer-email a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, #4A00E0, #FF69B4);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-email a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.copyright {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400; /* Will synthesize from 500 if no Regular file available */
  font-size: 0.875rem;
  opacity: 0.7;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}

/* ---------- LOADING SCREEN ---------- */

#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loader-background {
  position: absolute;
  width: 100%; height: 100%;
  overflow: hidden;
  opacity: 0.3;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4A00E0 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, #FF69B4 0%, transparent 70%);
  bottom: -300px; right: -300px;
  animation-delay: 5s;
}

.orb-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #4A00E0 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -100px) scale(1.1); }
  66% { transform: translate(-100px, 100px) scale(0.9); }
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.loader-logo { position: relative; animation: subtle-float 3s infinite ease-in-out; }

.loading-logo {
  width: 200px; height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
}

@keyframes subtle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fade-in { to { opacity: 1; } }

.loader-animation {
  position: relative;
  width: 300px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-bar {
  position: absolute;
  width: 200px; height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #4A00E0, #FF69B4, #4A00E0);
  background-size: 200% 100%;
  transform-origin: left;
  transform: scaleX(0);
  animation: loading-fill 3s ease-out forwards, gradient-slide 2s linear infinite;
}

@keyframes loading-fill { to { transform: scaleX(1); } }

@keyframes gradient-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.pulse-rings {
  position: absolute;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 60px; height: 60px;
  border: 2px solid;
  border-color: #FF69B4;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring:nth-child(1) { animation-delay: 0s; border-color: #4A00E0; }
.pulse-ring:nth-child(2) { animation-delay: 1s; border-color: #FF69B4; }
.pulse-ring:nth-child(3) { animation-delay: 2s; border-color: #4A00E0; }

@keyframes pulse {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.loading-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fade-in 1s ease-out 0.5s forwards, text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

body.loading { overflow: hidden; }
body.loading .content,
body.loading .header,
body.loading .video-container,
body.loading canvas { opacity: 0; }

/* ---------- MOBILE OPTIMIZATIONS ---------- */

@media (max-width: 1024px) {
  .text-line { font-size: 4rem; }
  .text-section { padding: 4rem 4rem; }
  .text-section h2 { font-size: 4rem; }
  .text-section p { font-size: 1.4rem; }
  .footer-section { padding: 0rem 4rem; }
  .footer-heading { font-size: 4rem; }
  .footer-email { font-size: 2rem; }
}

@media (max-width: 768px) {
  .scroll-section.section-1 .text-content {
    width: 90%;
    padding: 2rem 1rem;
  }
  .text-line { font-size: 2.5rem; line-height: 1.1; }
  .text-section { padding: 3rem 2rem; min-height: auto; }
  .text-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
  .text-section p { font-size: 1.1rem; line-height: 1.5; max-width: 100%; padding: 0 1rem; }
  .footer-section { padding: 2rem 2rem; min-height: auto; }
  .footer-heading { font-size: 2.5rem; margin-bottom: 1.5rem; }
  .footer-email { font-size: 1.5rem; margin-bottom: 3rem; }
  .footer-logo { width: 150vw; }
  .footer-logo.visible { bottom: -25vh; }
  .copyright { font-size: 0.75rem; bottom: 1.5rem; }
  .parallax-middle { width: 80%; left: 40%; }
  .parallax-front { width: 75%; height: 75%; left: -5%; }
}

@media (max-width: 480px) {
  .text-line { font-size: 2rem; gap: 0.5rem; }
  .text-section { padding: 2.5rem 1.5rem; }
  .text-section h2 { font-size: 2rem; margin-bottom: 1rem; }
  .text-section p { font-size: 1rem; padding: 0; margin-bottom: 1.5rem; }
  .footer-section { padding: 2rem 1.5rem; }
  .footer-heading { font-size: 2rem; }
  .footer-email { font-size: 1.2rem; margin-bottom: 2.5rem; }
  .menu-bar { height: 80px; }
  .header.scrolled { height: 80px; }
  .header.scrolled .logo { width: 120px; }
}

@media (max-width: 375px) {
  .text-line { font-size: 1.75rem; }
  .text-section h2 { font-size: 1.75rem; }
  .text-section p { font-size: 0.95rem; }
  .footer-heading { font-size: 1.75rem; }
  .footer-email { font-size: 1.1rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .scroll-section.section-1 { min-height: 100vh; padding: 2rem 0; }
  .text-line { font-size: 2rem; }
  .text-section { min-height: 100vh; padding: 2rem 3rem; }
  .footer-section { min-height: 100vh; }
}
