/* ========================================================= */
/* PART 1 — GLOBAL & BASE STYLES                             */
/* ========================================================= */

/* Imports */
@import url('navbar.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* --------------------------------------------------------- */
/* Root Variables                                            */
/* --------------------------------------------------------- */
:root {
  --primary-bg:       #000000;
  --secondary-bg:     #0a0a0a;
  --footer-bg:        #000000;
  --footer-text:      #ffffff;
  --btn-color:        #ddb500;
  --btn-hover-color:  #2f312f;
  --underline-color:  #f1d145;
  --text:             #e0e0e0;
}

/* --------------------------------------------------------- */
/* Reset & Layout                                            */
/* --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--primary-bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* Main container — accounts for fixed navbar spacing */
main {
  flex: 1;
  padding-top: 80px; /* adjust if navbar height changes */
}

/* ========================================================= */
/* PART 2 — HERO SECTION                                     */
/* ========================================================= */

/* --------------------------------------------------------- */
/* Hero Container                                            */
/* --------------------------------------------------------- */
.hero {
  position: relative;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 42vh;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* --------------------------------------------------------- */
/* Swirl / Spotlight Background Layer                        */
/* --------------------------------------------------------- */
#swirl-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    circle 140% at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.05) 85%,
    transparent 100%
  );

  mask-image: radial-gradient(
    circle 140% at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.05) 85%,
    transparent 100%
  );

  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
}

/* --------------------------------------------------------- */
/* Darkened Overlay Mask (Mouse Spotlight)                   */
/* --------------------------------------------------------- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-mask-image: radial-gradient(
    circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    transparent 0%,
    black 100%
  );
  mask-image: radial-gradient(
    circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    transparent 0%,
    black 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------- */
/* Hero Content Block                                        */
/* --------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  position: relative;
  display: inline-block;
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--underline-color);
}

.hero-content p {
  font-size: 1rem;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------- */
/* Hero Typography (Title + Subtitle)                        */
/* --------------------------------------------------------- */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--underline-color);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

/* --------------------------------------------------------- */
/* Branding Highlights                                       */
/* --------------------------------------------------------- */
.brand-highlight {
  font-weight: 700;
  color: #fff;
}

.brand-highlight .ai {
  color: #f1d145;
}

.brand-name {
  display: inline-block;
  white-space: nowrap;
}

.brand-name .unixon {
  color: #fff;
}

.brand-name .ai {
  color: var(--underline-color);
  margin-left: 2px;
}

/* --------------------------------------------------------- */
/* Buttons & Dividers                                        */
/* --------------------------------------------------------- */
.btn {
  display: inline-block;
  background-color: var(--btn-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--btn-hover-color);
}

.btn.red {
  background-color: #e63946;
}

.btn.red:hover {
  background-color: #b02030;
}

/* Divider Line */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--underline-color);
  margin: 0;
}

/* --------------------------------------------------------- */
/* Post-Hero Block                                           */
/* --------------------------------------------------------- */
.post-hero {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--secondary-bg);
  border-radius: 8px;
}

/* ========================================================= */
/* PART 3 — HERO GRID SECTION                                */
/* ========================================================= */

/* --------------------------------------------------------- */
/* Grid Container                                            */
/* --------------------------------------------------------- */
.hero-grid {
  position: relative;
  background: #000;
  overflow: hidden;
  padding: 4rem 2rem;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* --------------------------------------------------------- */
/* Grid Lines + Spotlight Overlay                            */
/* --------------------------------------------------------- */
.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;

  -webkit-mask-image: radial-gradient(
    circle 260px at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 160px at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );

  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

/* Activate when mouse moves */
.hero-grid.active::before {
  opacity: 1;
}

/* --------------------------------------------------------- */
/* Content Layout (Text + Image Columns)                     */
/* --------------------------------------------------------- */
.hero-grid-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
}

/* --------------------------------------------------------- */
/* Text Column                                               */
/* --------------------------------------------------------- */
.hero-grid-text {
  flex: 1 1 50%;
  color: var(--text);
  padding: 0 1rem;
}

.hero-grid-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #f1d145;
  margin-bottom: 1.8rem;
  line-height: 1.4;
}

.hero-grid-text p {
  font-size: 1.05rem;
  font-weight: 300;
  color: #d0d0d0;
  margin-bottom: 1.4rem;
  line-height: 1.7;
}

.hero-grid-text p strong {
  color: #fff;
  font-weight: 600;
}

.hero-grid-text p::before {
  content: '◆';
  color: var(--btn-color);
  display: inline-block;
  margin-right: 0.5rem;
}

