/* CSS Reset for Cross-Browser Consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Normalize browser differences */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-y: scroll;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "UtopiaRegular";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
}

@font-face {
  font-family: "UtopiaRegular";
  src: url("Utopia Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: "UtopiaRegular" !important;
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
}

h1,
h2,
.hero-text {
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background video - Fixed positioning with better browser support */
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  object-position: center center;
}

/* Header wrapper */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 40px;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(8px);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
  min-height: 60px;
  flex-wrap: nowrap;
  width: 100%;
}

.header-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-basis: auto;
  height: 60px;
}

.brand img {
  height: 60px;
  width: auto;
  margin-right: 10px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  object-fit: contain;
  max-width: none;
  vertical-align: top;
}

.nav-links {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 40px;
  text-transform: uppercase;
  font-weight: bold;
  align-items: start;
  margin-right: -40%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: -webkit-grid;
  display: -ms-grid;
  width: auto;
  flex-shrink: 0;
}

.nav-links a:nth-child(1) { grid-column: 1; -ms-grid-column: 1; grid-row: 1; -ms-grid-row: 1; }
.nav-links a:nth-child(2) { grid-column: 1; -ms-grid-column: 1; grid-row: 2; -ms-grid-row: 2; }
.nav-links a:nth-child(3) { grid-column: 1; -ms-grid-column: 1; grid-row: 3; -ms-grid-row: 3; }
.nav-links a:nth-child(4) { grid-column: 1; -ms-grid-column: 1; grid-row: 4; -ms-grid-row: 4; }
.nav-links a:nth-child(5) { grid-column: 2; -ms-grid-column: 2; grid-row: 1; -ms-grid-row: 1; }
.nav-links a:nth-child(6) { grid-column: 2; -ms-grid-column: 2; grid-row: 2; -ms-grid-row: 2; }

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
  display: block;
  transition: color 0.2s ease;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
}

.nav-links a:hover {
  color: rgb(255, 63, 15);
}

.quote-btn {
  background-color: rgb(255, 63, 15);
  color: white;
  border: none;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
  min-height: 40px;
  flex-shrink: 0;
  overflow: visible;
}

.quote-btn:hover {
  background: rgb(165, 111, 10);
  color: #fff;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 36px;
  margin-top: 90px;
  max-width: 600px;
  padding-bottom: 40px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  width: 100%;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: clamp(3rem, 8vw, 5rem);
}

.hero-content p {
  margin-top: 20px;
  font-size: 1rem;
  max-width: 450px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  orphans: 2;
  widows: 2;
}

