/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Yatra+One&display=swap');

@font-face {
  font-family: 'PixelatedEleganceRegular'; /* any name  */
  src: url('../Fonts/PixelatedEleganceRegular.ttf') format('truetype'); /* Path to font file */
  /* You can optionally add font-weight and font-style if this file is for a specific variation */
  /* font-weight: normal; */
  /* font-style: normal; */
}

/* --- GENERAL STYLES --- */
body {
  margin: 0;
  font-family: 'Yatra One', sans-serif; /* Corrected font-family stack */
  color: #ffffff;
  display: flex;
  background-color: #131015;
  flex-direction: column;
  min-height: 100vh;
  cursor: url('../assets/cursor.cur') 0 0, auto;
}

/* Apply PixelatedEleganceRegular specifically where needed if not default */
.PixelatedEleganceRegular {
  font-family: "PixelatedEleganceRegular", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Apply Yatra One font specifically where needed if not default */
.yatra-one-regular {
  font-family: "Yatra One", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* --- MAIN CONTENT AREA --- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem; /* General padding for main */
  gap: 1.5rem; /* Adjusted gap */
  text-align: center; /* Center text in main by default */
  box-sizing: border-box; /* Include padding in height calculation */
}

/* Headings */
main h1 {
    font-size: 3rem; /* Adjust default H1 size */
    margin-bottom: 0.5rem;
}
main h2 {
    font-size: 1.8rem; /* Adjust default H2 size */
    color: #e0e0e0;
    font-weight: normal;
    margin-top: 0;
}

/* Specific H1 on Index */
main h1.yatra-one-regular {
  font-size: 5rem;
  margin-bottom: 0; /* Reduce space below large title */
}

/* Specific H1 on Index */
main h1.PixelatedEleganceRegular {  
  font-size: clamp(3.5rem, 10vw, 7rem);
  margin-bottom: 0; /* Reduce space below large title */
  word-break: break-word;
}

/* --- INDEX PAGE SPECIFIC --- */
.container { /* Background Grid Pattern for Index */
  position: absolute; /* Position behind content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send behind main content */
  --color: rgba(114, 114, 114, 0.1); /* Made grid lighter */
  background-color: #131015; /* Match body background */
  background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
      linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
  background-size: 55px 55px;
}


/* --- COMPONENT: BUTTONS --- */

/* Base for the wrapper div if needed */
.btn {
  display: block; /* Changed to block for easier centering/margin */
  width: fit-content; /* Size to content */
  margin-left: auto; /* Center block element */
  margin-right: auto; /* Center block element */
  margin-top: 1rem; /* Example spacing */
}

/* Primary Button Style (.ui-btn used for buttons and links) */
.ui-btn {
  /* Variables */
  --btn-default-bg: #131015;
  --btn-padding: 12px 20px;
  --btn-hover-bg: #2a2a2a;
  --btn-transition: .3s;
  --btn-letter-spacing: .1rem;
  --btn-animation-duration: 1.2s;
  --btn-shadow-color: rgba(0, 0, 0, 0.15);
  --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
  --hover-btn-color: #af40ff;
  --default-btn-color: #fff;
  --font-size: 18px;
  --font-weight: 600;
  --font-family: 'Yatra One', sans-serif;

  /* Styling */
  display: inline-flex; /* Keep inline-flex for alignment within the link/button */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--btn-padding);
  color: var(--default-btn-color);
  font: var(--font-weight) var(--font-size) var(--font-family);
  background: var(--btn-default-bg);
  border: 2px solid #313131;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--btn-transition);
  overflow: hidden;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  gap: 0.6em;
  min-width: 160px;
}

.ui-btn span {
  letter-spacing: var(--btn-letter-spacing);
  transition: var(--btn-transition);
  box-sizing: border-box;
  position: relative;
  background: inherit;
  line-height: 1;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0;
  border-radius: inherit;
}

.ui-btn .button-icon {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

.ui-btn:hover, .ui-btn:focus {
  background: var(--btn-hover-bg);
  border-color: var(--hover-btn-color);
  box-shadow: 0px 0px 15px 0px rgba(175, 64, 255, 0.5);
  color: var(--hover-btn-color);
  outline: none;
}

.ui-btn span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
}
.ui-btn:hover span::before, .ui-btn:focus span::before {
  animation: chitchat linear both var(--btn-animation-duration);
}

@keyframes chitchat {
  0% { content: "#"; } 5% { content: "."; } 10% { content: "^{"; } 15% { content: "-!"; } 20% { content: "#$_"; } 25% { content: "№:0"; } 30% { content: "#{+."; } 35% { content: "@}-?"; } 40% { content: "?{4@%"; } 45% { content: "=.,^!"; } 50% { content: "?2@%"; } 55% { content: "\;1}]"; } 60% { content: "?{%:%"; right: 0; } 65% { content: "|{f[4"; right: 0; } 70% { content: "{4%0%"; right: 0; } 75% { content: "'1_0<"; right: 0; } 80% { content: "{0%"; right: 0; } 85% { content: "]>'"; right: 0; } 90% { content: "4"; right: 0; } 95% { content: "2"; right: 0; } 100% { content: ""; right: 0; }
}


/* --- UTILITY CLASSES --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}