/* ==========================================================================
   MONOLOG-INSPIRED THEME for GP GROUP
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode */
  --bg-dark: #080807;
  --bg-card: #181715;
  --text-primary: #e8e8e3;
  --text-secondary: #6b645c;
  --border-color: #393632;
  --border-hover: #e8e8e3;

  /* Accents */
  --glow-left: rgba(0, 243, 255, 0.15);
  /* Cyan/Blue inner edge */
  --glow-right: rgba(0, 85, 255, 0.12);
  --accent-cyan: #00f3ff;

  /* Layout */
  --site-margin: clamp(1rem, 5vw, 4rem);
  --site-gutter: 1rem;
  --border-radius: 1rem;
  --border-width: 1.5px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  cursor: none;
  /* Hide default for custom cursor */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: difference;
}

.cursor-trailer {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 232, 227, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

body.cursor-hover .cursor-trailer {
  width: 60px;
  height: 60px;
  background-color: rgba(232, 232, 227, 0.05);
  border-color: var(--text-primary);
}

/* ==========================================================================
   BACKGROUNDS & TEXTURES
   ========================================================================== */

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9998;
  /* High z-index but below cursor */
}

.edge-glow {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 20vw;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}

.left-glow {
  left: -10vw;
  background: radial-gradient(circle at left center, var(--glow-left), transparent 70%);
}

.right-glow {
  right: -10vw;
  background: radial-gradient(circle at right center, var(--glow-right), transparent 70%);
}

.halftone-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120vw;
  height: 120vh;
  background-image: radial-gradient(rgba(232, 232, 227, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.1s linear;
  /* For parallax in JS */
  opacity: 0.5;
}

/* ==========================================================================
   UTILITIES & LAYOUT
   ========================================================================== */

.u-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--site-margin);
  padding-right: var(--site-margin);
  position: relative;
  z-index: 10;
}

.u-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--site-gutter);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, rgba(8, 8, 7, 0.9) 0%, rgba(8, 8, 7, 0) 100%);
  backdrop-filter: blur(5px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--site-margin);
}

.main-logo {
  height: 40px;
  width: auto;
  /*filter: invert(1) brightness(2); Assuming original is dark, invert to whiteish */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: 2rem;
  /* Pill shape */
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.3s ease;
  cursor: none;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-outline.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: var(--text-primary);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: none;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.site-main section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
}

.section-meta {
  grid-column: span 12;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
}

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

.hero {
  align-items: flex-start;
  padding-top: 15vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: var(--border-width) solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s linear;
  transform: scale(1.05); /* Slight zoom effect */
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(8, 8, 7, 0.8) 0%, transparent 40%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-carousel {
    aspect-ratio: 16 / 9;
  }
}

.hero-tag {
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 500px;
}

.scroll-indicator {
  position: absolute;
  bottom: 5vh;
  left: var(--site-margin);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.mouse-line {
  width: 40px;
  height: 1px;
  background-color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.mouse-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-cyan);
  animation: slideLine 2s ease-in-out infinite;
}

@keyframes slideLine {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
  grid-column: 5 / -1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

.lead-text {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.4;
  color: var(--text-primary);
}

.body-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .about-content {
    grid-column: span 12;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--site-gutter);
}

.service-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-top {
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

/* ==========================================================================
   EBOOK SECTION
   ========================================================================== */

.ebook-section {
  background-color: var(--bg-card);
}

.book-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.flip-book {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  background: transparent;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.page {
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border-color);
}

.page-content {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.book-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-info {
  grid-column: 1 / 6;
}

.form-container {
  grid-column: 7 / -1;
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem;
}

.input-group {
  position: relative;
  margin-bottom: 2.5rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--text-primary);
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  transition: 0.3s ease all;
  pointer-events: none;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
  top: -20px;
  font-size: 0.7rem;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .contact-info {
    grid-column: span 12;
    margin-bottom: 2rem;
  }

  .form-container {
    grid-column: span 12;
    padding: 2rem;
  }
}

/* ==========================================================================
   DEVICE ROTATE PROMPT
   ========================================================================== */
#rotate-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 999999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.rotate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  #rotate-prompt {
    display: flex;
  }

  body {
    overflow: hidden;
  }
}