/* ===================================
   BASE STYLES
   =================================== */

@font-face {
  font-family: "JuliaMono-Regular";
  src: url("/JuliaMono-Regular.woff2") format("woff2"); }

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

body {
  background: #0a0a0f;
  font-family: "JuliaMono-Regular", 'Courier New', monospace;
  line-height: 1.6;
  color: #e0e0e0;
}

/* ===================================
   HERO SECTION
   =================================== */

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  text-align: center;
  z-index: 1;
  animation: fadeIn 2s ease-in;
}

.logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.4));
  animation: watch 6s ease-in-out infinite;
}

h1 {
  font-size: 5rem;  /* Increase from 4rem - make it dominant */
  color: #ffffff;
  text-transform: lowercase;
  letter-spacing: 0.5rem;
  font-weight: 300;
  position: relative;
  margin-bottom: 0.5rem;  /* Add tighter spacing below */
}
h1::before {
  content: 'bigbrowser';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(220, 38, 38, 0.8);
  z-index: -1;
  animation: glitchRed 1.5s infinite;
}

h1::after {
  content: 'bigbrowser';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(38, 220, 220, 0.6);
  z-index: -1;
  animation: glitchCyan 1.7s infinite;
}


.subtitle {
  font-size: 1.5rem;  /* Decrease from 2rem - make it secondary */
  color: #666;  /* Darker gray from #888 - less prominent */
  font-weight: 300;  /* Lighter weight */
  margin-top: 0;
  margin-bottom: 3rem;  /* Increase gap to separate from tagline */
}

.tagline {
  font-size: 2.5rem;  /* Decrease from 1.5rem */
  color: #888;
  margin-bottom: 3rem;
  max-width: 800px;
  font-weight: 300;
}

/* Word Rotator */
.word-rotator {
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  vertical-align: baseline;
  margin-right: 0.15em;
}

.word {
  grid-column: 1;
  grid-row: 1;
  color: #d44;
  opacity: 0;
  transition: opacity 0.6s ease;
  font-weight: 400;
  will-change: opacity;
  justify-self: end;
}

.word.active {
  opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  font-size: 2rem;
  color: #eee;
  font-weight: 600;
  animation: bounce 2s infinite;
}

/* ===================================
   INTRODUCTION SECTION
   =================================== */

.intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  text-align: left;
  line-height: 1.9;
}

.intro p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.intro p:first-child {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 2rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Add to responsive section */
@media (max-width: 768px) {
  .intro {
    padding: 3rem 1.5rem 4rem;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .intro p:first-child {
    font-size: 1.2rem;
  }
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid #222;
  background-color: #0f0f0f;
  transition: border-color 0.3s ease;
}

.feature-card:hover {
  border-color: #444;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.feature-card p {
  color: #999;
  line-height: 1.8;
}

/* ===================================
   SCREENSHOTS SECTION
   =================================== */

.screenshots {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.screenshot-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 8rem;
  align-items: center;
}

.screenshot-item:nth-child(even) {
  direction: rtl;
}

.screenshot-item:nth-child(even) > * {
  direction: ltr;
}

.screenshot-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.screenshot-content p {
  color: #999;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.screenshot-image {
  width: 100%;
  border: 1px solid #222;
  background-color: #0f0f0f;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.5rem;
}

/* ===================================
   FOOTER
   =================================== */

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e0e0e0 !important;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes noise {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.55; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes watch {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.3));
  }
  25% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.6));
  }
  50% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.2));
  }
  75% {
    transform: scale(1.01);
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.5));
  }
}

@keyframes glitchRed {
  0%, 60%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
    opacity: 0;
  }
  62% {
    clip-path: inset(40% 0 10% 0);
    transform: translate(-8px, 6px);
    opacity: 1;
  }
  64% {
    clip-path: inset(60% 0 5% 0);
    transform: translate(6px, -4px);
    opacity: 0.9;
  }
  66% {
    clip-path: inset(20% 0 50% 0);
    transform: translate(-5px, 4px);
    opacity: 0.8;
  }
  68% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(7px, -5px);
    opacity: 0.7;
  }
  70% { opacity: 0; }
}

@keyframes glitchCyan {
  0%, 65%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
    opacity: 0;
  }
  67% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(7px, -6px);
    opacity: 1;
  }
  69% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(-6px, 5px);
    opacity: 0.9;
  }
  71% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(5px, -3px);
    opacity: 0.7;
  }
  73% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(-7px, 4px);
    opacity: 0.6;
  }
  75% { opacity: 0; }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
  }

  .logo {
    width: 150px;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .screenshot-item:nth-child(even) {
    direction: ltr;
  }

  .screenshot-content h3 {
    font-size: 1.5rem;
  }
}
