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

html,body {
  height:100%;
  width:100%;
  font-family:"Helvetica Neue", Arial, sans-serif;
  overflow:hidden;
  background:#000;
  color:#fff;
}

/* Container: don't hardcode width here — JS will size it to window.innerWidth * panels */
.contact-container {
  display:flex;
  height:100%;
  transform: translateX(0);
  will-change: transform;
}

/* Panels: JS will set explicit width in px, but provide fallback */
.panel {
  min-width: 100vw; /* fallback */
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:2rem;
  background-size:cover;
  background-position:center;
}

/* =========================================================
   PANEL 1 : CINEMATIC INVITATION
   ========================================================= */
.panel-1 {
  position: relative;
  background: radial-gradient(circle at 30% 40%, #0d0d0d, #000 70%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Moving ambient light */
.panel-1::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  animation: driftGlow 25s linear infinite;
  z-index: 0;
  opacity: 0.8;
}
@keyframes driftGlow {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(20%,20%) rotate(360deg); }
}

/* Subtle stardust texture */
.panel-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.1;
  mix-blend-mode: lighten;
  animation: pulse 12s ease-in-out infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.05; }
  to { opacity: 0.15; }
}

/* Centered content */
.panel-1 .content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  animation: floatText 8s ease-in-out infinite;
}
@keyframes floatText {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Headline */
.panel-1 h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.15);
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Subtext */
.panel-1 p {
  font-size: 1.3rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 600px) {
  .panel-1 h1 { font-size: 2rem; }
  .panel-1 p { font-size: 1.1rem; }
}


/* =========================================================
   PANEL 2 : CONVERSATIONAL PORTAL
   ========================================================= */
.panel-2 {
  position: relative;
  background: radial-gradient(circle at 30% 40%, #1a1a1a, #0c0c0c 70%);
  overflow: hidden;

  /* Center content */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Floating conic light */
.panel-2::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  animation: rotateLight 20s linear infinite;
  z-index: 0;
}
@keyframes rotateLight {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glassy form container */
.contact-form {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 520px;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.contact-form:hover {
  transform: translateY(-5px);
}

/* Title */
.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  margin: 0.6rem 0;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.12);
}
.contact-form textarea {
  resize: none;
  min-height: 130px;
}

/* Button */
.send-btn {
  background: linear-gradient(90deg, #fff, #ccc);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.send-btn::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.send-btn:hover::before {
  left: 120%;
}
.send-btn:hover {
  background: #fff;
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 600px) {
  .contact-form { padding: 2rem 1.5rem; }
  .form-title { font-size: 1.2rem; }
}




/* Hamburger Icon */
.menu-icon {
  position: fixed;
  top: 40px;
  right: 50px;
  cursor: pointer;
  z-index: 1000;
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.2s ease;
  transform-origin: center;
}


/* Morph when active */
.menu-icon.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}





/* Overlay Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu-links {
  list-style: none;
  text-align: center;
  font-size: 2rem;
  line-height: 3rem;
  padding: 0;
}

.menu-links li {
  margin: 20px 0;
}

.menu-links a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.menu-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.menu-links a:hover::after {
  width: 100%;
}

/* Close Icon Styling as List Item */
.close-icon {
  display: inline-block;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.4s ease;
  margin-top: 40px; /* Spacing below Contact */
}

.close-icon:hover {
  opacity: 1;
  transform: rotate(90deg);
}


/* Blur Background Layer */
.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998; /* Just below menu-overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.blur-background.active {
  opacity: 1;
  pointer-events: all;
}