/* --------------------------------------------------------- */
/* Image Column                                              */
/* --------------------------------------------------------- */
.hero-grid-image {
  position: relative;
  z-index: 10;
  flex: 1 1 45%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2rem;
}

.hero-grid-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  opacity: 0.95;
  filter: brightness(1);
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

/* ========================================================= */
/* PART 4 — FEATURES GRID SECTION                            */
/* ========================================================= */

/* --------------------------------------------------------- */
/* Features Grid Container                                   */
/* --------------------------------------------------------- */
.features-grid {
  position: relative;
  background: #000;
  overflow: visible;
  padding: 6rem 2rem;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* --------------------------------------------------------- */
/* Grid Lines + Spotlight Overlay                            */
/* --------------------------------------------------------- */
.features-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;

  -webkit-mask-image: radial-gradient(
    circle 260px at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 160px at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );

  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

/* Activate grid when hovered or moved */
.features-grid.active::before {
  opacity: 1;
}


/* --------------------------------------------------------- */
/* Feature Grid Layout                                       */
/* --------------------------------------------------------- */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------- */
/* Feature Card                                              */
/* --------------------------------------------------------- */
.feature-card {
  background: rgba(15,15,15,0.88);
  border: 1px solid rgba(241,209,69,0.12);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Subtle golden glow on hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(241,209,69,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover elevation */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241,209,69,0.3);
  box-shadow: 0 0 40px rgba(241,209,69,0.3);
}

.feature-card:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------- */
/* Feature Card Content                                      */
/* --------------------------------------------------------- */
.feature-card .icon {
  font-size: 2.8rem;
  color: #f1d145;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .icon {
  transform: scale(1.15);
  color: #ffe87d;
}

.feature-card h3 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

/* --------------------------------------------------------- */
/* Feature Card Buttons                                      */
/* --------------------------------------------------------- */
.feature-card .btn.small {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  height: 42px;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #f1d145, #ffe87d);
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  white-space: nowrap;
  text-align: center;
  margin-top: 1rem;
}

.feature-card .btn.small:hover {
  background: #fff799;
  box-shadow: 0 0 25px rgba(241,209,69,0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------- */
/* Canvas Optimization                                       */
/* --------------------------------------------------------- */
canvas {
  will-change: transform, box-shadow;
}

/* --------------------------------------------------------- */
/* Responsive Adjustments                                    */
/* --------------------------------------------------------- */
@media (max-width: 768px) {
  .features-grid {
    padding: 4rem 1.5rem;
  }

  .feature-card {
    padding: 2rem 1.2rem;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }

  .feature-card .icon {
    font-size: 2.2rem;
  }
}

/* ========================================================= */
/* PART 4B — CUSTOM ORBIT HERO SECTION                        */
/* ========================================================= */

/* --------------------------------------------------------- */
/* Custom Hero Container (Full-Height Orbit Layout)           */
/* --------------------------------------------------------- */
.hero.custom-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

/* --------------------------------------------------------- */
/* Orbit Canvas Background Layers                             */
/* --------------------------------------------------------- */
#orbit-bg,
#swirl-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-4vh); /* lift orbit slightly upward */
}

/* --------------------------------------------------------- */
/* Custom Hero Content Layout                                 */
/* --------------------------------------------------------- */
.custom-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(90vw, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 12vh 0;
}

/* --------------------------------------------------------- */
/* Title — Upper Area                                         */
/* --------------------------------------------------------- */
.custom-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  position: relative;
  margin-top: -6vh;
}

.custom-hero-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--underline-color);
}

/* --------------------------------------------------------- */
/* Subtitle — Below Orbit Center                              */
/* --------------------------------------------------------- */
.custom-hero-subtitle {
  color: #ccc;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 700px;
  padding-top: 45vh; /* positioned under orbit center */
}

/* --------------------------------------------------------- */
/* Call-to-Action Button                                      */
/* --------------------------------------------------------- */
.custom-hero-btn {
  background-color: var(--btn-color);
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  z-index: 5;
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.custom-hero-btn:hover {
  background-color: #ffe87d;
  box-shadow: 0 0 20px rgba(241,209,69,0.4);
  transform: translateY(-3px);
}


/* ========================================================= */
/* PART 5 — RESPONSIVE ENHANCEMENTS & FINAL LAYOUT RULES      */
/* ========================================================= */

/* --------------------------------------------------------- */
/* Responsive Tweaks — General (Tablets & Mobile)             */
/* --------------------------------------------------------- */

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .custom-hero-content {
    padding: 8vh 0;
  }

  .custom-hero-subtitle {
    padding-top: 40vh;
  }
}