.like {
  margin-left: 120px;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  font-weight: bold;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.before {
  margin-left: 60px;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  font-weight: bold;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lower {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  -ms-flex-wrap: nowrap;
}

.circle-btn {
  margin-top: 10px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgb(255, 63, 15);
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
  -moz-transition: -moz-transform 0.3s ease;
  -o-transition: -o-transform 0.3s ease;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
  box-sizing: border-box;
  aspect-ratio: 1/1;
  text-align: center;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  flex-shrink: 0;
}

.circle-btn span {
  transform: rotate(-15deg);
  -webkit-transform: rotate(-15deg);
  -moz-transform: rotate(-15deg);
  -o-transform: rotate(-15deg);
  display: inline-block;
  font-size: 1rem;
  white-space: nowrap;
}

.circle-btn:hover {
  transform: scale(1.1) translate3d(0, 0, 0);
  -webkit-transform: scale(1.1) translate3d(0, 0, 0);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
}

.down-arrow {
  position: fixed;
  bottom: 50px;
  right: 40px;
  font-size: 24px;
  color: #000;
  text-decoration: none;
  animation: bounce 1.5s infinite;
  -webkit-animation: bounce 1.5s infinite;
  -moz-animation: bounce 1.5s infinite;
  -o-animation: bounce 1.5s infinite;
  z-index: 200;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(0, 6px, 0);
    -webkit-transform: translate3d(0, 6px, 0);
  }
  60% {
    transform: translate3d(0, 3px, 0);
    -webkit-transform: translate3d(0, 3px, 0);
  }
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% { -webkit-transform: translate3d(0, 0, 0); }
  40% { -webkit-transform: translate3d(0, 6px, 0); }
  60% { -webkit-transform: translate3d(0, 3px, 0); }
}

.down-arrow:hover {
  color: rgb(255, 63, 15);
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes slideUpFade {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

.hero-content h1,
.hero-content .para,
.circle-btn,
.quote-btn,
.brand,
.nav-links,
.like,
.before {
  opacity: 0;
  animation: slideUpFade 1s ease-out forwards;
  -webkit-animation: slideUpFade 1s ease-out forwards;
  -moz-animation: slideUpFade 1s ease-out forwards;
  -o-animation: slideUpFade 1s ease-out forwards;
}

.brand { animation-delay: 0.6s; -webkit-animation-delay: 0.6s; }
.nav-links { animation-delay: 0.6s; -webkit-animation-delay: 0.6s; }
.quote-btn { animation-delay: 0.6s; -webkit-animation-delay: 0.6s; }
.hero-content h1 { animation-delay: 1s; -webkit-animation-delay: 1s; margin-top: 80px; }
.like { animation-delay: 1.2s; -webkit-animation-delay: 1.2s; }
.before { animation-delay: 1.3s; -webkit-animation-delay: 1.3s; }
.hero-content .para { animation-delay: 1.6s; -webkit-animation-delay: 1.6s; }
.circle-btn { animation-delay: 1.9s; -webkit-animation-delay: 1.9s; }

/* Large Desktop: 1200px+ */
@media screen and (min-width: 1200px) {
  .nav-links { margin-right: -45%; }
  video { min-width: 100vw; min-height: 100vh; }
}

/* Desktop: 1031px - 1199px */
@media screen and (min-width: 1031px) and (max-width: 1199px) {
  .nav-links { margin-right: -35%; }
}

/* Tablet Large: 771px - 1030px */
@media screen and (min-width: 771px) and (max-width: 1030px) {
  .hero-content { max-width: 800px; }
  .hero-content h1 { font-size: clamp(4rem, 7vw, 5rem); font-weight: 900; line-height: 0.9; }
  .like { margin-left: 120px; font-size: clamp(4rem, 7vw, 5rem); font-weight: 900; line-height: 0.9; }
  .before { margin-left: 70px; font-size: clamp(4rem, 7vw, 5rem); font-weight: 900; line-height: 0.9; }
  .circle-btn { width: 140px; height: 140px; font-size: 0.8rem; }
  .para { margin-bottom: 40px; max-width: 350px; }
  .nav-links { margin-right: -25%; }
  html, body { height: auto !important; min-height: 100vh; overflow-y: auto !important; overflow-x: hidden; }
  video { position: fixed !important; object-position: 65% center; }
  .custom-header { position: absolute !important; }
}

/* Mobile Large: 445px - 770px */
@media screen and (min-width: 445px) and (max-width: 770px) {
  html, body { height: auto !important; min-height: 100vh; overflow-y: auto !important; overflow-x: hidden; }
  
  video {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: 65% center;
  }
  
  .custom-header { position: absolute !important; }
  .down-arrow { position: absolute !important; bottom: 110px; }
  .circle-btn { width: 120px; height: 120px; font-size: 0.8rem; margin-left: 0; }
  .nav-links { margin-right: -20%; }
  .lower { align-items: flex-start; flex-direction: column; gap: 15px; }
  .para { max-width: 100%; }
}

/* Mobile Medium: 351px - 444px */
@media screen and (min-width: 351px) and (max-width: 444px) {
  html, body { height: auto !important; min-height: 100vh; overflow-y: auto !important; overflow-x: hidden; }
  
  video {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: 65% center;
  }
  
  .hero-content h1 { font-size: clamp(2.5rem, 6vw, 2.6rem); }
  .like { margin-left: 70px !important; font-size: clamp(2.5rem, 6vw, 2.6rem); }
  .before { margin-left: 20px; font-size: clamp(2.5rem, 6vw, 2.6rem); }
  .hero-content p { font-size: 0.8rem; max-width: 100%; }
  .hero-content { padding-left: 20px; padding-right: 30px; max-width: 100%; margin-top: 45px; }
  .brand img { height: 40px; }
  .lower { gap: 10px; flex-direction: column; }
  .circle-btn { width: 100px; height: 100px; }
  .custom-header { padding: 0 20px; }
  .nav-links { margin-right: 3%; gap: 8px 20px; }
  .nav-links a { font-size: 0.7rem; }
  .quote-btn { display: none; }
  .nav-links a:nth-child(4) { grid-column: 2; -ms-grid-column: 2; grid-row: 3; -ms-grid-row: 3; }
  .circle-btn span { font-size: 12px; }
  .down-arrow { bottom: 120px; }
}

/* Mobile Small: 320px - 350px */
@media screen and (max-width: 350px) {
  html, body { height: auto !important; min-height: 100vh; overflow-y: auto !important; overflow-x: hidden; }
  
  video {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: 65% center;
  }
  
  .custom-header { position: absolute !important; background: transparent; padding: 0 15px; }
  .down-arrow { position: absolute !important; bottom: 110px; }
  .hero-content { padding-left: 15px; padding-right: 15px; max-width: 95%; padding-top: 20px; margin-top: 60px; }
  .hero-content h1 { font-size: clamp(2.5rem, 8vw, 2.8rem); line-height: 0.95; font-weight: bold; }
  .hero-content p { font-size: 0.8rem; line-height: 1.4; margin-top: 15px; }
  .like { margin-left: 20px; font-size: clamp(2.5rem, 8vw, 2.8rem); line-height: 0.95; font-weight: bold; }
  .before { margin-left: 5px; font-size: clamp(2.5rem, 8vw, 2.8rem); line-height: 0.95; font-weight: bold; }
  .lower { gap: 5px; flex-direction: column; margin-top: 10px; }
  .circle-btn { margin-top: 20px; width: 80px; height: 80px; font-size: 0.65rem; align-self: center; margin-left: -120px; }
  .nav-links { margin-right: -1%; gap: 6px 15px; }
  .nav-links a { font-size: 0.65rem; }
  .quote-btn { display: none; }
  .circle-btn span { font-size: 10px; }
  .brand img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .circle-btn, .down-arrow, .hero-content h1, .hero-content .para,
  .quote-btn, .brand, .nav-links, .like, .before {
    animation: none;
    -webkit-animation: none;
    opacity: 1;
  }
}