@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

@font-face {
  font-family: 'jsMath-cmti10';
  src: url('./fonts/jsMath-cmti10.ttf') format('truetype');
  /* Add additional formats if available */

}

body {
  margin: 0;
  padding: 0;
  background: #131119;
  color: #DFDEE5;
  /* Grid background */
  background-image:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 16px,
      #221b36 16px,
      #221b36 17px,
      transparent 17px,
      transparent 35px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 16px,
      #221b36 16px,
      #221b36 17px,
      transparent 17px,
      transparent 35px
    );
  background-size: 35px 35px;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 2px dashed #0C8CE9;
}

.branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 3rem;
  font-weight: 600;
  color: #DFDEE5;
  margin: 0;
}

.subtitle {
  font-size: 2rem;
  color: #DFDEE5;
  font-weight: 400;
  margin-top: 0.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #DFDEE5;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #0C8CE9;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 64px;
}

.profile-image-wrapper {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #26252F;
  box-shadow: 0 4px 32px rgba(12, 140, 233, 0.15);
  background: #26252F;
}


.figma-navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 48px;
  z-index: 6;
  position: fixed;
  top: 0;
}

.navbar-bg {
  background: #DFDEE5;
  border-radius: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 52px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.navbar-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;

}

.navbar-links a {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #342A54;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

.navbar-links a.active,
.navbar-links a:hover {
  color: #0C8CE9;
}

.welcome-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.welcome-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 200px;
  font-weight: 500;
  color: #DFDEE5;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

.welcome-letter {
  display: inline-block;
}

.welcome-el-wrapper {
  position: relative;
  display: inline-block;
}

.welcome-letters {
  display: inline-block;
  position: relative;
  z-index: 2;
}

.welcome-cat {
  position: absolute;
  left: 25.5%;
  transform: translateX(-50%);
  bottom: 51%;
  width: auto;
  height: 1.2em;
  z-index: 1;
}

.cat-lapki {
  position: absolute;
  left: 25%;
  transform: translateX(-50%);
  bottom: 60%;
  width: auto;
  height: 0.25em;
  z-index: 3;
}

.stage {
  margin-top: 100px;
  margin-bottom: 70px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ticket-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease;
}

.ticket-container:hover {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

/* The wrapper divs now control the size and animation */
.ticket-part {
    height: 300px;
    /* Control height here */
    display: flex;
    /* Removes potential extra space around images */
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center bottom;
    position: relative;
}

/* SVG fills the height of the div */
.ticket-part img {
    height: 100%;
    width: auto;
    display: block;
}

.ticket-left {
    z-index: 2;
    /* Adjust margin if there's a visible gap or overlap needed */
    margin-right: -1px;
}

.ticket-right {
    z-index: 1;
    margin-left: -1px;
}

/* Ripped State Classes applied to the wrapper divs */
.ticket-container.ripped .ticket-left {
    transform: rotate(-15deg) translate(-40px, 20px);
    opacity: 0.8;
}

.ticket-container.ripped .ticket-right {
    transform: rotate(5deg) translate(40px, -10px);
}

/* Button Styling */
.rip-btn {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #1a63ff 0%, #0036ff 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 99, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.rip-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 99, 255, 0.5);
}

.rip-btn:hover::after {
    opacity: 1;
}

.rip-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(26, 99, 255, 0.4);
}

.rip-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Reset Button (Optional, for demo) */
.reset-btn {
    margin-top: 20px;
    background: transparent;
    border: 2px solid #ccc;
    color: #888;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
}

.ticket-container.ripped~.reset-btn {
    opacity: 1;
    pointer-events: auto;
}

.reset-btn:hover {
    border-color: #666;
    color: #666;
}

/* Name input field styling - using pixel positioning to avoid transform issues */
.name-input {
    position: absolute;
    top: 167px;
    left: 260px;
    width: 150px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a63ff;
    pointer-events: auto;
    padding: 0;
    margin: 0;
    letter-spacing: 0.5px;
    z-index: 10;
}

.name-input::placeholder {
    color: rgba(26, 99, 255, 0.3);
}

.name-input:focus {
    color: #0036ff;
}