/* --------------------------------------------------------- */
/* Mobile Phones — Hero (Orbit) Section                       */
/* --------------------------------------------------------- */
@media (max-width: 768px) {
  .hero.custom-hero {
    height: auto;
    min-height: 100vh;
    padding: 3rem 1rem 5rem;
    overflow-y: auto;
  }

  /* Keep orbit height consistent */
  #orbit-bg,
  #swirl-bg {
    transform: translateY(-4vh);
  }

  .custom-hero-content {
    height: auto;
    padding: 10vh 0;
  }

  .custom-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-top: -5vh;
  }

  .custom-hero-subtitle {
    font-size: 1rem;
    padding-top: 38vh;
  }

  .custom-hero-btn {
    margin-top: 1.8rem;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }
}

/* --------------------------------------------------------- */
/* Very Small / Short Screens                                 */
/* --------------------------------------------------------- */
@media (max-height: 650px) {
  .hero.custom-hero {
    height: auto;
    min-height: 100vh;
    padding-bottom: 6rem;
  }

  .custom-hero-content {
    padding: 5rem 0;
  }

  .custom-hero-subtitle {
    padding-top: 32vh;
  }
}

/* --------------------------------------------------------- */
/* Mobile Layout — Image Above Text in Hero-Grid Sections      */
/* --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  /* Always place image first, even for reversed layout */
  .hero-grid.reverse .hero-grid-image {
    order: 1;
  }
  .hero-grid.reverse .hero-grid-text {
    order: 2;
  }

  .hero-grid-image {
    order: 1;
    justify-content: center;
    padding: 0;
    margin-bottom: 2rem;
  }

  .hero-grid-text {
    order: 2;
    padding: 0;
    margin-top: 0;
  }

  .hero-grid-image img {
    max-width: 320px;
    width: 100%;
    height: auto;
    transform: none !important;
    transition: transform 0.4s ease;
  }

  .hero-grid-image img:active {
    transform: scale(1.04);
  }

  .hero-grid-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-grid-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-grid-text .btn {
    margin-top: 1.5rem;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  /* Pure black background, no shadow */
  .hero-grid {
    background: #000;
    box-shadow: none;
    padding: 4.5rem 1.5rem;
  }

  .hero-grid::before {
    background-size: 40px 40px;
    opacity: 0.8;
  }

  .hero-grid-image::before {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }
}

/* --------------------------------------------------------- */
/* Section Divider Lines (Gold Gradient)                      */
/* --------------------------------------------------------- */

/* Under Orbit Hero */
.hero.custom-hero {
  position: relative;
  border-bottom: none;
}
.hero.custom-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,209,69,0.3), transparent);
  opacity: 0.6;
  z-index: 10;
}

/* Under Features-Grid */
.features-grid {
  position: relative;
  border-bottom: none;
  overflow: visible;
}
.features-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,209,69,0.4), transparent);
  opacity: 0.7;
  z-index: 50;
  pointer-events: none;
}

/* --------------------------------------------------------- */
/* Interaction & Layer Fixes                                  */
/* --------------------------------------------------------- */
.features-grid::before,
.feature-card::after {
  pointer-events: none !important;
  z-index: 0 !important;
}

.feature-card .btn.small {
  position: relative;
  z-index: 5 !important;
  pointer-events: auto !important;
  background: linear-gradient(90deg, #f1d145, #ffe87d);
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(241,209,69,0.3);
  transition: all 0.25s ease;
}

.feature-card .btn.small:hover {
  background: linear-gradient(90deg, #ffe87d, #fff799);
  box-shadow: 0 0 25px rgba(241,209,69,0.45);
  transform: translateY(-2px);
}

.feature-card .btn.small:active {
  transform: scale(0.97);
  background: linear-gradient(90deg, #f1d145, #ffe87d);
  box-shadow: 0 0 20px rgba(241,209,69,0.6);
  transition: none;
}

/* --------------------------------------------------------- */
/* Hero-Grid Image Hover Refinement                           */
/* --------------------------------------------------------- */
.hero-grid-image::before {
  content: none !important;
}

.hero-grid-image img {
  position: relative;
  z-index: 5;
  transition: transform 0.6s ease, filter 0.4s ease;
  transform-origin: center center;
  filter: brightness(1);
}

.hero-grid:hover .hero-grid-image img,
.hero-grid-image:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.hero-grid-image {
  perspective: 1000px;
  transition: transform 0.3s ease;
}
.hero-grid-image:hover {
  transform: translateY(-5px);
}

.hero-grid-content,
.hero-grid-text {
  z-index: 6;
  position: relative;
}

/* Divider Under Each Hero */
.hero::after,
.hero.custom-hero::after,
.hero-grid::after,
.features-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(241,209,69,0.4),
    transparent
  );
  opacity: 0.6;
  z-index: 50;
  pointer-events: none;
}
